Issue #10296 : Don't handle BreakPoint exceptions using
Structured Exception Handling on windows.
This commit is contained in:
parent
843fae9312
commit
5aed330e37
|
@ -397,6 +397,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…
Reference in New Issue