This adds trapframe unwinding support through dwarf cfi. It has been tested under lldb.
MFC after: 2 weeks
MFC to: stable/14, stable/15
Sponsored by: FreeBSD Foundation
Differential D59647
trap_cfi(9): introduce riscv implementation Authored by mchoo on Sun, Sep 13, 6:19 PM. Tags None Referenced Files
Details
Diff Detail
Event TimelineComment Actions Is this necessary? Do you not want LLDB to print trapframes as special, like KGDB does, and like GDB does for signal frames?
Comment Actions An lldb dev working on Darwin's kernel frame unwinding was against porting kgdb's sniffer method to lldb. Instead, he recommended using CFI. CFI can mark itself as signal frame using .cfi_signal_frame as I wrote in trap_cfi_entry in trap_cfi.h
| ||||||||||||||||||||||||||||||||||||||||||||||||||