[Python-checkins] cpython (2.7): Issue #10296 : Don't handle BreakPoint exceptions using
kristjan.jonsson
python-checkins at python.org
Wed Mar 20 00:00:53 CET 2013
http://hg.python.org/cpython/rev/b2e8392a8f77
changeset: 82797:b2e8392a8f77
branch: 2.7
parent: 82782:37f52e71f4cd
user: Kristján Valur Jónsson <sweskman at gmail.com>
date: Tue Mar 19 15:24:10 2013 -0700
summary:
Issue #10296 : Don't handle BreakPoint exceptions using
Structured Exception Handling on windows.
files:
Modules/_ctypes/callproc.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/Modules/_ctypes/callproc.c b/Modules/_ctypes/callproc.c
--- a/Modules/_ctypes/callproc.c
+++ b/Modules/_ctypes/callproc.c
@@ -401,6 +401,11 @@
{
*pdw = ptrs->ExceptionRecord->ExceptionCode;
*record = *ptrs->ExceptionRecord;
+ /* We don't want to catch breakpoint exceptions, they are used to attach
+ * a debugger to the process.
+ */
+ if (*pdw == EXCEPTION_BREAKPOINT)
+ return EXCEPTION_CONTINUE_SEARCH;
return EXCEPTION_EXECUTE_HANDLER;
}
#endif
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list