User forums > Using Code::Blocks
Debug problem on Windows
(1/1)
TSalm:
Hi,
I'm using C::B with :
- Windows Vista (please no comment thanks ;) )
- MinGW with g++ version 3.4.2
- gdb 5.2.1
I compile my project with the `-g` option.
When I launch the debugguer, it send the message : no debugging symbols found
here is the log :
--- Code: ---Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i686-pc-mingw32".
>>>>>>cb_gdb:
> set confirm off
>>>>>>cb_gdb:
> set width 0
>>>>>>cb_gdb:
> set height 0
>>>>>>cb_gdb:
> set breakpoint pending on
No symbol table is loaded. Use the "file" command.
>>>>>>cb_gdb:
> set print asm-demangle on
>>>>>>cb_gdb:
> set unwindonsignal on
>>>>>>cb_gdb:
> set debugevents on
>>>>>>cb_gdb:
> set new-console on
>>>>>>cb_gdb:
> set disassembly-flavor att
>>>>>>cb_gdb:
> directory ../src
>>>>>>cb_gdb:
> directory C:/Users/Florent/Documents/src/ROOT/FLorganiz/IDE/
>>>>>>cb_gdb:
> directory C:/Users/Florent/Documents/src/ROOT/FLorganiz/
>>>>>>cb_gdb:
> break "C:/Users/Florent/Documents/src/ROOT/FLorganiz/src/main.cpp:138"
No symbol table is loaded. Use the "file" command.
>>>>>>cb_gdb:
> break "C:/Users/Florent/Documents/src/ROOT/FLorganiz/src/main.cpp:282"
No symbol table is loaded. Use the "file" command.
>>>>>>cb_gdb:
> run
gdb: child_init_thread_list
gdb: kernel event for pid=2980 tid=1672 code=CREATE_PROCESS_DEBUG_EVENT)
gdb: kernel event for pid=2980 tid=1672 code=LOAD_DLL_DEBUG_EVENT)
gdb: kernel event for pid=2980 tid=1672 code=LOAD_DLL_DEBUG_EVENT)
gdb: kernel event for pid=2980 tid=1672 code=LOAD_DLL_DEBUG_EVENT)
gdb: kernel event for pid=2980 tid=1672 code=EXCEPTION_DEBUG_EVENT)
gdb: kernel event for pid=2980 tid=978 code=CREATE_THREAD_DEBUG_EVENT)
gdb: kernel event for pid=2980 tid=2424 code=EXIT_THREAD_DEBUG_EVENT)
gdb: kernel event for pid=2980 tid=1672 code=EXIT_PROCESS_DEBUG_EVENT)
Program exited normally.
gdb: child_close, inferior_ptid=1672
>>>>>>cb_gdb:
> quit
--- End code ---
I really don't understand...
have a way ?
thanks in advance.
TSalm
TDragon:
I'm not sure if this is the cause of your problem, but as per this page in the Wiki, GDB 6.3-2 is the recommended version to use with Code::Blocks.
byo:
Also check if you have "Strip all symbols from binary" selected. That option will remove all symbols even when using -g option.
BYO
TSalm:
Oups,
Indeed, the option "Stop all symbols from binary" was selected...
now it seems to run smoothly,
I'll look for GDB 6.3-2 to avoid any other problem.
thanks to byo and TDragon.
TSalm
Navigation
[0] Message Index
Go to full version