mirror of
https://github.com/python/cpython.git
synced 2025-09-25 01:43:11 +00:00
Issue #10296 : Don't handle BreakPoint exceptions using
Structured Exception Handling on windows.
This commit is contained in:
parent
8927e8f421
commit
11f989320e
1 changed files with 5 additions and 0 deletions
|
@ -401,6 +401,11 @@ static DWORD HandleException(EXCEPTION_POINTERS *ptrs,
|
||||||
{
|
{
|
||||||
*pdw = ptrs->ExceptionRecord->ExceptionCode;
|
*pdw = ptrs->ExceptionRecord->ExceptionCode;
|
||||||
*record = *ptrs->ExceptionRecord;
|
*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;
|
return EXCEPTION_EXECUTE_HANDLER;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue