add samples

This commit is contained in:
nora 2023-06-13 17:33:58 +02:00
parent 764239958f
commit 2e191506ff
7 changed files with 105327 additions and 13 deletions

View file

@ -1,12 +1,19 @@
use uwuwind::uw;
#[repr(C)]
#[allow(dead_code)]
struct Exception {
_uwe: uw::_Unwind_Exception,
uwu: &'static str,
}
fn main() {
let eh_frame = std::fs::read("eh_frame.bin").expect("could not find ./eh_frame.bin");
unsafe {
uwuwind::dwarf::uwutables(eh_frame.as_ptr());
}
return;
/*
unsafe {
uwuwind::set_personality_routine(personality_routine);
@ -22,8 +29,10 @@ fn main() {
uwuwind::_UnwindRaiseException(exception.cast::<uw::_Unwind_Exception>());
}
*/
}
#[allow(dead_code)]
fn personality_routine(
_version: i32,
_actions: uw::_UnwindAction,