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


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

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