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 16:43:22 -0400
- CC: DJ Delorie <dj at delorie dot com>, gdb-patches at sourceware dot cygnus dot com
- Organization: Red Hat , Inc. - Toronto
- References: <Pine.LNX.4.10.10005101250570.18782-100000@abomination.cygnus.com>
Mo DeJong wrote:
>
> > > 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?
>
> Well, seeings how I don't know the first thing about gdb, it wil have to:)
> I can get started writing up documentation on the new feature if we can
> agree what the syntax will be. Lets get the interface done before we
> any code is written.
>
Agreed.
My suggestion is:
gdb <any set gdb command line options> -run <program name> <program arguments>
The <program name> would be the program to run and <program arguments>
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.
For now, this will force -nw (non-GUI mode).
--
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