This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: RFC: Targets that do not call generic_mourn_inferior() ?
- To: Fernando Nasser <fnasser at redhat dot com>
- Subject: Re: RFC: Targets that do not call generic_mourn_inferior() ?
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Wed, 01 Mar 2000 22:28:34 +1100
- CC: gdb-patches at sourceware dot cygnus dot com
- Organization: Cygnus Solutions
- References: <38B40D27.36766187@redhat.com>
Fernando Nasser wrote:
>
> It seems to me that, except for very exceptional circustances, all
> remote targets should be calling generic_mourn_inferior(). It does some
> gdb cleanup that is necessary if the user ever reconnects to the target
> within the same session.
>
> An alternative is to have gdb forcifully calling this when unpushing a
> target, but the current way is more flexible (and more error prone as
> well).
>
> Here is a patch for two targets that missed that call and act very silly
> if one does a "I reg" or "bt" after reconnecting.
Approved (and checked in).
Andrew