gdb
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How does one get static procedure names?


From: Andreas Schwab
Subject: Re: How does one get static procedure names?
Date: Tue, 27 Oct 2009 21:03:43 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Bruce Korb <address@hidden> 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, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]