This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
gdb/460: Regression: gdb prints extraneous address at breakpoint
- From: mec at shout dot net
- To: gdb-gnats at sources dot redhat dot com
- Date: 5 Apr 2002 14:44:20 -0000
- Subject: gdb/460: Regression: gdb prints extraneous address at breakpoint
- Reply-to: mec at shout dot net
>Number: 460
>Category: gdb
>Synopsis: Regression: gdb prints extraneous address at breakpoint
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Apr 05 06:48:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: mec@shout.net
>Release: cvs HEAD 2002-04-04
>Organization:
>Environment:
target=native, host=i686-pc-linux-gnu%rh-7.2, gdb=HEAD%20020404, gcc=2.95.3, goption=-gdwarf-2
>Description:
gdb improved significantly from 2002-03-31 in its handling of gcc v2 dwarf line numbers. However, in some cases, gdb prints degraded information.
This is a regression versus 5.1.1.
>From 2002-03-31 gdb.log:
Breakpoint 4, marker1 () at /berman/fsf/_today_/source/gdb/HEAD/src/gdb/testsuite/gdb.base/break.c:48^M
48 int marker1 () { return (0); }^M
(gdb) PASS: gdb.base/condbreak.exp: run until breakpoint at marker1
>From 2002-04-04 gdb.log
Breakpoint 4, 0x08048493 in marker1 () at /berman/fsf/_today_/source/gdb/HEAD/src/gdb/testsuite/gdb.base/break.c:48^M
48 int marker1 () { return (0); }^M
(gdb) XFAIL: gdb.base/condbreak.exp: run until breakpoint at marker1
It's a bug to print the source address on an exact line match. See the extensive comments in gdb.base/condbreak.exp.
This happens in gdb.base/condbreak.exp and gdb.base/ena-dis-br.exp.
There is probably an issue with the marker1() function being one line long.
My test directories are available at:
ftp://ftp.shout.net/pub/users/mec/gdb/2002-03-31,native,i686-pc-linux-gnu%rh-7.2,HEAD,2.95.3,g-dwarf-2.tar.gz
ftp://ftp.shout.net/pub/users/mec/gdb/2002-03-31,HEAD,testsuite-src.tar.gz
ftp://ftp.shout.net/pub/users/mec/gdb/2002-04-04,native,i686-pc-linux-gnu%rh-7.2,HEAD,2.95.3,g-dwarf-2.tar.gz
ftp://ftp.shout.net/pub/users/mec/gdb/2002-04-04,HEAD,testsuite-src.tar.gz
>How-To-Repeat:
Run gdb.base/condbreak.exp and gdb.base/ena-dis-br.exp on gdb HEAD with gcc 2.95.3 -gdwarf-2.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: