[llvm-dev] [cfe-dev] Emiting linkage names for Types to Debuginfo (C++ RTTI support in GDB/LLDB)

via llvm-dev llvm-dev at lists.llvm.org
Fri Mar 2 17:43:05 PST 2018


> Currently what debugger has to do is to demangle RTTI name and try to
> match it to DW_AT_name attribute to find type. As you can see it does
> not work for any of 3 examples.
>
> I've asked about the problem on G++ maillist, and one of the proposed
> solutions is to emit DW_AT_linkage_name for types. 
>
> Can this solution be also implemented in LLVM? 

It could, but mangled names can be very long and we need to consider
whether the additional size cost is worth it under various conditions.
For example, does this type matching work when a program is compiled
with `-fno-rtti`?  (Clang itself is compiled this way by default.)
Thanks,
--paulr



More information about the llvm-dev mailing list