summaryrefslogtreecommitdiffstats
path: root/generic/tclPanic.c
diff options
context:
space:
mode:
authornijtmans <nijtmans>2010-12-01 10:43:36 (GMT)
committernijtmans <nijtmans>2010-12-01 10:43:36 (GMT)
commit627e4077fec79059bce211956e1fbbc3905fb8b6 (patch)
tree603616c2d1f25fe70b1e09b96db7a2fa29cb89ae /generic/tclPanic.c
parentb6d1219a7a9fcdb49db66a4217f34bd79ba40bba (diff)
downloadtcl-627e4077fec79059bce211956e1fbbc3905fb8b6.zip
tcl-627e4077fec79059bce211956e1fbbc3905fb8b6.tar.gz
tcl-627e4077fec79059bce211956e1fbbc3905fb8b6.tar.bz2
Allow Tcl_Panic() to enter the debugger on win32
Diffstat (limited to 'generic/tclPanic.c')
-rw-r--r--generic/tclPanic.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/generic/tclPanic.c b/generic/tclPanic.c
index b3a5ed6..9aa0627 100644
--- a/generic/tclPanic.c
+++ b/generic/tclPanic.c
@@ -12,7 +12,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclPanic.c,v 1.14 2009/07/22 19:54:50 nijtmans Exp $
+ * RCS: @(#) $Id: tclPanic.c,v 1.15 2010/12/01 10:43:36 nijtmans Exp $
*/
#include "tclInt.h"
@@ -90,7 +90,12 @@ Tcl_PanicVA(
arg8);
fprintf(stderr, "\n");
fflush(stderr);
+#ifdef _WIN32
+ DebugBreak();
+ ExitProcess(1);
+#else
abort();
+#endif
}
}