From: Oliver Kurth Date: Fri, 15 Sep 2017 18:23:35 +0000 (-0700) Subject: Restrict panic's int3 assembly to x86(_64). X-Git-Tag: stable-10.2.0~254 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5fe82108703e3c0448e9243f2b58fada8f790d2a;p=thirdparty%2Fopen-vm-tools.git Restrict panic's int3 assembly to x86(_64). Panic could also be used for iOS. --- diff --git a/open-vm-tools/lib/panic/panic.c b/open-vm-tools/lib/panic/panic.c index 2a7b43533..fe6795b8f 100644 --- a/open-vm-tools/lib/panic/panic.c +++ b/open-vm-tools/lib/panic/panic.c @@ -293,7 +293,7 @@ Panic_BreakOnPanic(void) Warning("Panic: breaking into debugger\n"); DebugBreak(); } -#elif defined(__APPLE__) +#elif defined(__APPLE__) && (defined(__x86_64__) || defined(__i386__)) if (Panic_GetBreakOnPanic()) { Warning("Panic: breaking into debugger\n"); __asm__ __volatile__ ("int3"); @@ -403,7 +403,7 @@ Panic_GetBreakOnPanic(void) case PanicBreakAction_IfDebuggerAttached: #if defined(_WIN32) shouldBreak = IsDebuggerPresent(); -#elif defined(__APPLE__) +#elif defined(__APPLE__) && (defined(__x86_64__) || defined(__i386__)) { /* * https://developer.apple.com/library/content/qa/qa1361/