From 48f2523d158c6680c729cbbd1f16b33991aa562a Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sun, 6 Jun 2010 13:03:17 +0000 Subject: [PATCH] Patch by Andreas Faerber: Implemented arch_debug_get_caller(). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37032 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/arch/ppc/arch_debug.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/system/kernel/arch/ppc/arch_debug.cpp b/src/system/kernel/arch/ppc/arch_debug.cpp index f62ac294b2..d5d945895d 100644 --- a/src/system/kernel/arch/ppc/arch_debug.cpp +++ b/src/system/kernel/arch/ppc/arch_debug.cpp @@ -279,8 +279,8 @@ arch_debug_contains_call(struct thread *thread, const char *symbol, void * arch_debug_get_caller(void) { - // TODO: implement me - return (void *)&arch_debug_get_caller; + struct stack_frame *frame = get_current_stack_frame()->previous; + return (void *)frame->previous->return_address; }