This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: GDB needs a --cmdline option
- To: Mo DeJong <mdejong at cygnus dot com>
- Subject: Re: GDB needs a --cmdline option
- From: Fernando Nasser <fnasser at cygnus dot com>
- Date: Wed, 10 May 2000 11:09:10 -0400
- CC: DJ Delorie <dj at delorie dot com>, gdb-patches at sourceware dot cygnus dot com
- Organization: Red Hat , Inc. - Toronto
- References: <Pine.SOL.3.91.1000508210428.24783A-100000@cse.cygnus.com>
Mo DeJong wrote:
>
> 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.
>
Lets do it together. But I can only start 5/29. Can it wait that long?
--
Fernando Nasser
Red Hat - Toronto E-Mail: fnasser@cygnus.com
2323 Yonge Street, Suite #300 Tel: 416-482-2661 ext. 311
Toronto, Ontario M4P 2C9 Fax: 416-482-6299