Article View: gnu.gcc.bug
Article #1526Wrong line number info generated by GCC 2.3.1
From: Eberhard Mattes
Date: Sun, 03 Jan 1993 18:56
Date: Sun, 03 Jan 1993 18:56
17 lines
988 bytes
988 bytes
The debugging info generated by GCC 2.2.2 treated the following two
lines as two lines:
for (i = 0; i < 10; ++i)
j += i;
The debugging info generated by GCC 2.3.1 thru 2.3.3 treats those two
lines as *ONE* line. The debugger doesn't let one step into the body
of the loop, the GDB STEP command executes the entire loop. Correct
debugging information is generated for the following rewritten code:
for (i = 0; i < 10; ++i)
{
j += i;
}
Eberhard Mattes (mattes@azu.informatik.uni-stuttgart.de)
Technical Details
Message-ID:
<9301031656.AA03443@azu.informatik.uni-stuttgart.de>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!azu.informatik.uni-stuttgart.de!mattesShow Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!azu.informatik.uni-stuttgart.de!mattes From: mattes@azu.informatik.uni-stuttgart.de (Eberhard Mattes) Subject: Wrong line number info generated by GCC 2.3.1 Message-ID: <9301031656.AA03443@azu.informatik.uni-stuttgart.de> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Sun, 3 Jan 1993 18:56:00 GMT Approved: bug-gcc@prep.ai.mit.edu Lines: 18