diff options
author | Kristján Valur Jónsson <sweskman@gmail.com> | 2013-03-19 22:57:19 (GMT) |
---|---|---|
committer | Kristján Valur Jónsson <sweskman@gmail.com> | 2013-03-19 22:57:19 (GMT) |
commit | ece12222ce4386b67f78bbc9ac5c99f9bc37f02b (patch) | |
tree | 594b12e0f0bde51e0c4c2cb299bf213a8e51fdf7 /Modules | |
parent | 1f1ec04c7f0134b88623ca13db9a1e10647a12b1 (diff) | |
parent | 5aed330e37c60b67e9ac87dc5afbf66b21e8a978 (diff) | |
download | cpython-ece12222ce4386b67f78bbc9ac5c99f9bc37f02b.zip cpython-ece12222ce4386b67f78bbc9ac5c99f9bc37f02b.tar.gz cpython-ece12222ce4386b67f78bbc9ac5c99f9bc37f02b.tar.bz2 |
Merge
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_ctypes/callproc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/_ctypes/callproc.c b/Modules/_ctypes/callproc.c index 0d4578c..bf7d8fd 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 |