News:

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

Main Menu

Debug problem on Windows

Started by TSalm, June 27, 2007, 12:19:49 AM

Previous topic - Next topic

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 :
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


I really don't understand...
have a way ?
thanks in advance.

TSalm


OS: Linux Slackware
Compiler: gcc 3.4.6
wxW: 2.6.4

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.
[url="https://jmeubank.github.io/tdm-gcc/"]https://jmeubank.github.io/tdm-gcc/[/url] - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

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

OS: Linux Slackware
Compiler: gcc 3.4.6
wxW: 2.6.4