summaryrefslogtreecommitdiffstats
path: root/Modules/_ctypes
diff options
context:
space:
mode:
authorKristján Valur Jónsson <sweskman@gmail.com>2013-03-19 22:38:32 (GMT)
committerKristján Valur Jónsson <sweskman@gmail.com>2013-03-19 22:38:32 (GMT)
commit23f854ca689384307252c774c610e0542b8949f6 (patch)
treed77d83311c59ce71008dfa658a94ed9e1b6fadf4 /Modules/_ctypes
parent110f25d53df2cbf03a2c5299994986cc84c25db8 (diff)
parenta251b37179cb4c3ba6f177a50b6f52f89ad1dd13 (diff)
downloadcpython-23f854ca689384307252c774c610e0542b8949f6.zip
cpython-23f854ca689384307252c774c610e0542b8949f6.tar.gz
cpython-23f854ca689384307252c774c610e0542b8949f6.tar.bz2
Issue #10296: Merge to default
Diffstat (limited to 'Modules/_ctypes')
-rw-r--r--Modules/_ctypes/callproc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/_ctypes/callproc.c b/Modules/_ctypes/callproc.c
index 0470a8e..d985783 100644
--- a/Modules/_ctypes/callproc.c
+++ b/Modules/_ctypes/callproc.c
@@ -397,6 +397,11 @@ static DWORD HandleException(EXCEPTION_POINTERS *ptrs,
{
*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