[Lldb-commits] [PATCH] D59681: Update the lldb driver to support the -O and -S options when passing --repl
Nathan Hawes via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu Mar 21 17:30:43 PDT 2019
nathawes created this revision.
nathawes added reviewers: aprantl, jingham.
Herald added a subscriber: abidh.
Herald added a project: LLDB.
At the moment when `--repl` is passed to `lldb` it silently ignores any commands passed via the options below:
Tells the debugger to execute this one-line lldb command before any file provided on the command line has been loaded.
Tells the debugger to execute this one-line lldb command after any file provided on the command line has been loaded.
Tells the debugger to read in and execute the lldb commands in the given file, before any file has been loaded.
Tells the debugger to read in and execute the lldb commands in the given file, after any file has been loaded.
-O <value> Alias for --one-line-before-file
-o <value> Alias for --one-line
-S <value> Alias for --source-before-file
-s <value> Alias for --source
The `-O` and `-S` options are quite useful when writing tests for the REPL though, e.g. to change settings prior to entering REPL mode. This patch updates the driver to still respect the commands supplied via `-O` and `-S` when passing `--repl` instead of silently ignoring them. As `-s` and `-o` don't really make sense in REPL mode, commands supplied via those options are still ignored, but the driver now emits a warning to make that clear to the user.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 13274 bytes
Desc: not available
More information about the lldb-commits