As I commented in the bug:

The arguments to your process can be specified on the command line when 
starting lldb:

% lldb -- /private/tmp/args -Xxm100M
(lldb) run

Or your can specify them when using the "run" alias:

% lldb /private/tmp/args
(lldb) run -Xxm100M

'run' is an abbreviation for 'process launch -c /bin/bash --', so you don't 
need to type the "--" to terminate your arguments above. If you use the 
"process launch" directory you will need to add the "--" to terminate the 
"process launch" options:

% lldb /private/tmp/args
(lldb) process launch -- -Xxm100M

So there is a way to do this, but I agree that the "target.run-args" settings 
are broken for this case.


On Oct 7, 2013, at 2:27 PM, Yin Ma <[email protected]> wrote:

> Hi
>  
> To set up a run argument, based on the document, it should be
> Settings set target.run-args  , like gdb set args
>  
> However, no matter how, I cannot set my argument to –Xxm100M
> I tried
> Settings set target.run-args –Xxm100M
> Lldb: invalid option – X
>  
> I also tried
> Settings set target.run-args “-Xxm100M”
> Doesn’t work.
>  
> Could somebody let me know how to correctly set an argument.
>  
> On gdb, if we run
> Set args
> This means no argument
> However, under lldb
> Settings set target.run-args
> It will report an error
>  
> Is this a good behavior?
>  
> Thanks,
>  
> Yin
> _______________________________________________
> lldb-dev mailing list
> [email protected]
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev


_______________________________________________
lldb-dev mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev

Reply via email to