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 10:22:00 -0000 [thread overview]
Message-ID: <20130809102225.GA11181@host2.jankratochvil.net> (raw)
In-Reply-To: <CAHHgPeMJfZ6J1UW5XRANXHxmO0xQ_dAMcXe4RtiHS_sdZgXnpw@mail.gmail.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
next prev parent reply other threads:[~2013-08-09 10:22 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 [this message]
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
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=20130809102225.GA11181@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