From: Rudolf Polzer Date: Mon, 14 Jan 2013 10:55:49 +0000 (+0100) Subject: debugging.h: use int 3 on amd64 too X-Git-Tag: xonotic-v0.7.0~9 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2f573dd6b4a551a0e6cc4d8bc96cbeae86aaf336;p=xonotic%2Fnetradiant.git debugging.h: use int 3 on amd64 too --- diff --git a/libs/debugging/debugging.h b/libs/debugging/debugging.h index 34dc9445..c549a2f2 100644 --- a/libs/debugging/debugging.h +++ b/libs/debugging/debugging.h @@ -29,9 +29,9 @@ #include "warnings.h" #include "generic/static.h" -#if defined( _MSC_VER ) && defined( _M_IX86 ) +#if defined( _MSC_VER ) && ( defined( _M_IX86 ) || defined( _M_AMD64 ) ) #define DEBUGGER_BREAKPOINT() __asm { int 3 } -#elif defined ( __i386__ ) && defined ( __GNUC__ ) && __GNUC__ >= 2 +#elif ( defined ( __i386__ ) || defined ( __x86_64__ ) ) && defined ( __GNUC__ ) && __GNUC__ >= 2 #define DEBUGGER_BREAKPOINT() __asm__ __volatile__ ( "int $03" ) #else #include