llvm-project
ac9a2048 - [lldb] Recover mangled symbol names from DWARF on WebAssembly (#206832)

Commit
11 days ago
[lldb] Recover mangled symbol names from DWARF on WebAssembly (#206832) The Wasm "name" section stores only demangled names, so the symbols ObjectFileWasm builds from it have no mangled name. Without one, the symbol table indexes neither the mangled name nor the C++ base and method name variants derived from it, so looking up a symbol by mangled name fails and breakpoints set by a template or operator name find no locations. Override SymbolFileWasm::AddSymbols to copy each function's mangled name from its DWARF DW_AT_linkage_name onto the matching symbol, matched by file address. This is confined to the Wasm symbol file, so other targets are unaffected.
Author
Parents
Loading