[lldb/Commands] Add ability to run shell command on the host. #1233
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.
This patch introduces the
(-h|--host)
option to theplatform shell
command. It allows the user to run shell commands from the host platform
(always available) without putting lldb in the background.
Since the default behaviour of
platform shell
is to run the command ofthe selected platform, having such a choice can be quite handy when
debugging remote targets, for instances.
This patch also introduces a
shell
alias, to improve the commanddiscoverability and make it more convenient to use for the user.
rdar://62856024
Differential Revision: https://reviews.llvm.org/D79659
Signed-off-by: Med Ismail Bennani medismail.bennani@gmail.com