[Python-checkins] cpython (merge 3.3 -> default): Issue #10296: Merge to default

kristjan.jonsson python-checkins at python.org
Wed Mar 20 00:00:57 CET 2013


http://hg.python.org/cpython/rev/4f3fbdb4d748
changeset: 82800:4f3fbdb4d748
parent: 82796:5f873f5f4ec3
parent: 82799:4c7eb717ea88
user: Kristján Valur Jónsson <sweskman at gmail.com>
date: Tue Mar 19 15:38:32 2013 -0700
summary:
 Issue #10296: Merge to default
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
@@ -397,6 +397,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

AltStyle によって変換されたページ (->オリジナル) /