This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: How does one get static procedure names?
On Tue, Oct 27, 2009 at 11:40 AM, Paul Pluzhnikov
<ppluzhnikov@google.com> wrote:
> On Tue, Oct 27, 2009 at 11:32 AM, Bruce Korb <bruce.korb@gmail.com> wrote:
>
>> I know GDB has some way to do it, but I couldn't locate
>> the code that does it. ?A pointer on where to look would
>> be really helpful and greatly appreciated!
>
> Your question is rather unclear :-(
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. Even if
it takes some work, I'd like to "fix" the constraint. However,
I wasn't able to decipher the gdb source well enough to figure
out how it accomplished this feat. So, is there some place
in the GDB source where I ought to be looking?
Thank you!
Regards, Bruce