From: Andreas Schwab <schwab@linux-m68k.org>
To: Bruce Korb <bruce.korb@gmail.com>
Cc: Paul Pluzhnikov <ppluzhnikov@google.com>,
gdb@sourceware.org, gdb@gnu.org
Subject: Re: How does one get static procedure names?
Date: Tue, 27 Oct 2009 20:10:00 -0000 [thread overview]
Message-ID: <m2k4ygfvts.fsf@igel.home> (raw)
In-Reply-To: <668c430c0910271156m29e5770dyec6de9afa84f01f7@mail.gmail.com> (Bruce Korb's message of "Tue, 27 Oct 2009 11:56:46 -0700")
Bruce Korb <bruce.korb@gmail.com> writes:
> Sorry. When you do a "bt" using gdb, you see the function
> names, whether they be "static" or have global (external)
> linkage. The function backtrace_symbols(), on the other
> hand, doe *not* print static scope function names.
backtrace_symbols can only deal with dynamic symbols, which are the only
ones available at runtime. If you want to resolve normal symbols you
need to read them from the (unstripped) binary, like addr2line does.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
prev parent reply other threads:[~2009-10-27 20:03 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-27 18:36 Bruce Korb
2009-10-27 18:56 ` Paul Pluzhnikov
2009-10-27 19:11 ` Bruce Korb
2009-10-27 19:31 ` Daniel Jacobowitz
2009-10-27 19:37 ` Bruce Korb
2009-10-27 19:43 ` Daniel Jacobowitz
2009-10-27 20:03 ` Bruce Korb
2009-10-27 20:10 ` Andreas Schwab [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=m2k4ygfvts.fsf@igel.home \
--to=schwab@linux-m68k.org \
--cc=bruce.korb@gmail.com \
--cc=gdb@gnu.org \
--cc=gdb@sourceware.org \
--cc=ppluzhnikov@google.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