diff options
Diffstat (limited to 'winsup/cygwin/exceptions.cc')
-rw-r--r-- | winsup/cygwin/exceptions.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc index 4f9a55e3d..1d3d8def7 100644 --- a/winsup/cygwin/exceptions.cc +++ b/winsup/cygwin/exceptions.cc @@ -320,8 +320,13 @@ extern "C" int try_to_debug (bool waitloop) { debug_printf ("debugger_command '%s'", debugger_command); - if (*debugger_command == '\0' || being_debugged ()) + if (*debugger_command == '\0') return 0; + if (being_debugged ()) + { + DebugBreak (); + return 0; + } __small_sprintf (strchr (debugger_command, '\0'), " %u", GetCurrentProcessId ()); |