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
This commit is contained in:
Ingo Weinhold 2008-09-29 13:42:49 +00:00
parent d6a7cd2564
commit 715fbb94b4

View File

@ -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)