mirror of
https://review.haiku-os.org/haiku
synced 2025-01-31 10:47:14 +01:00
kernel/x86: Don't skip the first address when fetching user stack traces.
Let the loop handle the iframe instead of processing it up front, so that it doesn't call get_next_frame_no_debugger the first time around. Fixes the profiler skipping the first function when profiling user space only.
This commit is contained in:
parent
bda66ab7c7
commit
80d5c28e2a
@ -1147,8 +1147,7 @@ arch_debug_get_stack_trace(addr_t* returnAddresses, int32 maxCount,
|
||||
if (frame == NULL)
|
||||
return 0;
|
||||
|
||||
bp = frame->bp;
|
||||
onKernelStack = false;
|
||||
bp = (addr_t)frame;
|
||||
}
|
||||
|
||||
while (bp != 0 && count < maxCount) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user