decode CIE

This commit is contained in:
nora 2023-06-14 21:07:07 +02:00
parent e3246ede0b
commit c4dd3a7153
5 changed files with 194 additions and 37 deletions

View file

@ -1,6 +1,8 @@
#![no_std]
#![cfg_attr(not(test), no_std)]
#![allow(dead_code)]
extern crate alloc;
use core::{ffi, sync::atomic::AtomicPtr};
// Get the macros into our local prelude.
@ -29,8 +31,7 @@ pub unsafe extern "C" fn _UnwindRaiseException(
exception_object: *mut uw::_Unwind_Exception,
) -> uw::_Unwind_Reason_Code {
trace!("someone raised an exception with addr {exception_object:p}");
let _di = crate::dwarf::dwarf_info(arch::get_rip()).unwrap();
crate::dwarf::uwutables(core::ptr::null());
let _ = crate::dwarf::eh_frame(arch::get_rip()).unwrap();
stdext::abort();
}