GDB needs a --cmdline option
Mon May 8 21:11:00 GMT 2000
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.
Red Hat Inc.
More information about the Gdb-patches