User forums > Help

passing parameters to gdb

(1/1)

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.

--- End quote ---

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.

Navigation

[0] Message Index

Go to full version