[Lldb-commits] [PATCH] D61737: [lldb] add -ex CLI option as alias to --one-line
Pavel Labath via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu May 9 23:16:17 PDT 2019
labath added a comment.
Selecting the option parsing mode explicitly sounds like the way to go to me too. I'm wondering if we should call it `--driver-mode=gdb` to match the equivalent functionality in clang. Having a symlink (lldb-gdb or whatever) which automatically selects "gdb" as the "driver mode" also sounds reasonable.
> lldb --gdb <everything after this is handled by our gdb emulation parser>
I wouldn't make this positional because clang's --driver-mode arg also isn't positional (it applies to the whole command line, even args that come before it). Also making this positional would open the door to having both kinds of options present at once, which is going to make parsing a lot more complicated (and it probably wouldn't be a very useful feature anyway).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D61737/new/
https://reviews.llvm.org/D61737
More information about the lldb-commits
mailing list