From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5484 invoked by alias); 14 Feb 2012 13:44:40 -0000 Received: (qmail 5476 invoked by uid 22791); 14 Feb 2012 13:44:39 -0000 X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,SPF_FAIL X-Spam-Check-By: sourceware.org Received: from gbenson.demon.co.uk (HELO gbenson.demon.co.uk) (80.177.220.214) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 14 Feb 2012 13:44:19 +0000 Date: Tue, 14 Feb 2012 13:44:00 -0000 From: Gary Benson To: Tom Tromey Cc: Jan Kratochvil , gdb-patches@sourceware.org Subject: Re: RFC: fix crash when inferior exits during "continue" Message-ID: <20120214134417.GA6730@redhat.com> Mail-Followup-To: Tom Tromey , Jan Kratochvil , gdb-patches@sourceware.org References: <20120210144040.GA28038@host2.jankratochvil.net> <87ty2ya1ys.fsf@fleche.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87ty2ya1ys.fsf@fleche.redhat.com> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-02/txt/msg00262.txt.bz2 Tom Tromey wrote: > >>>>> "Jan" == Jan Kratochvil 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/