[Lldb-commits] [PATCH] D144230: [lldb] Make persisting result variables configurable

Adrian Prantl via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Feb 17 12:21:46 PST 2023


aprantl accepted this revision.
aprantl added inline comments.
This revision is now accepted and ready to land.


================
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">,
----------------
kastiglione wrote:
> 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.
> 
Okay, thanks for checking!


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