diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d5edf3c8b1..1d64788647 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2015-04-22 Jon Turney + + * windows-nat.c (windows_continue): Report an error if + ContinueDebugEvent() fails. + 2015-04-16 Jon Turney * windows-nat.c (windows_resume): Fix misspelling in debug output. diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index 05e4ceec61..6942d64387 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -1160,6 +1160,11 @@ windows_continue (DWORD continue_status, int id, int killed) current_event.dwThreadId, continue_status); + if (!res) + error (_("Failed to resume program execution" + " (ContinueDebugEvent failed, error %u)"), + (unsigned int) GetLastError ()); + debug_registers_changed = 0; return res; }