Author Topic: enable debugger in code::blocks 16.01  (Read 4892 times)

Offline MortalChip

  • Single posting newcomer
  • *
  • Posts: 2
enable debugger in code::blocks 16.01
« 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?  :-\

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: enable debugger in code::blocks 16.01
« Reply #1 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).

Offline MortalChip

  • Single posting newcomer
  • *
  • Posts: 2
Re: enable debugger in code::blocks 16.01
« Reply #2 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.  :-[
« Last Edit: December 29, 2016, 12:39:49 am by MortalChip »