[RFA] gdb/win32-nat.c Step the correct thread
Sun Dec 2 21:53:00 GMT 2007
> -----Original Message-----
> From: email@example.com [mailto:gdb-patches-
> firstname.lastname@example.org] On Behalf Of Christopher Faylor
> Sent: Sunday, December 02, 2007 3:46 AM
> To: email@example.com; Pierre Muller
> Subject: Re: [RFA] gdb/win32-nat.c Step the correct thread
> 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
> > This simple patch corrects this.
> >The testsuite runs with and without this patch
> >show no difference.
> >OK to check in?
I am preparing a patch that
will get the win32 port of gdb to
set schechuler-locking on
which stipulates that only the stepped thread
will be allowed to executed and all other threads
The only problem is that I need to reintroduce
the suspend_count field in thread_info record
for that to work.
More information about the Gdb-patches