Gary Guo 3 rokov pred
rodič
commit
56f2d3cb32
2 zmenil súbory, kde vykonal 3 pridanie a 1 odobranie
  1. 2 0
      src/abi.rs
  2. 1 1
      src/unwinder/find_fde/phdr.rs

+ 2 - 0
src/abi.rs

@@ -3,6 +3,8 @@ use core::ops;
 
 use crate::util::*;
 
+#[cfg(not(feature = "unwinder"))]
+use crate::arch::Arch;
 #[cfg(feature = "unwinder")]
 pub use crate::unwinder::*;
 

+ 1 - 1
src/unwinder/find_fde/phdr.rs

@@ -1,7 +1,6 @@
 use super::FDESearchResult;
 use crate::util::*;
 
-use core::ffi::c_void;
 use core::mem;
 use core::slice;
 use gimli::{BaseAddresses, EhFrame, EhFrameHdr, NativeEndian, UnwindSection};
@@ -49,6 +48,7 @@ fn search_aux_phdr(pc: usize) -> Option<FDESearchResult> {
 
 #[cfg(feature = "fde-phdr-dl")]
 fn search_dl_phdr(pc: usize) -> Option<FDESearchResult> {
+    use core::ffi::c_void;
     use libc::{dl_iterate_phdr, dl_phdr_info};
 
     struct CallbackData {