Program doesn't stop at breakpoints

CodeLite installation/troubleshooting forum
OLiverr
CodeLite Enthusiast
Posts: 13
Joined: Sun Jan 18, 2009 9:30 pm
Location: Thüringen (Germany)
Contact:

Re: Program doesn't stop at breakpoints

Post by OLiverr »

But I already gave you a log and there is nothing new.
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Program doesn't stop at breakpoints

Post by eranif »

If you refer to the log pasted in your first post, then I simply see that gdb stops to respond (I can see that codelite sends commands, but I dont see the reply from gdb) this may indicate the gdb crashed.

a log of the working and non-working logs will be great for comparison

Eran
Make sure you have read the HOW TO POST thread
OLiverr
CodeLite Enthusiast
Posts: 13
Joined: Sun Jan 18, 2009 9:30 pm
Location: Thüringen (Germany)
Contact:

Re: Program doesn't stop at breakpoints

Post by OLiverr »

Yes I think gdb actually crashes because the task just disappear.

So here is the crashing version: ("Auto-Resolve this in the local view" enabled)

Code: Select all

DEBUG>>set unwindonsignal on
DEBUG>>set width 0
DEBUG>>set height 0
DEBUG>>set environment LD_LIBRARY_PATH = .
-break-insert "/home/oliver/siedler25/trunk/src/GameManager.cpp:72"
DEBUG>>00000068-break-insert "/home/oliver/siedler25/trunk/src/GameManager.cpp:72"
Debug session started successfully!
DEBUG>>00000069-exec-run 
DEBUG>>~"GNU gdb 6.8\n"
GNU gdb 6.8
DEBUG>>~"Copyright (C) 2008 Free Software Foundation, Inc.\n"
Copyright (C) 2008 Free Software Foundation, Inc.
DEBUG>>~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\n"
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
DEBUG>>~"This is free software: you are free to change and redistribute it.\n"
This is free software: you are free to change and redistribute it.
DEBUG>>~"There is NO WARRANTY, to the extent permitted by law.  Type \"show copying\"\n"
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
DEBUG>>~"and \"show warranty\" for details.\n"
and "show warranty" for details.
DEBUG>>~"This GDB was configured as \"i686-pc-linux-gnu\"...\n"
This GDB was configured as "i686-pc-linux-gnu"...
DEBUG>>(gdb)
Debuggee process ID: 11962
DEBUG>>&"set unwindonsignal on\n"
set unwindonsignal on
DEBUG>>^done
DEBUG>>(gdb)
DEBUG>>&"set width 0\n"
set width 0
DEBUG>>^done
DEBUG>>(gdb)
DEBUG>>&"set height 0\n"
set height 0
DEBUG>>^done
DEBUG>>(gdb)
DEBUG>>&"set environment LD_LIBRARY_PATH = .\n"
set environment LD_LIBRARY_PATH = .
DEBUG>>^done
DEBUG>>(gdb)
DEBUG>>00000068^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x083c858b",func="GameManager::Start()",file="/home/oliver/siedler25/trunk/src/GameManager.cpp",fullname="/home/oliver/siedler25/trunk/src/GameManager.cpp",line="72",times="0"}
Found the breakpoint ID!
Storing debugger breakpoint Id=1
Successfully set breakpoint 1 at: /home/oliver/siedler25/trunk/src/GameManager.cpp:72
DEBUG>>(gdb)
DEBUG>>00000069^running
Continuing...
DEBUG>>(gdb)
DEBUG>>~"[Thread debugging using libthread_db enabled]\n"
[Thread debugging using libthread_db enabled]
DEBUG>>~"[New Thread 0xb7b1a6e0 (LWP 11962)]\n"
[New Thread 0xb7b1a6e0 (LWP 11962)]
DEBUG>>~"[Switching to Thread 0xb7b1a6e0 (LWP 11962)]\n"
[Switching to Thread 0xb7b1a6e0 (LWP 11962)]
DEBUG>>00000069*stopped,reason="breakpoint-hit",bkptno="1",thread-id="1",frame={addr="0x083c858b",func="GameManager::Start",args=[{name="this",value="0x8686ff0"}],file="/home/oliver/siedler25/trunk/src/GameManager.cpp",fullname="/home/oliver/siedler25/trunk/src/GameManager.cpp",line="72"}
DEBUG>>00000070-file-list-exec-source-file
DEBUG>>(gdb)
DEBUG>>00000070^done,line="72",file="/home/oliver/siedler25/trunk/src/GameManager.cpp",fullname="/home/oliver/siedler25/trunk/src/GameManager.cpp",macro-info="0"
DEBUG>>00000071-data-evaluate-expression *this
DEBUG>>00000072-stack-list-arguments 1 0 0
DEBUG>>00000073-stack-list-locals --all-values
DEBUG>>(gdb)
And here the working version (this auto-resolving disabled):

