From f872d4f5d447f964d7da8caf2a5bbcf60db3a867 Mon Sep 17 00:00:00 2001
From: Andreas Faerber <andreas.faerber@web.de>
Date: Mon, 28 Jun 2010 00:01:12 +0200
Subject: [PATCH] ppc: Drop one frame in stack trace
---
src/system/kernel/arch/ppc/arch_debug.cpp | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/system/kernel/arch/ppc/arch_debug.cpp b/src/system/kernel/arch/ppc/arch_debug.cpp
index e472fa2..8468f6b 100644
a
|
b
|
stack_trace(int argc, char **argv)
|
126 | 126 | thread = thread_get_current_thread(); |
127 | 127 | int32 cpu = smp_get_current_cpu(); |
128 | 128 | framePointer = debug_get_debug_registers(cpu)->r1; |
| 129 | framePointer = (addr_t)((stack_frame*)framePointer)->previous; |
129 | 130 | } else { |
130 | 131 | // TODO: Add support for stack traces of other threads. |
131 | 132 | /* thread_id id = strtoul(argv[1], NULL, 0); |