* [PATCH] PPC: Fix xmon stack frame address in backtrace
@ 2006-09-15 19:53 Josh Boyer
0 siblings, 0 replies; only message in thread
From: Josh Boyer @ 2006-09-15 19:53 UTC (permalink / raw)
To: paulus; +Cc: linuxppc-dev
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.
Patch is against current powerpc.git tree.
Signed-off-by: Josh Boyer <jdub@us.ibm.com>
---
arch/ppc/xmon/xmon.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- linux-2.6.orig/arch/ppc/xmon/xmon.c
+++ linux-2.6/arch/ppc/xmon/xmon.c
@@ -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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-09-15 19:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-15 19:53 [PATCH] PPC: Fix xmon stack frame address in backtrace Josh Boyer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).