hanchenye-llvm-project/lldb
Greg Clayton 8d846daa81 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
2010-12-08 22:23:24 +00:00
..
docs Instructions for building LLDB with a debug LLVM 2010-11-18 03:56:17 +00:00
examples Add comment explaining the options used to invoke the test driver. 2010-10-25 21:38:35 +00:00
include Fixed an issue in our source manager where we were permanently caching source 2010-12-08 20:16:12 +00:00
lib Patch from Jay Cornwall that modifies the LLDB "Host" layer to reuse more 2010-09-07 20:11:56 +00:00
lldb.xcodeproj Bumped lldb Xcode version to 35 for lldb-35, and debugserver to 121 for 2010-12-08 05:24:05 +00:00
resources Bumped lldb Xcode version to 35 for lldb-35, and debugserver to 121 for 2010-12-08 05:24:05 +00:00
scripts Updated to latest LLVM/Clang for external AST source changes that allow 2010-12-02 23:20:03 +00:00
source Fixed an issue in our source manager where we were permanently caching source 2010-12-08 20:16:12 +00:00
test Add more docstring for the lldb_iter() utility function which provides a compact 2010-12-08 19:19:08 +00:00
tools Any arguments that are not options to the "lldb" command line driver, now get 2010-12-08 22:23:24 +00:00
utils Initial check-in of a Python utility to run the lldb test suite and send the 2010-11-16 19:44:50 +00:00
www Clarified some caveats for thread format strings. 2010-10-04 03:06:05 +00:00
INSTALL.txt You'll need to be running Mac OS X to get lldb to build right now. 2010-06-09 07:29:26 +00:00
LICENSE.TXT test commit 2010-06-09 03:55:24 +00:00
Makefile Comment out test targets; they don't work on Linux because test/Makefile uses 2010-07-09 22:36:15 +00:00