summaryrefslogtreecommitdiffstats
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-08-13 13:33:16 (GMT)
committerGuido van Rossum <guido@python.org>1998-08-13 13:33:16 (GMT)
commit0ba353608fb6315e2dfaab6d767aa92c05628b71 (patch)
tree600aeb8826816b5c226c55ad41e76e9a3dcfdec3 /Python/pythonrun.c
parent541f241132a58f09c639dc6b70a2244d7d8cb541 (diff)
downloadcpython-0ba353608fb6315e2dfaab6d767aa92c05628b71.zip
cpython-0ba353608fb6315e2dfaab6d767aa92c05628b71.tar.gz
cpython-0ba353608fb6315e2dfaab6d767aa92c05628b71.tar.bz2
Add DebugBreak() call to Py_FatalError() for Mark Hammond (only on
Win32 in Debug mode).
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index 16aba5c..fa54473 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -1025,7 +1025,10 @@ Py_FatalError(msg)
OutputDebugString("Fatal Python error: ");
OutputDebugString(msg);
OutputDebugString("\n");
+#ifdef _DEBUG
+ DebugBreak();
#endif
+#endif /* MS_WIN32 */
abort();
}