summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/macro.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2008-10-21 22:04:22 +0200
committerLennart Poettering <lennart@poettering.net>2008-10-21 22:04:22 +0200
commitc4b346259fa59dfad040c51ab064ed44395d0911 (patch)
tree3f587070e505afb67c112dcfe645029f475d9f11 /src/pulsecore/macro.h
parentef9f3f6ec4d73b9a1cdac648bcf3c4ad1a051393 (diff)
make the debug trap macro a proper macro in macro.h
Diffstat (limited to 'src/pulsecore/macro.h')
-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>