Code::Blocks Forums
User forums => Help => Topic started by: spectrum 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
-
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.
-
for my purposes, Settings -> Compiler and debugger... -> Debugger settings -> Debugger initializations commands is perfect.
many thanks.