This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How does one get static procedure names?


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."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]