Re: RFC: fix crash when inferior exits during "continue"

Gary Benson
2012-02-14T13:44:40Z

Tom Tromey wrote:
> >>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:
>
> Jan> Maybe during make_cleanup_restore_current_thread temporarily
> Jan> remember + clear inferior-> removable instead.
>
> I hadn't considered this, but it is an interesting idea.
>
> It would have the maybe odd effect of leaving the dead inferior
> around as long as it was selected. Maybe this is even the clearest
> thing to do; I am not sure.
>
> Do you (or anybody) have an opinion on which is better?

I'm not especially familiar with this area of GDB, but I prefer the
idea of holding the selection on the dead inferior over arbitrarily
selecting another. I think the latter could be confusing.

Gary

--