getting the line of a function when walking the stack with libbfd

Vincent Torri vincent.torri@gmail.com
Thu Mar 22 06:09:00 GMT 2012


On Thu, Mar 22, 2012 at 2:28 AM, Alan Modra <amodra@gmail.com> wrote:
> On Wed, Mar 21, 2012 at 11:21:53PM +0100, Vincent Torri wrote:
>> I played a bit with objdump -S and addr2line seems to work.
>
> That's good.  So you now have a known working source that uses current
> BFD, binutils/addr2line.c, upon which to base your code.  ;-)

the problem is that i'm doing what addr2line does (wrt the bfd part)
Or at least, i don't know where the error is.

The only problem that I can see is how I get the address.

i'll investigate more, checking what address I get and what objdump is returing

thank you

Vincent Torri



More information about the Binutils mailing list