v3.7-branch: arch: riscv: stacktrace: trace is incomplete when unwinding from function without callee #76762
Labels
area: RISCV
RISCV Architecture (32-bit & 64-bit)
Backport
Backport PR and backport failure issues
bug
The issue is a bug, or the PR is fixing a bug
priority: low
Low impact/importance bug
Stale
Describe the bug
When unwinding from a function without callee, such as
sys_clock_cycle_get_32()
:The
fp
is stored at8(sp)
which is where thera
is expected to stored for function with callee, i.e.sys_clock_driver_init()
:or,
z_impl_k_busy_wait()
:This resulted in the second function from function without callee to be missing
To Reproduce
Expected behavior
Traces should be complete regardless from where the unwinding starts
Impact
Imcomplete stack traces.
The text was updated successfully, but these errors were encountered: