How to run an external command from the lldb command line

Does lldb have an equivalent for the gdb command shellto run external commands from the prompt? (see How to execute external commands from the gdb command line? )

+4
source share
1 answer

It may be what you are looking for ...

(lldb) help platform shell
     Run a shell command on a the selected platform.  This command takes 'raw'
     input (no need to quote stuff).

Syntax: platform shell <shell-command>

Command Options Usage:
  platform shell [-t <value>]

       -t <value> ( --timeout <value> )
            Seconds to wait for the remote host to finish running the command.

IMPORTANT NOTE:  Because this command takes 'raw' input, if you use any
     command options you must use ' -- ' between the end of the command options
     and the beginning of the raw input.
+7
source

All Articles