News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

console window crashes after breakpoint while in debug mode

Started by lbjvg, November 01, 2010, 04:25:54 AM

Previous topic - Next topic

lbjvg

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. ).

tanq

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.

tanq

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.

Folco

Kernel Extremist - PedroM power ©