Code::Blocks Forums

User forums => Help => Topic started by: MortalChip on December 28, 2016, 10:58:37 pm

Title: enable debugger in code::blocks 16.01
Post by: MortalChip on December 28, 2016, 10:58:37 pm
I install a code::blocks with debugger, but when I try to use him I receive next errors in debugger window:
"[debug]gcc.exe: error: unrecognized command line option '-quiet'
[debug]gcc.exe: error: unrecognized command line option '-nx'
[debug]gcc.exe: error: unrecognized command line option '-fullname'
[debug]gcc.exe: error: unrecognized command line option '-args'

Debugger finished with status 1"

What I do wrong?  :-\
Title: Re: enable debugger in code::blocks 16.01
Post by: Jenna on December 28, 2016, 11:35:13 pm
It looks like gcc.exe is set as your debugger executable.
For MinGW/GCC it should be gdb.exe (on windows).
Title: Re: enable debugger in code::blocks 16.01
Post by: MortalChip on December 29, 2016, 12:22:39 am
It looks like gcc.exe is set as your debugger executable.
For MinGW/GCC it should be gdb.exe (on windows).
Thanks you a lot!   ;D
I set gdb.exe, but now I heve different problem  :-\
After I setup denugger as gdb.exe debugger start to run, but no matter where I set breakpoint, after debugger run and reaching breakpoint, I have next error:

Code
In ?? () ()

[debug]> info locals
[debug]No symbol table info available.
[debug]>>>>>>cb_gdb:
[debug]> info args
[debug]No symbol table info available.
[debug]>>>>>>cb_gdb:
[debug]> bt 30
[debug]#0  0x0009e0d8 in ?? ()
[debug]#1  0x00000000 in ?? ()
[debug]>>>>>>cb_gdb:
[debug]> next
[debug]Cannot find bounds of current function
[debug]>>>>>>cb_gdb:

Cannot find bounds of current function

[debug]> next
[debug]Cannot find bounds of current function
[debug]>>>>>>cb_gdb:

Cannot find bounds of current function

Even if this "next line" work fine when breakpoint is after it.
I forget to set something? :/

SOLVED: I should to choose gbc32.exe.  :-[