This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Help with source+object address
- To: Mauricio Lima Pilla <pilla at inf dot ufrgs dot br>
- Subject: Re: Help with source+object address
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Wed, 09 May 2001 15:26:18 -0400
- Cc: gdb at sourceware dot cygnus dot com
- References: <Pine.GSO.4.21.0105090946450.372-100000@coxilha>
> I need help with associating object addresses with the source code
> lines. I'm a complete rookie in this field, and I'm not even sure I'm
> posting to the right mail list, so please forgive me if it's the wrong
> place.
>
> I'm working with a superscalar processor simulator (SimpleScalar) and I
> want to associate addresses in the object file with lines of source code,
> just to analyse what the compiler is doing with my source code, and which
> branches are derived from if, for, while,...
Check the program addr2line.
Andrew