Commit 2736fabc authored by Alexandre Julliard's avatar Alexandre Julliard

ntdll: Don't handle breakpoint interrupts in Wow64 mode.

parent 8a888934
......@@ -2436,6 +2436,8 @@ static inline BOOL handle_interrupt( ucontext_t *sigcontext, EXCEPTION_RECORD *r
rec->ExceptionCode = STATUS_ASSERTION_FAILURE;
break;
case 0x2d:
if (CS_sig(sigcontext) == cs64_sel)
{
switch (context->Rax)
{
case 1: /* BREAKPOINT_PRINT */
......@@ -2446,6 +2448,7 @@ static inline BOOL handle_interrupt( ucontext_t *sigcontext, EXCEPTION_RECORD *r
leave_handler( sigcontext );
return TRUE;
}
}
context->Rip += 3;
rec->ExceptionCode = EXCEPTION_BREAKPOINT;
rec->ExceptionAddress = (void *)context->Rip;
......
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