This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [gdbserver/win32] (3/11) Fix suspend count handling
- From: Daniel Jacobowitz <drow at false dot org>
- To: Pedro Alves <pedro_alves at portugalmail dot pt>
- Cc: gdb-patches at sourceware dot org, Lerele <lerele at champenstudios dot com>
- Date: Sat, 1 Dec 2007 13:53:37 -0500
- Subject: Re: [gdbserver/win32] (3/11) Fix suspend count handling
- References: <4737B543.80607@portugalmail.pt>
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 <pedro_alves@portugalmail.pt>
>
> * 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.
OK.
--
Daniel Jacobowitz
CodeSourcery