From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18646 invoked by alias); 13 Jul 2008 04:34:53 -0000 Received: (qmail 18637 invoked by uid 22791); 13 Jul 2008 04:34:52 -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; Sun, 13 Jul 2008 04:34:34 +0000 Received: (qmail 17353 invoked from network); 13 Jul 2008 04:34:33 -0000 Received: from unknown (HELO 172.16.unknown.plus.ru) (vladimir@127.0.0.2) by mail.codesourcery.com with ESMTPA; 13 Jul 2008 04:34:33 -0000 From: Vladimir Prus To: Pedro Alves Subject: Re: [MI non-stop 09/11] Don't care about user-defined thread if --thread is present. Date: Sun, 13 Jul 2008 04:34:00 -0000 User-Agent: KMail/1.9.9 Cc: gdb-patches@sourceware.org References: <200806282058.04805.vladimir@codesourcery.com> <200807111451.59696.pedro@codesourcery.com> In-Reply-To: <200807111451.59696.pedro@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200807130834.23003.vladimir@codesourcery.com> 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: 2008-07/txt/msg00250.txt.bz2 On Friday 11 July 2008 17:51:59 Pedro Alves wrote: > A Saturday 28 June 2008 17:58:04, Vladimir Prus wrote: > > If an MI command has --thread parameter, we don't care in any way > > that user selected thread is. Will commit after core non-stop is in. > > > > Note that the version that was committed doesn't have user_selected_ptid > anymore, Oh, that was a nice concept :-) > and neither an inferior_ptid == null_ptid case, as long as the > target still has execution. I think that you're already checking > if the thread is THREAD_EXITED somewhere else before letting the > command run, so this will disappear. I don't think I check for THREAD_EXITED. OTOH, given that now the check for non-exiteness applies not to user-selected thread, but to the thread we ultimately operate on (after --thread is processed), I don't think this patch is necessary any more. - Volodya