projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71384f2
)
util: Enable assembly breakpointt on x86_64.
author
José Fonseca
<jfonseca@vmware.com>
Tue, 31 Mar 2009 17:00:46 +0000
(18:00 +0100)
committer
José Fonseca
<jfonseca@vmware.com>
Tue, 31 Mar 2009 17:00:46 +0000
(18:00 +0100)
A breakpoint is much nicer than abort when gdb is attached.
src/gallium/auxiliary/util/u_debug.h
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_debug.h
b/src/gallium/auxiliary/util/u_debug.h
index 5e88f3ebb1af386f10cb29d7d98ebdaab0995f93..8d703e47fce45f5869726a0f2bd02f0dd8468b2b 100644
(file)
--- 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()