util: Enable assembly breakpointt on x86_64.
A breakpoint is much nicer than abort when gdb is attached.
This commit is contained in:
parent
71384f29f1
commit
fcc2598fff
|
@ -129,7 +129,7 @@ void debug_print_format(const char *msg, unsigned fmt );
|
|||
* Hard-coded breakpoint.
|
||||
*/
|
||||
#ifdef DEBUG
|
||||
#if defined(PIPE_ARCH_X86) && defined(PIPE_CC_GCC)
|
||||
#if (defined(PIPE_ARCH_X86) || defined(PIPE_ARCH_X86_64)) && defined(PIPE_CC_GCC)
|
||||
#define debug_break() __asm("int3")
|
||||
#elif defined(PIPE_CC_MSVC)
|
||||
#define debug_break() __debugbreak()
|
||||
|
|
Loading…
Reference in New Issue