Commit fc531676 authored by Peter Beutner's avatar Peter Beutner Committed by Alexandre Julliard

ntdll: Don't try to handle kill(SIGTRAP).

parent 817b520c
...@@ -1048,15 +1048,6 @@ static void WINAPI raise_trap_exception( EXCEPTION_RECORD *rec, CONTEXT *context ...@@ -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 */
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment