Author Topic: can't debug, gdb crashes.  (Read 1959 times)

Offline alkoman

  • Single posting newcomer
  • *
  • Posts: 4
can't debug, gdb crashes.
« on: October 11, 2008, 12:37:25 pm »
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.

Quote
Building 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?
« Last Edit: October 11, 2008, 12:42:29 pm by alkoman »