[Lldb-commits] [lldb] [lldb] Treat `__this` from CodeView/PDB as captured `this` (PR #200271)
via lldb-commits
lldb-commits at lists.llvm.org
Fri May 29 04:10:06 PDT 2026
Nerixyz wrote:
> Almost feels like we want something like `GetObjectPointerChild`, which will call `GetChildMemberWithName` on all the possible names for it.
Something like `GetChildAtNamePath` except that it returns the first child that exists? That sounds reasonable to me.
> With C++23's explicit object parameters that'll get more complicated, because it can have any type/any name. Debug-info (at least DWARF) knows what the object parameter is. So we'll eventually have to store that somewhere on ValueObject or something. Haven't thought through the details
This is interesting. Clang 22 generates the equivalent static member function for explicit object parameters with CodeView/PDB. I'll check what MSVC does when I'm on Windows, but I guess it does the same.
https://github.com/llvm/llvm-project/pull/200271
More information about the lldb-commits
mailing list