News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

gdb invocation without -args on commandline

Started by m0n0, December 19, 2008, 07:38:16 PM

Previous topic - Next topic

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?

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:

#!/bin/sh
/usr/bin/gdb -nx -fullname  -quiet $5


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 ?