This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

testsuite/1739: gdb_get_line_number knows too much: $srcdir, $subdir, $srcfile


>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]