https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81932
--- Comment #30 from robert at ocallahan dot org <robert at ocallahan dot org> --- (In reply to Xi Ruoyao from comment #27) > Yes. Could GDB search the symbol with linkage name? This might work for function names but if you're trying to look up a type name (e.g. for a cast expression) this doesn't work because types don't have linkage names. We can often find a mangled name for a type as part of a function or global variable linkage name, but we can't guarantee that. Taking a user-provided type name and converting it into something we can look up in DWARF is already pretty hard due to C++ vagaries, but not knowing how the compiler canonicalizes these names makes it even harder, and it would simplify things if the compiler at least matches the demangler.