home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / gnu / gcc / bug / 3107 < prev    next >
Encoding:
Text File  |  1993-01-03  |  960 b   |  31 lines

  1. Newsgroups: gnu.gcc.bug
  2. Path: sparky!uunet!cis.ohio-state.edu!azu.informatik.uni-stuttgart.de!mattes
  3. From: mattes@azu.informatik.uni-stuttgart.de (Eberhard Mattes)
  4. Subject: Wrong line number info generated by GCC 2.3.1
  5. Message-ID: <9301031656.AA03443@azu.informatik.uni-stuttgart.de>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Sun, 3 Jan 1993 18:56:00 GMT
  10. Approved: bug-gcc@prep.ai.mit.edu
  11. Lines: 18
  12.  
  13. The debugging info generated by GCC 2.2.2 treated the following two
  14. lines as two lines:
  15.  
  16.   for (i = 0; i < 10; ++i)
  17.     j += i;
  18.  
  19. The debugging info generated by GCC 2.3.1 thru 2.3.3 treats those two
  20. lines as *ONE* line.  The debugger doesn't let one step into the body
  21. of the loop, the GDB STEP command executes the entire loop.  Correct
  22. debugging information is generated for the following rewritten code:
  23.  
  24.   for (i = 0; i < 10; ++i)
  25.     {
  26.       j += i;
  27.     }
  28.  
  29. Eberhard Mattes (mattes@azu.informatik.uni-stuttgart.de)
  30.  
  31.