Skip to content

Commit

Permalink
[POWERPC] PPC: Fix xmon stack frame address in backtrace
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Josh Boyer authored and Paul Mackerras committed Sep 21, 2006
1 parent 838fdb4 commit 4dbefe6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/ppc/xmon/xmon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4dbefe6

Please sign in to comment.