This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [gdbserver/win32] (4/11) New interrupting method


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]