Using BFD for generating detailed backtrace

Roberto Fichera kernel@tekno-soft.it
Wed May 19 08:26:00 GMT 2010


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.



More information about the Binutils mailing list