User forums > Help
gdb invocation without -args on commandline
(1/1)
m0n0:
Hi there!
I'm lucky that there is a Cross Platform Dev environment like Code Blocks! It's really good work, especially the flexible and USABLE compiling interface!! Big thanks for that piece of Software! (this is for the coders/supporters that read this...)
I'm having a problem invoking gdb... my version of gdb isn't accepting the "-args" parameter.
Is there any way to turn that command line option OFF?
That's all. Help would be appriciated! :)
Cheers,
Ole
Jenna:
--- Quote from: m0n0 on December 19, 2008, 07:38:16 pm ---I'm having a problem invoking gdb... my version of gdb isn't accepting the "-args" parameter.
Is there any way to turn that command line option OFF?
--- End quote ---
No, it's hardcoded.
Which version of gdb do you use ?
The only workaround I see would be to use a batch-file (or shell-script, depending on the platform you are on), that is called instead the real gdb.
The batch-file can call gdb and only use the parameters your gdb knows.
On linux it could look like:
--- Code: ---#!/bin/sh
/usr/bin/gdb -nx -fullname -quiet $5
--- End code ---
But if your version of gdb is too old, you will most likely not be able to use it with C::B.
m0n0:
Hi there,
I'm using version 5.1, cross compiled for ARM builds.
I already tried 2 approaches to use an wrapper. They all ended in an execv (or something of that kind...) return value error.
So I thougt CodeBlocks maybe needs to capture the output of the debugger.
I',ll give your wrapper a try.
Thanks & Greeting!
Jenna:
You will most likely not get a working toolchain, because C::B parses the output of gdb and 5.1 is really old.
Why don't you use a more recent arm-toolchain ?
Navigation
[0] Message Index
Go to full version