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