From: Lennart Poettering Date: Tue, 21 Oct 2008 20:04:22 +0000 (+0200) Subject: make the debug trap macro a proper macro in macro.h X-Git-Tag: submit/2.0-panda/20130828.192557~2565 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c4b346259fa59dfad040c51ab064ed44395d0911;p=profile%2Fivi%2Fpulseaudio-panda.git make the debug trap macro a proper macro in macro.h --- diff --git a/src/pulsecore/macro.h b/src/pulsecore/macro.h index cf02696..f9ce949 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