Commit 8638b264 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

Correctly convert into EXCEPTION_RECORD SIGTRAPs received from

DebugBreakProcess.
parent cc02ef89
......@@ -842,6 +842,12 @@ static void do_trap( CONTEXT *context, int trap_code )
{
context->ContextFlags = CONTEXT_DEBUG_REGISTERS;
NtGetContextThread(GetCurrentThread(), context);
/* do we really have a bp from a debug register ?
* if not, then someone did a kill(SIGTRAP) on us, and we
* shall return a breakpoint, not a single step exception
*/
if (!(context->Dr6 & 0xf))
rec.ExceptionCode = EXCEPTION_BREAKPOINT;
}
break;
case T_BPTFLT: /* Breakpoint exception */
......
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