summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2008-10-21 22:04:22 +0200
committerLennart Poettering <lennart@poettering.net>2008-10-23 23:04:35 +0200
commit8e2a48a7a2baa49a900b9c42e8d08aca5db90d1f (patch)
treef4ff730cd2c53770cf7b45360c6caafec6676d09 /src
parent0796f5a2d6bf8e175a16d7f58cd0a18783fb4590 (diff)
make the debug trap macro a proper macro in macro.h
Diffstat (limited to 'src')
-rw-r--r--src/pulsecore/macro.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pulsecore/macro.h b/src/pulsecore/macro.h
index cf02696c..f9ce949a 100644
--- a/src/pulsecore/macro.h
+++ b/src/pulsecore/macro.h
@@ -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>