llvm-project
2f2aa940 - [lldb] Fallback to `__clang_vtable` for robust dynamic type resolution (#210584)

Commit
79 days ago
[lldb] Fallback to `__clang_vtable` for robust dynamic type resolution (#210584) `ItaniumABIRuntime::GetTypeInfo(...)`'s type resolution relies on the demangler to locate the type corresponding to a vtable address. As reported in #182762 this can break when the demangler and debug info don't agree on the spelling of the type's name. This PR implements an lookup based on a support member emitted by clang added in #130255 as `_vtable$`, later renamed to `__clang_vtable` in #183617. If the demangling based approach fails we fall back to the new route. The initial implementation aims to only support the modern spelling with DWARF.
Author
Parents
Loading