ntdll: Don't try to handle kill(SIGTRAP).
This commit is contained in:
parent
817b520c3d
commit
fc5316760b
|
@ -1048,15 +1048,6 @@ static void WINAPI raise_trap_exception( EXCEPTION_RECORD *rec, CONTEXT *context
|
||||||
{
|
{
|
||||||
context->ContextFlags = CONTEXT_DEBUG_REGISTERS;
|
context->ContextFlags = CONTEXT_DEBUG_REGISTERS;
|
||||||
NtGetContextThread(GetCurrentThread(), context);
|
NtGetContextThread(GetCurrentThread(), context);
|
||||||
/* we have either:
|
|
||||||
* - a bp from a debug register
|
|
||||||
* - a single step interrupt at popf instruction, which just has
|
|
||||||
* removed the TF.
|
|
||||||
* - someone did a kill(SIGTRAP) on us, and we shall return
|
|
||||||
* a breakpoint, not a single step exception
|
|
||||||
*/
|
|
||||||
if ( !(context->Dr6 & 0xf) && !(context->Dr6 & 0x4000) )
|
|
||||||
rec->ExceptionCode = EXCEPTION_BREAKPOINT;
|
|
||||||
context->ContextFlags |= CONTEXT_FULL; /* restore flags */
|
context->ContextFlags |= CONTEXT_FULL; /* restore flags */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue