From 715fbb94b479758ca60870d56e7c864edd488747 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Mon, 29 Sep 2008 13:42:49 +0000 Subject: [PATCH] arch_debug_get_stack_trace(): We do want the return address of the last skipped iframe. "profile" didn't capture the top-most function, unless run with "-s 1". git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27778 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/arch/x86/arch_debug.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/kernel/arch/x86/arch_debug.cpp b/src/system/kernel/arch/x86/arch_debug.cpp index 50ee2da4b1..ac62bd264d 100644 --- a/src/system/kernel/arch/x86/arch_debug.cpp +++ b/src/system/kernel/arch/x86/arch_debug.cpp @@ -787,7 +787,7 @@ arch_debug_get_stack_trace(addr_t* returnAddresses, int32 maxCount, if (skipIframes > 0) { if (--skipIframes == 0) - skipFrames = 1; + skipFrames = 0; } } else { if (get_next_frame(ebp, &nextEbp, &eip) != B_OK)