How does one get static procedure names?

2009-10-29 Thread Bruce Korb
Hi, 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! Thank you in advance. Regards, Bruce

Re: How does one get static procedure names?

2009-10-29 Thread Paul Pluzhnikov
On Tue, Oct 27, 2009 at 11:32 AM, Bruce Korb 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 :-( Are you looking for A) how to set a breakpoin

Re: How does one get static procedure names?

2009-10-29 Thread Bruce Korb
On Tue, Oct 27, 2009 at 11:40 AM, Paul Pluzhnikov wrote: > On Tue, Oct 27, 2009 at 11:32 AM, Bruce Korb 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 i

Re: How does one get static procedure names?

2009-10-29 Thread Daniel Jacobowitz
On Tue, Oct 27, 2009 at 11:56:46AM -0700, Bruce Korb wrote: > 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

Re: How does one get static procedure names?

2009-10-29 Thread Bruce Korb
On Tue, Oct 27, 2009 at 12:27 PM, Daniel Jacobowitz wrote: > On Tue, Oct 27, 2009 at 11:56:46AM -0700, Bruce Korb wrote: >> 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

Re: How does one get static procedure names?

2009-10-29 Thread Daniel Jacobowitz
On Tue, Oct 27, 2009 at 12:33:39PM -0700, Bruce Korb wrote: > Exactly. I know it'd be some work. I think I need to > call: dlopen(NULL, RTLD_NOW) No. You need to open the file and have your own ELF and symbol table reader. They are not in the area mapped by dlopen. > and then copy & fiddle c

Re: How does one get static procedure names?

2009-10-29 Thread Bruce Korb
On Tue, Oct 27, 2009 at 12:37 PM, Daniel Jacobowitz wrote: > On Tue, Oct 27, 2009 at 12:33:39PM -0700, Bruce Korb wrote: >> Exactly.  I know it'd be some work.  I think I need to >> call:  dlopen(NULL, RTLD_NOW) > > No.  You need to open the file and have your own ELF and symbol table > reader.  T

Re: How does one get static procedure names?

2009-10-29 Thread Andreas Schwab
Bruce Korb 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 dynami