Home » Language IDEs » C / C++ IDE (CDT) » Eclipse Luna, CDT, gdb issues with breakpoints(GDB terminates with -1 and skips all breakpoints)
Eclipse Luna, CDT, gdb issues with breakpoints [message #1439938] |
Tue, 07 October 2014 18:14 |
chadd williams Messages: 3 Registered: October 2014 |
Junior Member |
|
|
Most of the time, but not always, when I debug a C program gdb
produces an exit value of -1 and the execution does not stop at
any breakpoints. The execution also does not stop at the first line of main().
I have not yet discerned any pattern as to when the breakpoints work
and when they do not work.
Further, if I revert back to Eclipse Kepler, allow Kepler to
"update" the workspace, breakpoints work fine in Kepler.
I downloaded the Eclipse IDE for C/C++ Developers x86_64. The only plugins
I installed are subclipse and pydev.
OpenSUSE 13.1 x86_64
Eclipse Luna Version: Luna Release (4.4.0)
Build id: 20140612-0600
CDT: Version: 8.4.0.201406111759
gdb --version
GNU gdb (GDB; openSUSE 13.1) 7.6.50.20130731-cvs
gcc --version
gcc (SUSE Linux) 4.8.1 20130909 [gcc-4_8-branch revision 202388]
java -version
java version "1.8.0_11"
Java(TM) SE Runtime Environment (build 1.8.0_11-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.11-b03, mixed mode)
What I see:
The Debug panel of the Debug Perspective says:
GameOfLife [C/C++ Application]
<terminated, exit value: -1>gdb
The Console:
gdb traces ends with:
883,979 =breakpoint-modified,bkpt={number="1",type="breakpoint",disp="del",enabled="y",addr="0x00000\
0000040154e",func="main",file="GameOfLife.c",fullname="/home/chadd/workspace/GameOfLife/GameOfLife.c\
",line="228",thread-groups=["i1"],times="1",original-location="main"}
883,981 *stopped,reason="breakpoint-hit",disp="del",bkptno="1",frame={addr="0x000000000040154e",func\
="main",args=[{name="argc",value="1"},{name="argv",value="0x7fffffffdcf8"}],file="GameOfLife.c",full\
name="/home/chadd/workspace/GameOfLife/GameOfLife.c",line="228"},thread-id="1",stopped-threads="all"\
,core="1"
883,981 =breakpoint-deleted,id="1"
883,981 (gdb)
|
|
| | | | |
Goto Forum:
Current Time: Sat Oct 05 06:54:48 GMT 2024
Powered by FUDForum. Page generated in 0.03079 seconds
|