From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31173 invoked by alias); 13 Jun 2012 01:06:36 -0000 Received: (qmail 31158 invoked by uid 22791); 13 Jun 2012 01:06:35 -0000 X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 13 Jun 2012 01:06:16 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1Sec2J-0001Qy-Ax from Yao_Qi@mentor.com ; Tue, 12 Jun 2012 18:06:15 -0700 Received: from SVR-ORW-FEM-05.mgc.mentorg.com ([147.34.97.43]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Tue, 12 Jun 2012 18:06:15 -0700 Received: from [127.0.0.1] (147.34.91.1) by svr-orw-fem-05.mgc.mentorg.com (147.34.97.43) with Microsoft SMTP Server id 14.1.289.1; Tue, 12 Jun 2012 18:06:13 -0700 Message-ID: <4FD7E784.1080508@codesourcery.com> Date: Wed, 13 Jun 2012 01:06:00 -0000 From: Yao Qi User-Agent: Mozilla/5.0 (X11; Linux i686; rv:13.0) Gecko/20120601 Thunderbird/13.0 MIME-Version: 1.0 To: Pedro Alves CC: Subject: Re: [PATCH] Don't switch to the event thread early in non-stop mode. References: <20120612184440.29776.25769.stgit@brno.lan> In-Reply-To: <20120612184440.29776.25769.stgit@brno.lan> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit 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-06/txt/msg00375.txt.bz2 On 06/13/2012 02:44 AM, Pedro Alves wrote: > case TARGET_WAITKIND_SPURIOUS: > if (debug_infrun) > fprintf_unfiltered (gdb_stdlog, "infrun: TARGET_WAITKIND_SPURIOUS\n"); > + if (!ptid_equal (ecs->ptid, inferior_ptid) > + && !ptid_equal (ecs->ptid, minus_one_ptid)) > + context_switch (ecs->ptid); Is there any reason to check minus_one_ptid? -- Yao (齐尧)