This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Using BFD for generating detailed backtrace
Il 19/05/2010 5.51, Alan Modra ha scritto:
> On Mon, May 17, 2010 at 07:22:30PM +0200, Roberto Fichera wrote:
>
>> So my question is: how can I handle symbol resolution to such dynamic
>> object?
>>
> I don't know the answer in enough detail to really help, but if I had
> to do this I'd look at how gdb finds where shared libraries are
> loaded.
>
>
I just solved my problem. Basically I got the hint after having a look
in libcairo-1.8.x
utils/backtrace-symbols.c. In such file it's used the dl_iterate_phdr()
function for looking
at all loaded shared objects and its related base address.