GDB needs a --cmdline option

Fernando Nasser fnasser@cygnus.com
Wed May 10 13:43:00 GMT 2000


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


More information about the Gdb-patches mailing list