aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Boyer <jdub@us.ibm.com>2006-09-15 15:53:10 -0400
committerPaul Mackerras <paulus@samba.org>2006-09-21 08:55:06 -0400
commit4dbefe6459555d6fb9d08743615fbaa53894beb2 (patch)
treef185541b0b0224ffb2b26de85e8814115faa3ade
parent838fdb4d2d0e4730364220b51be28a42d04c665e (diff)
[POWERPC] PPC: Fix xmon stack frame address in backtrace
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>
-rw-r--r--arch/ppc/xmon/xmon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/ppc/xmon/xmon.c b/arch/ppc/xmon/xmon.c
index 25d032b2aec7..b1a91744fd2d 100644
--- a/arch/ppc/xmon/xmon.c
+++ b/arch/ppc/xmon/xmon.c
@@ -806,7 +806,7 @@ backtrace(struct pt_regs *excp)
806 for (; sp != 0; sp = stack[0]) { 806 for (; sp != 0; sp = stack[0]) {
807 if (mread(sp, stack, sizeof(stack)) != sizeof(stack)) 807 if (mread(sp, stack, sizeof(stack)) != sizeof(stack))
808 break; 808 break;
809 printf("[%.8lx] ", stack); 809 printf("[%.8lx] ", stack[0]);
810 xmon_print_symbol(stack[1], " ", "\n"); 810 xmon_print_symbol(stack[1], " ", "\n");
811 if (stack[1] == (unsigned) &ret_from_except 811 if (stack[1] == (unsigned) &ret_from_except
812 || stack[1] == (unsigned) &ret_from_except_full 812 || stack[1] == (unsigned) &ret_from_except_full