Article View: gnu.gcc.bug
Article #317....gcc 2.1 and gdb problem.
From: Steve Berger
Date: Fri, 07 Aug 1992 22:03
Date: Fri, 07 Aug 1992 22:03
23 lines
1203 bytes
1203 bytes
Hi,
I'm running gcc 2.1 and gdb4.6 under SunOS 4.1.2 on a
Sparcstation IPX. When trying to debug one program
that I have, I set a breakpoint at line 54 and then
run the program. When gdb encounters the breakpoint
it says it is at line 58, and the code pointer is
on line 58, but the code being executed is from line
54.
As you can imagine, this is very confusing ! I have
been unable to isolate the problem and get it to occur
in any other programs that I have.
Does anyone know if this is a known problem in
GCC 2.1 that has been fixed in 2.2.2 ? I don't
really want to switch compilers in the middle of a
project if I can help it, but if this is fixed in
2.2.2, then I'll switch.
Steve Berger (sb@onripx.neuro.emory.edu)
Technical Details
Message-ID:
<9208072203.AA01138@onripx.neuro.emory.edu.noname>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!onripx.neuro.emory.edu!sbShow Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!onripx.neuro.emory.edu!sb From: sb@onripx.neuro.emory.edu (Steve Berger) Subject: ....gcc 2.1 and gdb problem. Message-ID: <9208072203.AA01138@onripx.neuro.emory.edu.noname> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Fri, 7 Aug 1992 22:03:40 GMT Approved: bug-gcc@prep.ai.mit.edu Lines: 26