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

This commit is contained in:
Peter Beutner 2007-11-09 17:47:01 +01:00 committed by Alexandre Julliard
parent 817b520c3d
commit fc5316760b
1 changed files with 0 additions and 9 deletions

View File

@ -1048,15 +1048,6 @@ static void WINAPI raise_trap_exception( EXCEPTION_RECORD *rec, CONTEXT *context
{
context->ContextFlags = CONTEXT_DEBUG_REGISTERS;
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 */
}
}