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

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

Modified:
   haiku/trunk/src/system/kernel/arch/ppc/arch_debug.cpp
Log:
Patch by Andreas Faerber: stack_trace(): Skip stack_trace() itself in the
stack trace.


Modified: haiku/trunk/src/system/kernel/arch/ppc/arch_debug.cpp
===================================================================
--- haiku/trunk/src/system/kernel/arch/ppc/arch_debug.cpp       2010-06-06 
13:03:17 UTC (rev 37032)
+++ haiku/trunk/src/system/kernel/arch/ppc/arch_debug.cpp       2010-06-06 
13:05:47 UTC (rev 37033)
@@ -124,7 +124,7 @@
 
        if (argc < 2) {
                thread = thread_get_current_thread();
-               framePointer = (addr_t)get_current_stack_frame();
+               framePointer = (addr_t)get_current_stack_frame()->previous;
        } else {
 // TODO: Add support for stack traces of other threads.
 /*             thread_id id = strtoul(argv[1], NULL, 0);


Other related posts:

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