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:
parent
d6a7cd2564
commit
715fbb94b4
@ -787,7 +787,7 @@ arch_debug_get_stack_trace(addr_t* returnAddresses, int32 maxCount,
|
|||||||
|
|
||||||
if (skipIframes > 0) {
|
if (skipIframes > 0) {
|
||||||
if (--skipIframes == 0)
|
if (--skipIframes == 0)
|
||||||
skipFrames = 1;
|
skipFrames = 0;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (get_next_frame(ebp, &nextEbp, &eip) != B_OK)
|
if (get_next_frame(ebp, &nextEbp, &eip) != B_OK)
|
||||||
|
Loading…
Reference in New Issue
Block a user