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


Eli Zaretskii wrote:
> 
> > Date: Wed, 10 May 2000 16:43:22 -0400
> > From: Fernando Nasser <fnasser@cygnus.com>
> >
> > Gdb will silently exit on program exit, with the same return code
> > as the inferior ended.
> 
> It might be a good idea to give users control on this particular
> aspect.  I can imagine situations where a user would want gdb to not
> exit if, e.g., the program returned a non-zero status.

Unfortunately it will be too late.  When the program exits most UNIXes
will get rid of the process data.

But gdb will still read the .gdbinit file and, if you put a "b _exit" in
there gdb will fire up as you want.

Is that acceptable?

-- 
Fernando Nasser
Cygnus Solutions (a Red Hat company)    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]