Re: Improve ddb's stack trace printing on riscv64

2022-02-21 Thread Mark Kettenis
> Date: Mon, 21 Feb 2022 17:34:14 + > From: Visa Hankala > > On riscv64, ddb's stack unwinder performs poorly. The main problem is > that the exception handlers use a frame structure (trapframe) that > differs from the typical call frame. > > The following patch does several adjustments,

Improve ddb's stack trace printing on riscv64

2022-02-21 Thread Visa Hankala
On riscv64, ddb's stack unwinder performs poorly. The main problem is that the exception handlers use a frame structure (trapframe) that differs from the typical call frame. The following patch does several adjustments, including: * Detect and handle exception frames. (Alternatively, the