From f4e764eaf325ae5b7349818bf1e85cd82aa8f6d0 Mon Sep 17 00:00:00 2001 From: nils <48135649+Nilstrieb@users.noreply.github.com> Date: Tue, 13 Jun 2023 17:35:27 +0200 Subject: [PATCH] add samples --- src/main.rs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/main.rs b/src/main.rs index 9cb66d9..dcdde56 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,19 +1,12 @@ 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); @@ -29,10 +22,8 @@ fn main() { uwuwind::_UnwindRaiseException(exception.cast::()); } - */ } -#[allow(dead_code)] fn personality_routine( _version: i32, _actions: uw::_UnwindAction,