GDB needs a --cmdline option

Fernando Nasser fnasser@cygnus.com
Thu May 11 06:47:00 GMT 2000


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


More information about the Gdb-patches mailing list