[haiku-commits] r37032 - haiku/trunk/src/system/kernel/arch/ppc

  • From: ingo_weinhold@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 6 Jun 2010 15:03:17 +0200 (CEST)

Author: bonefish
Date: 2010-06-06 15:03:17 +0200 (Sun, 06 Jun 2010)
New Revision: 37032
Changeset: http://dev.haiku-os.org/changeset/37032/haiku

Modified:
   haiku/trunk/src/system/kernel/arch/ppc/arch_debug.cpp
Log:
Patch by Andreas Faerber: Implemented arch_debug_get_caller().


Modified: haiku/trunk/src/system/kernel/arch/ppc/arch_debug.cpp
===================================================================
--- haiku/trunk/src/system/kernel/arch/ppc/arch_debug.cpp       2010-06-06 
12:42:01 UTC (rev 37031)
+++ haiku/trunk/src/system/kernel/arch/ppc/arch_debug.cpp       2010-06-06 
13:03:17 UTC (rev 37032)
@@ -279,8 +279,8 @@
 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;
 }
 
 


Other related posts:

  • » [haiku-commits] r37032 - haiku/trunk/src/system/kernel/arch/ppc - ingo_weinhold