This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: user friendly symbol name
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Shang Yu <yusunn at gmail dot com>
- Cc: gdb at sourceware dot org
- Date: Fri, 9 Aug 2013 20:56:00 +0200
- 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> <CAHHgPePS-BodU39GSoAM6dxGWEORkn_5r3G2CgXWph1Y6A3N8Q at mail dot gmail dot com>
On Fri, 09 Aug 2013 19:58:32 +0200, Shang Yu wrote:
> Thanks for reply . But how can I demangle the symbol name massively in
> the output of disas command ? Many thanks !
They are demangled:
(gdb) disas 'std::istream::get()'
0x0000003a4b07f252 <+34>: cmpb $0x0,0xf(%rsp)
0x0000003a4b07f257 <+39>: je 0x3a4b07f290 <std::istream::get()+96>
In some cases they are not:
0x0000003a4b07f24d <+29>: callq 0x3a4b05b3e0 <_ZNSi6sentryC1ERSib@plt>
but that is a bug in the GDB demangling logic (aware of it...).
Shell 'objdump -dC' will demangled it right:
3a4b07f24d: e8 8e c1 fd ff callq 3a4b05b3e0 <std::istream::sentry::sentry(std::istream&, bool)@plt>
Jan