This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: user friendly symbol name
- From: Shang Yu <yusunn at gmail dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: gdb at sourceware dot org
- Date: Sat, 10 Aug 2013 01:58:32 +0800
- Subject: Re: user friendly symbol name
- References: <CAHHgPeMJfZ6J1UW5XRANXHxmO0xQ_dAMcXe4RtiHS_sdZgXnpw at mail dot gmail dot com> <20130809102225 dot GA11181 at host2 dot jankratochvil dot net>
Thanks for reply . But how can I demangle the symbol name massively in
the output of disas command ? Many thanks !
2013/8/9 Jan Kratochvil <jan.kratochvil@redhat.com>:
> 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
> std::nested_exception::~nested_exception()
>
> You may want to check the documentation why your symbol is not recognized:
> http://mentorembedded.github.io/cxx-abi/abi.html#mangling
>
>
> Jan