This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: how to debug deman-loaded programs
- From: Ian Lance Taylor <ian at wasabisystems dot com>
- To: "Banibrata Dutta" <dutta at india dot hp dot com>
- Cc: <binutils at sources dot redhat dot com>
- Date: 28 Apr 2004 08:06:12 -0400
- Subject: Re: how to debug deman-loaded programs
- References: <004601c42cd8$4636efa0$c0714c0f@nt13192>
"Banibrata Dutta" <dutta@india.hp.com> writes:
> how does one debug a demand-loaded part of a process, i.e. the fault is
> suspected in the shared object part of a program, which has been loaded
> on-demand using dlopen()/dlsym(), but when i run gdb on it (or it's "core"),
> going to a stack frame, and doing list, doesn't provide me with any info,
> but simply prints out "rtld.c", that's it. all my code is compiled with "-g"
> option.
This is not a binutils question.
Perhaps you should try the gdb mailing list. See
http://sourceware.org/gdb/
for more information.
I think the answer is the gdb add-symbol-file command, but, again,
this is not a binutils question.
Ian