ntdll: Handle trap exception in signal handler on ARM64.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2019-09-12 21:23:15 +02:00
parent 769c333c6c
commit a7459d0c99
1 changed files with 2 additions and 12 deletions

View File

@ -540,17 +540,6 @@ done:
set_cpu_context( context );
}
/**********************************************************************
* raise_trap_exception
*/
static void WINAPI raise_trap_exception( EXCEPTION_RECORD *rec, CONTEXT *context )
{
NTSTATUS status;
if (rec->ExceptionCode == EXCEPTION_BREAKPOINT) context->Pc += 4;
status = NtRaiseException( rec, context, TRUE );
raise_status( status, rec );
}
/**********************************************************************
* raise_generic_exception
*/
@ -1110,9 +1099,10 @@ static void trap_handler( int signal, siginfo_t *info, void *ucontext )
case TRAP_BRKPT:
default:
stack->rec.ExceptionCode = EXCEPTION_BREAKPOINT;
stack->context.Pc += 4;
break;
}
setup_raise_exception( context, stack, raise_trap_exception );
setup_raise_exception( context, stack, raise_generic_exception );
}
/**********************************************************************