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

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2021-08-20 11:33:32 +02:00
parent 8a8889340f
commit 2736fabc58
1 changed files with 4 additions and 1 deletions

View File

@ -2436,8 +2436,10 @@ static inline BOOL handle_interrupt( ucontext_t *sigcontext, EXCEPTION_RECORD *r
rec->ExceptionCode = STATUS_ASSERTION_FAILURE;
break;
case 0x2d:
switch (context->Rax)
if (CS_sig(sigcontext) == cs64_sel)
{
switch (context->Rax)
{
case 1: /* BREAKPOINT_PRINT */
case 3: /* BREAKPOINT_LOAD_SYMBOLS */
case 4: /* BREAKPOINT_UNLOAD_SYMBOLS */
@ -2445,6 +2447,7 @@ static inline BOOL handle_interrupt( ucontext_t *sigcontext, EXCEPTION_RECORD *r
RIP_sig(sigcontext) += 3;
leave_handler( sigcontext );
return TRUE;
}
}
context->Rip += 3;
rec->ExceptionCode = EXCEPTION_BREAKPOINT;