From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6296 invoked by alias); 2 Dec 2007 02:46:27 -0000 Received: (qmail 6284 invoked by uid 22791); 2 Dec 2007 02:46:25 -0000 X-Spam-Check-By: sourceware.org Received: from pool-70-20-17-24.bstnma.fios.verizon.net (HELO ednor.cgf.cx) (70.20.17.24) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 02 Dec 2007 02:46:21 +0000 Received: by ednor.cgf.cx (Postfix, from userid 201) id 22CFC2B352; Sat, 1 Dec 2007 21:46:20 -0500 (EST) Date: Sun, 02 Dec 2007 02:46:00 -0000 From: Christopher Faylor To: gdb-patches@sourceware.org, Pierre Muller Subject: Re: [RFA] gdb/win32-nat.c Step the correct thread Message-ID: <20071202024620.GC15745@ednor.casa.cgf.cx> Mail-Followup-To: gdb-patches@sourceware.org, Pierre Muller References: <002801c8329e$d726e090$8574a1b0$@u-strasbg.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <002801c8329e$d726e090$8574a1b0$@u-strasbg.fr> User-Agent: Mutt/1.5.16 (2007-06-09) 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: 2007-12/txt/msg00029.txt.bz2 On Thu, Nov 29, 2007 at 04:45:17PM +0100, Pierre Muller wrote: > While trying to understand the SuspendThread >counting problems, I tried to single step after changing >thread, and I noticed that the next event always >brought me back to the main thread. > > There is a bug in the current win32-nat.c source >which places the trace bit always in the >main thread, while we should step the thread identified by >inferior_ptid. > > This simple patch corrects this. > >The testsuite runs with and without this patch >show no difference. > >OK to check in? Ok. cgf