summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/dcrt0.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2006-06-03 02:58:59 +0000
committerChristopher Faylor <me@cgf.cx>2006-06-03 02:58:59 +0000
commit35016286da5f37e051e743928fbd8d8376a39f54 (patch)
treed7f63c82a38c555b28143be15418e2c3a0c793d7 /winsup/cygwin/dcrt0.cc
parent3feae7b1163bad97625000d73db5bb225bd7c2bf (diff)
downloadcygnal-35016286da5f37e051e743928fbd8d8376a39f54.tar.gz
cygnal-35016286da5f37e051e743928fbd8d8376a39f54.tar.bz2
cygnal-35016286da5f37e051e743928fbd8d8376a39f54.zip
* cygtls.h (CYGTLS_PADSIZE): Bump up or suffer a regrettable collision with the
call chain.
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 ();
}
}