Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Shang Yu <yusunn@gmail.com>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: gdb@sourceware.org
Subject: Re: user friendly symbol name
Date: Fri, 09 Aug 2013 17:58:00 -0000	[thread overview]
Message-ID: <CAHHgPePS-BodU39GSoAM6dxGWEORkn_5r3G2CgXWph1Y6A3N8Q@mail.gmail.com> (raw)
In-Reply-To: <20130809102225.GA11181@host2.jankratochvil.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


  parent reply	other threads:[~2013-08-09 17:58 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 [this message]
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=CAHHgPePS-BodU39GSoAM6dxGWEORkn_5r3G2CgXWph1Y6A3N8Q@mail.gmail.com \
    --to=yusunn@gmail.com \
    --cc=gdb@sourceware.org \
    --cc=jan.kratochvil@redhat.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