This is the mail archive of the gdb-patches@sourceware.org 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]
Other format: [Raw text]

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


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

-- 
http://gbenson.net/


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