ddb: Improve stack unwinding on riscv64
authorvisa <visa@openbsd.org>
Tue, 22 Feb 2022 07:46:04 +0000 (07:46 +0000)
committervisa <visa@openbsd.org>
Tue, 22 Feb 2022 07:46:04 +0000 (07:46 +0000)
commit110e1310d7e6b3e32b5aa0c49a6d245e6f1a8750
tree4b771713a00de4e73c8f98f49176c122ae569d60
parent2cb6a2195c028923a396ff42ba37c62e28911bff
ddb: Improve stack unwinding on riscv64

Add logic to navigate across trapframes. Stop unwinding if the frame
pointer is clearly bad. Adjust output, and tweak details.

OK miod@ kettenis@
sys/arch/riscv64/riscv64/db_trace.c