diff options
author | Greg Clayton <gclayton@apple.com> | 2010-12-08 22:23:24 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2010-12-08 22:23:24 +0000 |
commit | 8d846daa81396c888d754156b189dfea9574d81c (patch) | |
tree | 02b6bf583803ed402063e9ae1a1e8277d2b5a489 /clang/lib/Serialization/ASTWriterStmt.cpp | |
parent | e0df786c98a97f40b0bef54cf80fee5ff395a991 (diff) | |
download | bcm5719-llvm-8d846daa81396c888d754156b189dfea9574d81c.tar.gz bcm5719-llvm-8d846daa81396c888d754156b189dfea9574d81c.zip |
Any arguments that are not options to the "lldb" command line driver, now get
used as the arguments for the inferior program. So for example you can do
% lldb /bin/ls /tmp ~/Documents
And "lldb" will use "/bin/ls" as the program and send arguments "/tmp" and
"~/Documents" as the launch args.
If you specify a file, then all remaining args after option parsing
will be used for program arguments:
% lldb -f /bin/ls /tmp ~/Documents
If you need to pass option values to your inferior program, just terminate
the "lldb" command line driver options with "--":
% lldb -- /bin/ls -AFl /tmp
The arguments are placed into the "settings" variable named
"target.process.run-args". This allows you to just run the program using
"process launch" and, if no args are specified on that command, the
"target.process.run-args" values will be used:
% lldb -- /bin/ls -AFl /tmp
Current executable set to '/bin/ls' (x86_64).
(lldb) settings show target.process.run-args
target.process.run-args (array):
[0]: '-AFl'
[1]: '/tmp'
(lldb)
(lldb) r
Process 56753 launched: '/bin/ls' (x86_64)
lrwxr-xr-x@ 1 root wheel 11 Nov 19 2009 /tmp@ -> private/tmp
llvm-svn: 121295
Diffstat (limited to 'clang/lib/Serialization/ASTWriterStmt.cpp')
0 files changed, 0 insertions, 0 deletions