From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: Shang Yu <yusunn@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: user friendly symbol name
Date: Fri, 09 Aug 2013 18:56:00 -0000 [thread overview]
Message-ID: <20130809185600.GA17841@host2.jankratochvil.net> (raw)
In-Reply-To: <CAHHgPePS-BodU39GSoAM6dxGWEORkn_5r3G2CgXWph1Y6A3N8Q@mail.gmail.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
prev parent reply other threads:[~2013-08-09 18:56 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-09 1:17 Shang Yu
2013-08-09 3:22 ` Hatte John
2013-08-09 10:22 ` Andreas Schwab
2013-08-09 10:22 ` Jan Kratochvil
2013-08-09 14:14 ` Pedro Alves
2013-08-09 14:21 ` Eli Zaretskii
2013-08-09 18:23 ` Tom Tromey
2013-08-12 16:39 ` Pedro Alves
2013-08-09 17:58 ` Shang Yu
2013-08-09 18:56 ` Jan Kratochvil [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130809185600.GA17841@host2.jankratochvil.net \
--to=jan.kratochvil@redhat.com \
--cc=gdb@sourceware.org \
--cc=yusunn@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox