make the debug trap macro a proper macro in macro.h
authorLennart Poettering <lennart@poettering.net>
Tue, 21 Oct 2008 20:04:22 +0000 (22:04 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 21 Oct 2008 20:04:22 +0000 (22:04 +0200)
src/pulsecore/macro.h

index cf02696..f9ce949 100644 (file)
@@ -220,6 +220,12 @@ typedef int pa_bool_t;
 
 #endif
 
+#if defined(__i386__) || defined(__x86_64__)
+#define PA_DEBUG_TRAP __asm__("int $3")
+#else
+#define PA_DEBUG_TRAP raise(SIGTRAP)
+#endif
+
 /* We include this at the very last place */
 #include <pulsecore/log.h>