summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Reveman <davidr@novell.com>2008-10-20 16:55:13 -0400
committerDavid Reveman <davidr@novell.com>2008-10-30 03:37:53 -0400
commit1bc99c10fb41bec117d19b7f297e4c8b40493c64 (patch)
tree8b22aeb35ed8ad8897240f1b333ec0909390aa29
parentdc9c9a33be7fa271a6e005a828f831c15373b5ea (diff)
Use xorg_backtrace.
-rw-r--r--hw/dmx/dmxinit.c19
1 files changed, 2 insertions, 17 deletions
diff --git a/hw/dmx/dmxinit.c b/hw/dmx/dmxinit.c
index 9227bf36a..bf27b31a8 100644
--- a/hw/dmx/dmxinit.c
+++ b/hw/dmx/dmxinit.c
@@ -77,7 +77,6 @@
#endif
#include <signal.h> /* For SIGQUIT */
-#include <execinfo.h>
#ifdef GLXEXT
#include <GL/glx.h>
@@ -151,25 +150,11 @@ int dmxXvImageFormatsNum = 0;
char dmxDigest[64];
-#include <execinfo.h>
-
static void
dmxSigHandler (int signo)
{
- void *array[64];
- size_t size, i;
- char **strings;
-
- ErrorF ("\nBacktrace:\n");
-
- size = backtrace (array, 64);
- strings = backtrace_symbols (array, size);
-
- for (i = 0; i < size; i++)
- ErrorF ("%d: %s\n", i, strings[i]);
-
- free (strings);
-
+ signal (signo, SIG_IGN);
+ xorg_backtrace ();
FatalError ("Caught signal %d. Server aborting\n", signo);
}