[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] [POWERPC][XEN] if crash_debug=n then at least dump a backtrace.



# HG changeset patch
# User Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
# Node ID 13e406c85c8b113a83c337ce9caaa8dba19b1296
# Parent  3b045a00e70335b86d0101565825e98e298cbe8b
[POWERPC][XEN] if crash_debug=n then at least dump a backtrace.

Signed-off-by: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
Signed-off-by: Hollis Blanchard <hollisb@xxxxxxxxxx>
---
 xen/include/asm-powerpc/debugger.h |   19 +++++++++++++++++--
 1 files changed, 17 insertions(+), 2 deletions(-)

diff -r 3b045a00e703 -r 13e406c85c8b xen/include/asm-powerpc/debugger.h
--- a/xen/include/asm-powerpc/debugger.h        Tue Sep 12 06:47:22 2006 -0400
+++ b/xen/include/asm-powerpc/debugger.h        Tue Sep 12 06:48:32 2006 -0400
@@ -36,8 +36,23 @@ static inline int debugger_trap_fatal(
 
 #else /* CRASH_DEBUG */
 
-#define debugger_trap_fatal(_v, _r) (0)
-#define debugger_trap_immediate() ((void)0)
+static inline int debugger_trap_fatal(
+    unsigned int vector, struct cpu_user_regs *regs)
+{
+    show_backtrace(regs->gprs[1], regs->lr, regs->pc);
+    return vector;
+}
+
+static inline void debugger_trap_immediate(void)
+{
+    ulong sp;
+    ulong lr;
+
+    sp = (ulong)__builtin_frame_address(0);
+    lr = (ulong)__builtin_return_address(0);
+
+    show_backtrace(sp, lr, lr);
+}
 
 #endif /* CRASH_DEBUG */
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.