News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

passing parameters to gdb

Started by spectrum, December 30, 2008, 04:30:03 PM

Previous topic - Next topic

spectrum

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


Jenna

Quote from: spectrum on December 30, 2008, 04:30:03 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.

spectrum

for my purposes, Settings -> Compiler and debugger... -> Debugger settings -> Debugger initializations commands is perfect.

many thanks.