[gdbserver/win32] (3/11) Fix suspend count handling
Sat Dec 1 18:53:00 GMT 2007
On Mon, Nov 12, 2007 at 02:06:59AM +0000, Pedro Alves wrote:
> I have yet to turn this into a proper gdb test. Is that wanted? Where
> shall I put it? gdb.base? gdb.thread? other?
gdb.threads would be good, I think.
> 2007-11-12 Leo Zayas <lerele@champenstudios@com>
> Pedro Alves <firstname.lastname@example.org>
> * win32-low.h (win32_thread_info): Add descriptions to the
> structure members . Replace `suspend_count' counter by a
> `suspended' flag.
> * win32-low.c (thread_rec): Update condition of when to get the
> context from the inferior. Rely on ContextFlags being set if it
> has already been retrieved. Only suspend the inferior thread if
> we haven't already. Warn if that fails.
> (continue_one_thread): s/suspend_count/suspended/. Only call
> ResumeThread once. Warn if that fails.
More information about the Gdb-patches