From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20008 invoked by alias); 10 Jun 2008 15:14:42 -0000 Received: (qmail 20000 invoked by uid 22791); 10 Jun 2008 15:14:40 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 10 Jun 2008 15:14:23 +0000 Received: (qmail 8100 invoked from network); 10 Jun 2008 15:14:21 -0000 Received: from unknown (HELO orlando.local) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 10 Jun 2008 15:14:21 -0000 From: Pedro Alves To: gdb@sourceware.org Subject: Re: non-stop and current thread exiting Date: Tue, 10 Jun 2008 15:14:00 -0000 User-Agent: KMail/1.9.9 Cc: Pawel Piech , Marc Khouzam References: <200806032253.39575.pedro@codesourcery.com> <48485934.6010304@windriver.com> <48487B44.6030300@windriver.com> In-Reply-To: <48487B44.6030300@windriver.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200806101614.24218.pedro@codesourcery.com> X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-06/txt/msg00074.txt.bz2 Guys, Sorry for leaving the discussion for so long. I was experimenting with the options, so I could get a larger picture of what was implied. I've implemented and tried the several options, and ended up settling with the c) option. That is, if the selected thread exits, GDB will have no selected thread; most commands then error out until the user/frontend selects a thread. Already exited threads may be left in the internal thread list while the core still needs them, but are not visible to the user. Since all-stop doesn't accept commands while the inferior is running, and switches to the thread that gets a stop event automatically, it is unaffected. I propose we go with this behaviour first, and let people experiment with it. I'm going to post this as one of the topmost patches of a new non-stop series, now that all it's dependencies have been checked in. -- Pedro Alves