[lldb-dev] expected behavior with run alias
amccarth at google.com
Wed Mar 25 14:57:27 PDT 2015
I looking at bug 22968 <https://llvm.org/bugs/show_bug.cgi?id=22968> and
trying to figure out if there's a bug here or not.
The `run` command alias ends with `--`, so there doesn't seem to be a way
to specify options when using the alias. For example, if you do:
(lldb) run -s
That's treated as though you wrote:
(lldb) process launch -c<shell-path> -- -s
The `-s` argument is placed after the `--`, which causes it to be passed on
to the inferior and not treated as an option to the `process launch`
command. That's consistent but possibly surprising behavior. If you
wanted the `-s` on the command, you'd have to spell it out explicitly:
(lldb) process launch -c<shell-path> -s
Should there be an alias that doesn't end in `--`?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the lldb-dev