Fix lldb-server
not copied to target device
#179
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When running the
lldb
command,lldb-server
wouldn't be copied to the device, no matter if this was present on thexbuild
host desktop or not. This would result inlldb
saying it's not able to connect through the target port, but the warning that the copy failed because the executable wasn't present on the source desktop path was the real issue.Some arguments were flipped quite some time ago, which caused it to always use the wrong path. Also, by default it would not allow for execution so added a
chmod 777
to complete. Running this with on a clean device now correctly launcheslldb
from start to finish. Note that it is strange that the respectivepush
commands don't indicate a failure, despite the source file (i.e. thelldb-server
executable) not being present. After these changesx lldb
is able to start successfully from a clean slate.The
lldb
command still has issues for us as this results in it throwing this error:This despite running with
debuggable: true
in our Manifest. Not sure if it's related directly to thelldb
command's setup. Maybe someone else can chip in on what could be the issue for the above?I still think the changes from this PR can go in though.