Code: Select all

DEBUG>>set unwindonsignal on
DEBUG>>set width 0
DEBUG>>set height 0
DEBUG>>set environment LD_LIBRARY_PATH = .
-break-insert "/home/oliver/siedler25/trunk/src/GameManager.cpp:72"
DEBUG>>00000068-break-insert "/home/oliver/siedler25/trunk/src/GameManager.cpp:72"
Debug session started successfully!
DEBUG>>00000069-exec-run 
DEBUG>>~"GNU gdb 6.8\n"
GNU gdb 6.8
DEBUG>>~"Copyright (C) 2008 Free Software Foundation, Inc.\n"
Copyright (C) 2008 Free Software Foundation, Inc.
DEBUG>>~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\n"
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
DEBUG>>~"This is free software: you are free to change and redistribute it.\n"
This is free software: you are free to change and redistribute it.
DEBUG>>~"There is NO WARRANTY, to the extent permitted by law.  Type \"show copying\"\n"
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
DEBUG>>~"and \"show warranty\" for details.\n"
and "show warranty" for details.
DEBUG>>~"This GDB was configured as \"i686-pc-linux-gnu\"...\n"
This GDB was configured as "i686-pc-linux-gnu"...
DEBUG>>(gdb)
Debuggee process ID: 11962
DEBUG>>&"set unwindonsignal on\n"
set unwindonsignal on
DEBUG>>^done
DEBUG>>(gdb)
DEBUG>>&"set width 0\n"
set width 0
DEBUG>>^done
DEBUG>>(gdb)
DEBUG>>&"set height 0\n"
set height 0
DEBUG>>^done
DEBUG>>(gdb)
DEBUG>>&"set environment LD_LIBRARY_PATH = .\n"
set environment LD_LIBRARY_PATH = .
DEBUG>>^done
DEBUG>>(gdb)
DEBUG>>00000068^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x083c858b",func="GameManager::Start()",file="/home/oliver/siedler25/trunk/src/GameManager.cpp",fullname="/home/oliver/siedler25/trunk/src/GameManager.cpp",line="72",times="0"}
Found the breakpoint ID!
Storing debugger breakpoint Id=1
Successfully set breakpoint 1 at: /home/oliver/siedler25/trunk/src/GameManager.cpp:72
DEBUG>>(gdb)
DEBUG>>00000069^running
Continuing...
DEBUG>>(gdb)
DEBUG>>~"[Thread debugging using libthread_db enabled]\n"
[Thread debugging using libthread_db enabled]
DEBUG>>~"[New Thread 0xb7b1a6e0 (LWP 11962)]\n"
[New Thread 0xb7b1a6e0 (LWP 11962)]
DEBUG>>~"[Switching to Thread 0xb7b1a6e0 (LWP 11962)]\n"
[Switching to Thread 0xb7b1a6e0 (LWP 11962)]
DEBUG>>00000069*stopped,reason="breakpoint-hit",bkptno="1",thread-id="1",frame={addr="0x083c858b",func="GameManager::Start",args=[{name="this",value="0x8686ff0"}],file="/home/oliver/siedler25/trunk/src/GameManager.cpp",fullname="/home/oliver/siedler25/trunk/src/GameManager.cpp",line="72"}
DEBUG>>00000070-file-list-exec-source-file
DEBUG>>(gdb)
DEBUG>>00000070^done,line="72",file="/home/oliver/siedler25/trunk/src/GameManager.cpp",fullname="/home/oliver/siedler25/trunk/src/GameManager.cpp",macro-info="0"
DEBUG>>00000071-data-evaluate-expression *this
DEBUG>>00000072-stack-list-arguments 1 0 0
DEBUG>>00000073-stack-list-locals --all-values
DEBUG>>(gdb)
DEBUG>>DEBUG>>00000074-var-create - * "return"
DEBUG>>00000075print return
DEBUG>>00000076-var-create - * "return"
DEBUG>>00000077print return
DEBUG>>00000078-var-create - * "return"
DEBUG>>00000079print return
DEBUG>>00000080-var-create - * "return"
DEBUG>>00000081print return
DEBUG>>00000082-exec-next
DEBUG>>00000083-exec-next
DEBUG>>00000084-exec-next
DEBUG>>00000085-var-create - * "false"
DEBUG>>00000086print false
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Program doesn't stop at breakpoints

Post by eranif »

If GDB crashes, then there isnt really something I can do about it...

In the SVN version of codelite, you will get a message notification in the 'Debug' tab that says that the debugging session has ended
Eran
Make sure you have read the HOW TO POST thread
Post Reply