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
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to