[POWERPC] PPC: Fix xmon stack frame address in backtrace
authorJosh Boyer <jdub@us.ibm.com>
Fri, 15 Sep 2006 19:53:10 +0000 (14:53 -0500)
committerPaul Mackerras <paulus@samba.org>
Thu, 21 Sep 2006 12:55:06 +0000 (22:55 +1000)
The stack frame address was being printed incorrectly in the backtrace
option of XMON on PPC.  This patch fixes it to print the actual stack
address instead of the address of the local variable that contains it.

Signed-off-by: Josh Boyer <jdub@us.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/ppc/xmon/xmon.c

index 25d032b..b1a9174 100644 (file)
@@ -806,7 +806,7 @@ backtrace(struct pt_regs *excp)
        for (; sp != 0; sp = stack[0]) {
                if (mread(sp, stack, sizeof(stack)) != sizeof(stack))
                        break;
-               printf("[%.8lx] ", stack);
+               printf("[%.8lx] ", stack[0]);
                xmon_print_symbol(stack[1], " ", "\n");
                if (stack[1] == (unsigned) &ret_from_except
                    || stack[1] == (unsigned) &ret_from_except_full