[Lldb-commits] [PATCH] D144230: [lldb] Make persisting result variables configurable
Dave Lee via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Feb 17 11:05:25 PST 2023
kastiglione added inline comments.
================
Comment at: lldb/source/Commands/Options.td:389
"not supported by the interpreter (defaults to true).">;
+ def persistent_result : Option<"persistent-result", "\\x01">, Groups<[1,2]>,
+ Arg<"Boolean">,
----------------
aprantl wrote:
> Is that the approved way of doing long options-only? What's printed in `help dwim-print` now?
We don't have many long option-only flags, and those few others do it this way. If I recall, Jonas was the first to use this approach.
The relevant portion of `help dwim-print` (or `help expression`) is:
> --persistent-result <boolean>
> Persist expression result in a variable for subsequent use. Expression results will be
> labeled with $-prefixed variables, e.g. $0, $1, etc. Defaults to true.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D144230/new/
https://reviews.llvm.org/D144230
More information about the lldb-commits
mailing list