From: VMware, Inc <> Date: Mon, 21 May 2012 22:27:58 +0000 (-0700) Subject: Add DEBUGBREAK() macro for ARM. X-Git-Tag: 2012.05.21-724730~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=86414109fb2fe7a11245573a61fd2daa7dbafe09;p=thirdparty%2Fopen-vm-tools.git Add DEBUGBREAK() macro for ARM. Signed-off-by: Dmitry Torokhov --- diff --git a/open-vm-tools/lib/include/vm_basic_asm.h b/open-vm-tools/lib/include/vm_basic_asm.h index a512b2591..180bd157a 100644 --- a/open-vm-tools/lib/include/vm_basic_asm.h +++ b/open-vm-tools/lib/include/vm_basic_asm.h @@ -988,11 +988,15 @@ RDTSC_BARRIER(void) *----------------------------------------------------------------------------- */ +#ifdef __arm__ +#define DEBUGBREAK() __asm__("bkpt") +#else #ifdef _MSC_VER -#define DEBUGBREAK() __debugbreak() +#define DEBUGBREAK() __debugbreak() #else -#define DEBUGBREAK() __asm__ (" int $3 ") +#define DEBUGBREAK() __asm__("int $3") #endif +#endif // __arm__ #endif // defined(__i386__) || defined(__x86_64__) || defined(__arm__)