News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

can't debug, gdb crashes.

Started by alkoman, October 11, 2008, 12:37:25 PM

Previous topic - Next topic

alkoman

I have a simple C++ program with only the main() function and when I try to debug the code (by pressing F7), it just skips to the end of the program and then crashes.

i'm using the CB version SVN 5208 and gdb 6.3.

QuoteBuilding to ensure sources are up-to-date
Build succeeded
Selecting target:
Debug
Adding source dir: D:\zdelamo\works\test2\CB_test\test\
Adding source dir: D:\zdelamo\works\test2\CB_test\test\
Adding file: bin\Debug\test.exe
Starting debugger:
done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Debugger name and version: GNU gdb 6.3
Child process PID: 1692
At D:/zdelamo/CodeBlocks/mingw_gcc-3.4.5/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/iostream:77
At D:/zdelamo/works/test2/CB_test/test/main.cpp:54
In global constructors keyed to main () at D:/zdelamo/works/test2/CB_test/test/main.cpp:55 ()
At D:/zdelamo/CodeBlocks/mingw_gcc-3.4.5/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/iostream:77
In __mingw_CRTStartup () ()
Debugger finished with status 1

EDIT:
it seems it works fine when debugging a C (not C++) program.
why is that?