[lldb-dev] Using command files in lldb
dawn at burble.org
dawn at burble.org
Tue Oct 28 16:23:54 PDT 2014
Try adding:
target create "file"
to the start of your cmdfile.
That said, I tried this myself on OSX and it looks like there are timing
issues (I'm speculating here). For me, it never got past the "r" and had
to cntl-C twice to get out. I tested on an OSX C++ "hello world" console
app with the command file:
target create "/tmp/x"
b main
r
n
c
q
On Fri, Oct 10, 2014 at 10:10:35AM +0530, Prakash Premkumar wrote:
> Hi
> How do I use command file is lldb
>
> I tried :
>
> $ lldb -s cmdfile output
>
>
> The content of the cmd file is :
>
> > r
>
>
> I get the following error on running the above command
>
> error: Aborting reading of commands after command #0: 'r ' failed with
> > error: invalid target, create a target using the 'target create' command
> > Current executable set to 'output' (x86_64).
>
>
> Can you kindly tell me what is the right way to do this ?
>
> Thanks
> Prakash
> _______________________________________________
> lldb-dev mailing list
> lldb-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev
More information about the lldb-dev
mailing list