Author Topic: Problem in using debugger | C:\MinGW\bin\gdb.exe: unrecognized option `-args'  (Read 8066 times)

Offline sachkiks

  • Single posting newcomer
  • *
  • Posts: 2
Dear All:
I am using codeblcok v10.05 on windows xp for C program.
My program is very simple and i am able to compile and run.
But if i want to do debugging, i mean single stepping then it not able to debug program.
I get following message on build log
------------------------------------------------------------------
C:\MinGW\bin\gdb.exe: unrecognized option `-args'
Use `C:\MinGW\bin\gdb.exe --help' for a complete list of options.
------------------------------------------------------------------

Please help me.

Regards
Sachin

Offline sachkiks

  • Single posting newcomer
  • *
  • Posts: 2
Hi,
Some more inputs
my version of gdb is v5.1.1

and i did not see args option in gdb

============================================================
C:\>gdb --help
This is the GNU debugger.  Usage:

    gdb [options] [executable-file [core-file or process-id]]

Options:

  --[no]async        Enable (disable) asynchronous version of CLI
  -b BAUDRATE        Set serial port baud rate used for remote debugging.
  --batch            Exit after processing options.
  --cd=DIR           Change current directory to DIR.
  --command=FILE     Execute GDB commands from FILE.
  --core=COREFILE    Analyze the core dump COREFILE.
  --dbx              DBX compatibility mode.
  --directory=DIR    Search for source files in DIR.
  --epoch            Output information used by epoch emacs-GDB interface.
  --exec=EXECFILE    Use EXECFILE as the executable.
  --fullname         Output information used by emacs-GDB interface.
  --help             Print this message.
  --interpreter=INTERP
                     Select a specific interpreter / user interface
  --mapped           Use mapped symbol files if supported on this system.
  --nw               Do not use a window interface.
  --nx               Do not read gdb.ini file.
  --quiet            Do not print version number on startup.
  --readnow          Fully read symbol files on first access.
  --se=FILE          Use FILE as symbol file and executable file.
  --symbols=SYMFILE  Read symbols from SYMFILE.
  --tty=TTY          Use TTY for input/output by the program being debugged.
  --version          Print version information and then exit.
  -w                 Use a window interface.
  --write            Set writing into executable and core files.
  --xdb              XDB compatibility mode.

=======================================================================


Please also tell me how to give command line options from IDE.

Regards
Sachin

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Use a gdb > 6.50, with 5.1.1 you will be lost when using it with recent compilers.