Author Topic: passing parameters to gdb  (Read 5820 times)

Offline spectrum

  • Multiple posting newcomer
  • *
  • Posts: 16
passing parameters to gdb
« on: December 30, 2008, 04:30:03 pm »
Hi all,

i need to pass a parameter to gdb, with the --comand= , or to make it read the gdb.ini.

C::B Compiler options don't allow to pass parameters, and also, seems i cannot replace gdb.exe with a .bat.

Every solution is really appreciated,
thanks


Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: passing parameters to gdb
« Reply #1 on: December 30, 2008, 04:46:13 pm »
C::B Compiler options don't allow to pass parameters, and also, seems i cannot replace gdb.exe with a .bat.

Replacing gdb.exe with a bat works without problems, make sure it is in system-path, in the toolchains or additional compiler path.
I appreciate to use a name that cannot conflict with other programs.

You can also send commands to the running gdb before the program is started (s3e "Settings -> Compiler and debugger... -> Debugger settings -> Debugger initializations commands", but these commands are global to all debuggers.

If you use a bat you can create a special compiler, by copying the one you use now and change only the gdb-executable to the batch-file you created.

Offline spectrum

  • Multiple posting newcomer
  • *
  • Posts: 16
Re: passing parameters to gdb
« Reply #2 on: December 30, 2008, 06:15:48 pm »
for my purposes, Settings -> Compiler and debugger... -> Debugger settings -> Debugger initializations commands is perfect.

many thanks.