This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: GDB needs a --cmdline option


On Mon, 8 May 2000, Fernando Nasser wrote:

> Based on what DJ wrote, we could do something similar to dbx.
> 
> gdb <gdb command line switches> -run <command line>
> 
> The first token would be the program to run and everything else
> would be set as arguments for that program (implicit "set args").
> 
> The -run must be (obviously) the last gdb command line switch.
>
> Gdb will silently exit on program exit, with the same return code
> as the inferior ended.
> 
> Opinions?  Volunteers?

This functionality would be great. We need this for Source Nav
to debug our really lousy custom parsers. They crash all the time
but they are run in a pipeline so it is kind of ugly to try to debug
them. It would be really great if the parsers could be "run in gdb"
and just act like the normal program when nothing went wrong.

I have never hacked on gdb before, but I would be willing to do
whatever I can to help making this cool feature a reality.

Mo DeJong
Red Hat Inc.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]