[Lldb-commits] [lldb] [lldb-dap] Add valueLocationReference for member function pointers (PR #186837)
Sergei Druzhkov via lldb-commits
lldb-commits at lists.llvm.org
Mon Apr 13 01:03:23 PDT 2026
DrSergei wrote:
@da-viper Thank you very much for suggestions. They helped a lot to simplify patch.
@Michael137 It doesn't work for pointer to virtual functions, because they represented as an indexes in VTable (added testfor that). I think we can't get correct VTable if we have only pointer, so it looks impossible to support this case.
I have another feature idea. GDB supports resolution of pointers to global variables. But LLDB has lack of this feature. We can get `SBSymbol` from address and can get all global variables with the same name using `FindGlobalVariables` method of `SBTarget` and compare load addresses to get the correct one. But this approach looks slightly complicated and maybe has some problems with performance. WDYT?
https://github.com/llvm/llvm-project/pull/186837
More information about the lldb-commits
mailing list