HomeFreeBSD

Support using llvm-libunwind

Description

Support using llvm-libunwind

This commit adds support for using llvm-libunwind for kernels built
using llvm and clang. The two differences are that the largest register
index is given by _LIBUNWIND_HIGHEST_DWARF_REGISTER, we need to check
whether the register is a floating point register and the prototype
for unw_regname takes the unwind cursor as the first argument.

Reviewed-by: Rob Norris <robn@despairlabs.com>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Sebastian Pauka <me@spauka.se>
Closes #17230

Details

Provenance
Sebastian Pauka <me@spauka.se>Authored on Apr 24 2025, 5:58 PM
GitHub <noreply@github.com>Committed on Apr 24 2025, 5:58 PM
Parents
rG7031a48c7077: Export correct symbols for Lustre Direct I/O
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG1b4826b9a2b2: Support using llvm-libunwind (authored by Sebastian Pauka <me@spauka.se>).Apr 24 2025, 5:58 PM