user friendly symbol name

Jan Kratochvil
Fri Aug 9 10:22:00 GMT 2013

On Fri, 09 Aug 2013 03:17:16 +0200, Shang Yu wrote:
> How to display a user friendly symbol name in gdb ? For example , I
> want gdb display the following symbol name _ZNSt14basic_iostreamIwSt
> in its C++ equivalent format.

Besides the other reply - in GDB you can:

(gdb) set cp-abi gnu-v3
(gdb) set language c++
(gdb) maintenance demangle _ZNSt14basic_iostreamIwSt
Can't demangle "_ZNSt14basic_iostreamIwSt"
(gdb) maintenance demangle _ZNSt16nested_exceptionD2Ev

You may want to check the documentation why your symbol is not recognized:


More information about the Gdb mailing list