[Lldb-commits] [lldb] [NFC][lldb] Store StackFrame member as a reference in DIL (PR #201437)
Ilia Kuklin via lldb-commits
lldb-commits at lists.llvm.org
Sat Jun 6 04:46:43 PDT 2026
kuilpd wrote:
> This looks fine, but I have another question. It is possible to run
>
> (lldb) target var some_global_var
>
> when a process is not running. So I would expect to also be able to use the DIL to do:
>
> (lldb) target var (SomeOtherType) some_global_var + 1
>
> which would be handled by the DIL. But since this change now requires a StackFrame, how does that work?
DIL right now is only called from `StackFrame::GetValueForVariableExpressionPath`, it has always required a `StackFrame`, we never really intended for DIL to work without it. If it needs to be implemented for `target var` as well, we'll have to think how to even approach this.
https://github.com/llvm/llvm-project/pull/201437
More information about the lldb-commits
mailing list