summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/dcrt0.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/dcrt0.cc')
-rw-r--r--winsup/cygwin/dcrt0.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc
index b18aaa1a6..59f451a62 100644
--- a/winsup/cygwin/dcrt0.cc
+++ b/winsup/cygwin/dcrt0.cc
@@ -534,13 +534,14 @@ child_info_fork::alloc_stack ()
}
}
-#ifdef DEBUGGING
-void
+extern "C" void
break_here ()
{
+ static int NO_COPY sent_break;
+ if (!sent_break++)
+ DebugBreak ();
debug_printf ("break here");
}
-#endif
static void
initial_env ()
@@ -578,7 +579,6 @@ initial_env ()
error_start_init (p);
try_to_debug ();
console_printf ("*** Sending Break. gdb may issue spurious SIGTRAP message.\n");
- DebugBreak ();
break_here ();
}
}