projects
/
profile
/
ivi
/
pulseaudio-panda.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef9f3f6
)
make the debug trap macro a proper macro in macro.h
author
Lennart Poettering
<lennart@poettering.net>
Tue, 21 Oct 2008 20:04:22 +0000
(22:04 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 21 Oct 2008 20:04:22 +0000
(22:04 +0200)
src/pulsecore/macro.h
patch
|
blob
|
history
diff --git
a/src/pulsecore/macro.h
b/src/pulsecore/macro.h
index
cf02696
..
f9ce949
100644
(file)
--- 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>