[Lldb-commits] [PATCH] D40283: lldb: Use the DWARF linkage name when importing C++ methods
Adrian Prantl via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed Jan 10 14:02:13 PST 2018
aprantl added a comment.
In https://reviews.llvm.org/D40283#972622, @clayborg wrote:
> Added Adrian Prantl as a reviewer in case he has any input. Adrian: is there any way that a DIE is marked up with an extra attribute when the asm name is explicitly set? It would be great to know this from the DWARF so we don't have to end up setting the ASM name for every single possibly affected DIE...
I'm afraid DW_AT_linkage *is* that attribute. If you don't want to explicitly set the mangled name for each entity with a DW_AT_linkage_name, the way to do this is to add a DWARF extension like DW_AT_GNU_abi_tag or something. How does GDB/gcc handle this? Maybe they already invented an encoding for the attribute?
More information about the lldb-commits