Gdb dwarf bug ([BUG] Regression in 2.14.90 (relative to 2.13.90))
H. J. Lu
hjl@lucon.org
Wed Nov 19 19:54:00 GMT 2003
On Tue, Nov 18, 2003 at 12:47:40PM +0000, Nick Clifton wrote:
> Hi Carlo,
>
> > The correct output would give an entry with PC = 0. And you get
> > (just like me) two entries with both a non-zero PC, which is the
> > bug. If you would *compile/link* the test case with binutils
> > 2.3.90, then you would see different results, which is correct.
>
> Ok - I think I was mistaken when I reported that the current sources
> generate a non-0 address table for the discard wa2.C compilation
> unit. Looking further into the "readelf -wl" output of the a.out file
> built from wa.c and wa2.c using todays gcc/binutils I get this:
>
Carlo is right. ld is changed to work around
http://sources.redhat.com/ml/binutils/2003-06/msg00473.html
The problem is gdb can't deal with discarded line info in different
CUs.
H.J.
More information about the Gdb
mailing list