xserver: Branch 'master'

Aaron Plattner aplattner at kemper.freedesktop.org
Wed Aug 6 12:32:41 PDT 2008


 hw/xfree86/common/xf86.h       |    1 +
 hw/xfree86/common/xf86Events.c |   10 ++++++++++
 2 files changed, 11 insertions(+)

New commits:
commit d1b96cdea96f5321e0d254abde81cdaab2eca979
Author: Aaron Plattner <aplattner at nvidia.com>
Date:   Wed Aug 6 10:37:32 2008 -0700

    Add an xf86PrintBacktrace wrapper around xorg_backtrace to aid driver debugging.

diff --git a/hw/xfree86/common/xf86.h b/hw/xfree86/common/xf86.h
index 753fa58..cd6da59 100644
--- a/hw/xfree86/common/xf86.h
+++ b/hw/xfree86/common/xf86.h
@@ -205,6 +205,7 @@ void xf86InterceptSignals(int *signo);
 void xf86InterceptSigIll(void (*sigillhandler)(void));
 Bool xf86EnableVTSwitch(Bool new);
 void xf86ProcessActionEvent(ActionEvent action, void *arg);
+void xf86PrintBacktrace(void);
 
 /* xf86Helper.c */
 
diff --git a/hw/xfree86/common/xf86Events.c b/hw/xfree86/common/xf86Events.c
index 48af2eb..ff75a7d 100644
--- a/hw/xfree86/common/xf86Events.c
+++ b/hw/xfree86/common/xf86Events.c
@@ -632,6 +632,16 @@ xf86SigHandler(int signo)
   FatalError("Caught signal %d.  Server aborting\n", signo);
 }
 
+/*
+ * xf86PrintBacktrace --
+ *    Print a stack backtrace for debugging purposes.
+ */
+_X_EXPORT void
+xf86PrintBacktrace(void)
+{
+    xorg_backtrace();
+}
+
 #define KeyPressed(k) (keyc->postdown[k >> 3] & (1 << (k & 7)))
 #define ModifierDown(k) ((keyc->state & (k)) == (k))
 


More information about the xorg-commit mailing list