Author Topic: gdb invocation without -args on commandline  (Read 4043 times)

Offline m0n0

  • Single posting newcomer
  • *
  • Posts: 4
gdb invocation without -args on commandline
« on: December 19, 2008, 07:38:16 pm »
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

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: gdb invocation without -args on commandline
« Reply #1 on: December 19, 2008, 08:21:41 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:

Code
#!/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.

Offline m0n0

  • Single posting newcomer
  • *
  • Posts: 4
Re: gdb invocation without -args on commandline
« Reply #2 on: December 19, 2008, 11:49:22 pm »
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!

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: gdb invocation without -args on commandline
« Reply #3 on: December 20, 2008, 12:11:08 am »
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 ?