Skip to content

Commit

Permalink
fix(sys): use C-unwind abi for unw_resume
Browse files Browse the repository at this point in the history
  • Loading branch information
doinkythederp committed Sep 11, 2024
1 parent 995d81d commit 6289c9d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/vex-libunwind-sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,6 @@ extern "C" {

pub fn unw_set_fpreg(cur: *mut unw_cursor_t, reg: unw_regnum_t, val: unw_fpreg_t) -> c_int;

pub fn unw_resume(cur: *mut unw_cursor_t) -> c_int;

#[cfg(target_arch = "arm")]
// Save VFP registers in FSTMX format (instead of FSTMD).
pub fn unw_save_vfp_as_X(cur: *mut unw_cursor_t);
Expand All @@ -137,6 +135,11 @@ extern "C" {
pub static mut unw_local_addr_space: unw_addr_space_t;
}

#[link(name = "unwind")]
extern "C-unwind" {
pub fn unw_resume(cur: *mut unw_cursor_t) -> c_int;
}

pub mod registers {
use super::unw_regnum_t;

Expand Down

0 comments on commit 6289c9d

Please sign in to comment.