mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-05 21:50:21 +08:00
Move wait_for_debug_event to nat/windows-nat.c
This moves the wait_for_debug_event helper function to nat/windows-nat.c, and changes gdbserver to use it. wait_for_debug_event is a wrapper for WaitForDebugEvent that also sets last_wait_event when appropriate. This is needed to properly handle queued stops. gdb/ChangeLog 2020-04-08 Tom Tromey <tromey@adacore.com> * windows-nat.c (wait_for_debug_event): Move to nat/windows-nat.c. * nat/windows-nat.h (wait_for_debug_event): Declare. * nat/windows-nat.c (wait_for_debug_event): Move from windows-nat.c. No longer static. gdbserver/ChangeLog 2020-04-08 Tom Tromey <tromey@adacore.com> * win32-low.c (win32_kill, get_child_debug_event): Use wait_for_debug_event.
This commit is contained in:
@ -1495,17 +1495,6 @@ ctrl_c_handler (DWORD event_type)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/* A wrapper for WaitForDebugEvent that sets "last_wait_event"
|
||||
appropriately. */
|
||||
static BOOL
|
||||
wait_for_debug_event (DEBUG_EVENT *event, DWORD timeout)
|
||||
{
|
||||
BOOL result = WaitForDebugEvent (event, timeout);
|
||||
if (result)
|
||||
last_wait_event = *event;
|
||||
return result;
|
||||
}
|
||||
|
||||
/* Get the next event from the child. Returns a non-zero thread id if the event
|
||||
requires handling by WFI (or whatever). */
|
||||
|
||||
|
Reference in New Issue
Block a user