Code::Blocks Forums
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
As usual while waiting for the next release - don't forget to check the
nightly builds
in the forum.
Home
Help
Search
Login
Register
Code::Blocks Forums
»
User forums
»
Help
»
console window crashes after breakpoint while in debug mode
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: console window crashes after breakpoint while in debug mode (Read 3845 times)
lbjvg
Guest
console window crashes after breakpoint while in debug mode
«
on:
November 01, 2010, 04:25:54 am »
Simple console application programs I create compile and run correctly. When I set a breakpoint and launch the debugger - the execution pauses as expected. However, when I click the 'Debug/Continue' button again to continue - the console window crashes. The happens routinely every time. Is this a codeblocks problem or a gdb problem or something else? Thanks (ps I am on win 7 64 bit. mingw, gdb 7.2. ).
«
Last Edit: November 02, 2010, 12:51:22 am by lbjvg
»
Logged
tanq
Multiple posting newcomer
Posts: 18
Re: console window crashes after breakpoint while in debug mode
«
Reply #1 on:
November 06, 2010, 03:24:59 pm »
Looks like GDB is to blame. C::B don't access debugging application directrly, in only send commands to GDB, and GDB interacts with GDB_server which resides in your app address space. Try to download new version of GCC, or obtain GDB separetely.
Logged
tanq
Multiple posting newcomer
Posts: 18
Re: console window crashes after breakpoint while in debug mode
«
Reply #2 on:
November 06, 2010, 03:27:44 pm »
Forgot to mention, all compile optimizations must be turned off for debugging. When they aren't, debugger can not find requested source lines in binary and sets breakpoints to wrong places.
Logged
Folco
Regular
Posts: 343
Re: console window crashes after breakpoint while in debug mode
«
Reply #3 on:
November 06, 2010, 04:14:41 pm »
Nice tip tanq, thank you.
Logged
Kernel Extremist - PedroM power ©
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
Code::Blocks Forums
»
User forums
»
Help
»
console window crashes after breakpoint while in debug mode