This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: addr2line with stabs again
- From: "H. J. Lu" <hjl at lucon dot org>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: Jeff Baker <jbaker at qnx dot com>,"'binutils at sourceware dot org'" <binutils at sourceware dot org>
- Date: Tue, 5 Jul 2005 10:05:00 -0700
- Subject: Re: addr2line with stabs again
- References: <1578FF984ABAD411AFA5000102C4BB5B0F9EBA19@nimbus.ott.qnx.com> <42CA7AB3.50801@redhat.com>
On Tue, Jul 05, 2005 at 01:18:59PM +0100, Nick Clifton wrote:
> Hi Jeff,
>
> >With stabs debugging addr2line seems to walk backward in the code as far as
> >it has to in order to find line number information. The net effect is that
> >if you ask for the line number of an address inside a function that was
> >linked in from a static lib that didn't have debug info you will get the
> >source file and line number of whatever the last debug info is before that
> >address. With dwarf-2 you get '??:0'.
> >
> >As a first step we only need to know if this is expected from stabs or if
> >this is a bug.
>
> Oh it is a bug alright. It may well have been fixed though as Fred FIsh
> has
> been doing some work in this area. Please could you try downloading the
> latest binutils sources and trying them. If that does not fix the
> problem then please could you file a bug report ?
>
FYI, the Linux binutils also includes
http://sourceware.org/ml/binutils/2005-06/msg00099.html
H.J.