public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: debug/2984: File name information is incorrect in debug output
@ 2001-06-07 15:28 mmitchel
0 siblings, 0 replies; 4+ messages in thread
From: mmitchel @ 2001-06-07 15:28 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, mmitchel, neil, nobody
Synopsis: File name information is incorrect in debug output
Responsible-Changed-From-To: unassigned->mmitchel
Responsible-Changed-By: mmitchel
Responsible-Changed-When: Thu Jun 7 15:28:11 2001
Responsible-Changed-Why:
It desparately needs fixing and nobody else has fixed it
yet.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=2984&database=gcc
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: debug/2984: File name information is incorrect in debug output
@ 2001-06-07 19:08 mmitchel
0 siblings, 0 replies; 4+ messages in thread
From: mmitchel @ 2001-06-07 19:08 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, mmitchel, neil
Synopsis: File name information is incorrect in debug output
State-Changed-From-To: analyzed->closed
State-Changed-By: mmitchel
State-Changed-When: Thu Jun 7 19:08:02 2001
State-Changed-Why:
Fixed.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=2984&database=gcc
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: debug/2984: File name information is incorrect in debug output
@ 2001-06-07 12:06 neil
0 siblings, 0 replies; 4+ messages in thread
From: neil @ 2001-06-07 12:06 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, neil, nobody
Synopsis: File name information is incorrect in debug output
State-Changed-From-To: open->analyzed
State-Changed-By: neil
State-Changed-When: Thu Jun 7 12:06:03 2001
State-Changed-Why:
Verifying my own bug. Ben Kosnik has reproduced this problem independently.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=2984&database=gcc
^ permalink raw reply [flat|nested] 4+ messages in thread
* debug/2984: File name information is incorrect in debug output
@ 2001-05-28 13:16 neil
0 siblings, 0 replies; 4+ messages in thread
From: neil @ 2001-05-28 13:16 UTC (permalink / raw)
To: gcc-gnats
>Number: 2984
>Category: debug
>Synopsis: File name information is incorrect in debug output
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon May 28 13:16:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: neil@gcc.gnu.org
>Release: 3.0 prerelease, 3.1
>Organization:
>Environment:
Linux x86
>Description:
I've entered this bug under "debug", though I believe the
bug lies in c-lex.c's function cb_file_change, and its
interaction with the global variables and functions of
toplev.c.
Debug output often has the wrong file name, but correct line
number, associated with a line of code.
Here is an example from Benjamin Kosnik:
#include <cstdio>
#include <iostream>
int test01()
{
std::ios_base::sync_with_stdio();
std::printf("1"); // stdout has 1 in in now
std::cout << "2";
std::putc('3', stdout); // std::stdout doesn't work here
std::cout << '4';
return 0;
}
int main()
{
test01();
}
Compiling this with -g and the current compiler, and then running
gdb on the resultant execuatable gives:
std::cout << "2"; // step in on this line
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /mnt/hd/bliss/src.gcc/libstdc++-v3/testsuite/a.out
std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char>
+>(std::basic_ostream<char, std::char_traits<char> >&, char const*) (
__out=@0x80ebde0, __s=0x80c8dc2 "2") at include/bits/std_ostream.h:635
Line number 635 out of range; include/bits/std_ostream.h has 283 lines.
>How-To-Repeat:
>Fix:
Probably cb_file_change needs to have a handler for the
case FC_RENAME in addition to FC_ENTER and FC_LEAVE.
However, this is only a guess.
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-06-07 19:08 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-07 15:28 debug/2984: File name information is incorrect in debug output mmitchel
-- strict thread matches above, loose matches on Subject: below --
2001-06-07 19:08 mmitchel
2001-06-07 12:06 neil
2001-05-28 13:16 neil
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).