Module: wine Branch: master Commit: 8fef79cb41508c4cba7d22d00a0c936d2777278e URL: https://gitlab.winehq.org/wine/wine/-/commit/8fef79cb41508c4cba7d22d00a0c936...
Author: Alexandre Julliard julliard@winehq.org Date: Thu Dec 7 14:44:54 2023 +0100
kernelbase: Implement DebugBreak() for ARM64EC.
---
dlls/kernelbase/debug.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/dlls/kernelbase/debug.c b/dlls/kernelbase/debug.c index e571378e2df..edb6d321a46 100644 --- a/dlls/kernelbase/debug.c +++ b/dlls/kernelbase/debug.c @@ -120,13 +120,14 @@ BOOL WINAPI DECLSPEC_HOTPATCH DebugActiveProcessStop( DWORD pid ) */ #ifdef __i386__ __ASM_STDCALL_FUNC( DebugBreak, 0, "jmp " __ASM_STDCALL("DbgBreakPoint", 0) ) +#elif defined(__aarch64__) +__ASM_GLOBAL_FUNC( DebugBreak, "brk #0xf000; ret" ) +#elif defined(__arm64ec__) +void __attribute__((naked)) WINAPI DebugBreak(void) { asm( "brk #0xf000; ret" ); } #elif defined(__x86_64__) __ASM_GLOBAL_FUNC( DebugBreak, "jmp " __ASM_NAME("DbgBreakPoint") ) -#else -void WINAPI DebugBreak(void) -{ - DbgBreakPoint(); -} +#elif defined(__arm__) +__ASM_GLOBAL_FUNC( DebugBreak, "udf #0xfe; bx lr" ) #endif