diff options
author | Kristján Valur Jónsson <sweskman@gmail.com> | 2013-03-19 22:24:10 (GMT) |
---|---|---|
committer | Kristján Valur Jónsson <sweskman@gmail.com> | 2013-03-19 22:24:10 (GMT) |
commit | 5aed330e37c60b67e9ac87dc5afbf66b21e8a978 (patch) | |
tree | c8b2b1a32c8a6c8cab292ae948fa18d5cc541142 | |
parent | 843fae93121ac7ac1088b0521773eff567e7b41c (diff) | |
download | cpython-5aed330e37c60b67e9ac87dc5afbf66b21e8a978.zip cpython-5aed330e37c60b67e9ac87dc5afbf66b21e8a978.tar.gz cpython-5aed330e37c60b67e9ac87dc5afbf66b21e8a978.tar.bz2 |
Issue #10296 : Don't handle BreakPoint exceptions using
Structured Exception Handling on windows.
-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 |