This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
testsuite/1739: gdb_get_line_number knows too much: $srcdir, $subdir, $srcfile
- From: mec dot gnu at mindspring dot com
- To: gdb-gnats at sources dot redhat dot com
- Date: 9 Aug 2004 20:13:49 -0000
- Subject: testsuite/1739: gdb_get_line_number knows too much: $srcdir, $subdir, $srcfile
- Reply-to: mec dot gnu at mindspring dot com
>Number: 1739
>Category: testsuite
>Synopsis: gdb_get_line_number knows too much: $srcdir, $subdir, $srcfile
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unasigned
>State: open
>Class: maintenance
>Submitter-Id: net
>Arrival-Date: Mon Aug 09 20:18:01 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: mec.gnu@mindspring.com
>Release: gdb HEAD 2004-08-09
>Organization:
>Environment:
native i686-pc-linux-gnu
gdb HEAD 2004-08-09
>Description:
gdb_get_line_number reaches into the global variables and reads $srcdir, $subdir, and $srcfile. It assumes that some, but not all, files live in $srcdir/$subdir.
It should just take a mandatory filename argument and use that filename.
At the moment there are 97 callers of gdb_get_line_number. So this takes either a multiphase interface change, or a largish single patch.
>How-To-Repeat:
Run the testsuite after building gdb in a relative directory:
../src/configure
That hits the worst problem in the current implementation.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: