[Lldb-commits] [lldb] [lldb] Note Command Used For DWIM Printing Of Persistent Variable (PR #215650)
Will Hawkins via lldb-commits
lldb-commits at lists.llvm.org
Tue Aug 11 13:56:16 PDT 2026
hawkinsw wrote:
> This is a legit addition.
>
I appreciate this comment more than you can imagine.
> It's actually only partly true, since `expr` when faced with an expression of the form `$identifier_characters` actually does NOT continue to generate IR, or interpret or JIT anything. It just looks up the name in the persistent definitions store and returns that variable.
>
> I'm actually not sure why the dwim-print command doesn't do the same thing.
On a related note, I don't think that
```C++
if (verbosity == eDWIMPrintVerbosityFull) {
StringRef flags;
if (args.HasArgs())
flags = args.GetArgString();
result.AppendNoteWithFormatv("ran `frame variable {0}{1}`", flags,
expr);
}
```
is entirely accurate, either.. The DIL interpreter here is set to `lldb::eDILModeSimple` which is not how it is configured in the actual `frame variable` command. Is that something we should note?
https://github.com/llvm/llvm-project/pull/215650
More information about the lldb-commits
mailing list