* win32-low.c (soft_interrupt_requested, faked_breakpoint): New
authorPedro Alves <palves@redhat.com>
Mon, 3 Dec 2007 01:18:49 +0000 (01:18 +0000)
committerPedro Alves <palves@redhat.com>
Mon, 3 Dec 2007 01:18:49 +0000 (01:18 +0000)
commit4d5d1aaa19eac2f7bbdace73e44d4057bcd7a9c4
treec348e2a5c5bade08234572c7114c7593c2404f93
parentc436e841ffe6de640cb19bd7915d117309ed079e
* 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.
gdb/gdbserver/ChangeLog
gdb/gdbserver/win32-low.c