summaryrefslogtreecommitdiff
path: root/src/gallium
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-03-31 18:00:46 +0100
committerJosé Fonseca <jfonseca@vmware.com>2009-03-31 18:00:46 +0100
commitfcc2598fffe0f0e0412d2a30777f1b4a4ed22249 (patch)
tree6e090711916d50174e9988f248833a6158234df6 /src/gallium
parent71384f29f12ab599b4430802ec8e21056a4dd60f (diff)
util: Enable assembly breakpointt on x86_64.
A breakpoint is much nicer than abort when gdb is attached.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/auxiliary/util/u_debug.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_debug.h b/src/gallium/auxiliary/util/u_debug.h
index 5e88f3ebb1..8d703e47fc 100644
--- a/src/gallium/auxiliary/util/u_debug.h
+++ b/src/gallium/auxiliary/util/u_debug.h
@@ -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()