This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [gdbserver/win32] (4/11) New interrupting method
- 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:56:11 -0500
- Subject: Re: [gdbserver/win32] (4/11) New interrupting method
- References: <4737B553.2040302@portugalmail.pt>
On Mon, Nov 12, 2007 at 02:07:15AM +0000, Pedro Alves wrote:
> 2007-11-12 Leo Zayas <lerele@champenstudios@com>
> Pedro Alves <pedro_alves@portugalmail.pt>
>
> * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
> global variables.
> (child_add_thread): Minor cleanup.
> (child_continue): Resume artificially suspended threads before
> calling ContinueDebugEvent.
> (suspend_one_thread): New.
> (fake_breakpoint_event): New.
> (get_child_debug_event): Change return type to int. Check here if
> gdb sent an interrupt request. If a soft interrupt was
> requested, fake a breakpoint event. Return 0 if there is no event
> to handle, and 1 otherwise.
> (win32_wait): Don't check here if gdb sent an interrupt request.
> Ensure there is a valid event to handle.
> (win32_request_interrupt): Add soft interruption method as last resort.
This looks OK to me.
--
Daniel Jacobowitz
CodeSourcery