Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 41b977c + 5aed330 commit a251b37Copy full SHA for a251b37
1 file changed
Modules/_ctypes/callproc.c
@@ -397,6 +397,11 @@ static DWORD HandleException(EXCEPTION_POINTERS *ptrs,
397
{
398
*pdw = ptrs->ExceptionRecord->ExceptionCode;
399
*record = *ptrs->ExceptionRecord;
400
+ /* We don't want to catch breakpoint exceptions, they are used to attach
401
+ * a debugger to the process.
402
+ */
403
+ if (*pdw == EXCEPTION_BREAKPOINT)
404
+ return EXCEPTION_CONTINUE_SEARCH;
405
return EXCEPTION_EXECUTE_HANDLER;
406
}
407
#endif
0 commit comments