This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] gdb/win32-nat.c Step the correct thread
- From: Christopher Faylor <cgf-use-the-mailinglist-please at sourceware dot org>
- To: gdb-patches at sourceware dot org, Pierre Muller <muller at ics dot u-strasbg dot fr>
- Date: Sat, 1 Dec 2007 21:46:20 -0500
- Subject: Re: [RFA] gdb/win32-nat.c Step the correct thread
- References: <002801c8329e$d726e090$8574a1b0$@u-strasbg.fr>
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