diff options
| author | KyleMiles <krm504@nyu.edu> | 2022-07-07 19:39:18 -0400 |
|---|---|---|
| committer | KyleMiles <krm504@nyu.edu> | 2022-07-07 19:39:18 -0400 |
| commit | b9c6552982ab353c57259a577b91cff986646566 (patch) | |
| tree | 9e144372e7b6064f0a32917ad600f67d7b9b4545 /rust/src | |
| parent | c7854604f7610fbde01a981d85c0cad3df29ceae (diff) | |
Revert 94649dde0d847aa2407d565632f7d2c3cdff32f5: "Add IsExternal callback to debug info API"
Diffstat (limited to 'rust/src')
| -rw-r--r-- | rust/src/debuginfo.rs | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/rust/src/debuginfo.rs b/rust/src/debuginfo.rs index 3ed4e3c6..56786d19 100644 --- a/rust/src/debuginfo.rs +++ b/rust/src/debuginfo.rs @@ -131,10 +131,6 @@ impl DebugInfoParser { unsafe { BNIsDebugInfoParserValidForView(self.handle, view.handle) } } - pub fn is_external(&self) -> bool { - unsafe { BNIsDebugInfoParserExternal(self.handle) } - } - /// Returns a `DebugInfo` object populated with debug info by this debug-info parser. Only provide a `DebugInfo` object if you wish to append to the existing debug info pub fn parse_debug_info( &self, @@ -161,17 +157,6 @@ impl DebugInfoParser { S: BnStrCompatible, C: CustomDebugInfoParser, { - extern "C" fn cb_is_external<C>(ctxt: *mut c_void) -> bool - where - C: CustomDebugInfoParser, - { - ffi_wrap!("CustomDebugInfoParser::is_external", unsafe { - let cmd = &*(ctxt as *const C); - - cmd.is_external() - }) - } - extern "C" fn cb_is_valid<C>(ctxt: *mut c_void, view: *mut BNBinaryView) -> bool where C: CustomDebugInfoParser, @@ -207,7 +192,6 @@ impl DebugInfoParser { unsafe { DebugInfoParser::from_raw(BNRegisterDebugInfoParser( name_ptr, - Some(cb_is_external::<C>), Some(cb_is_valid::<C>), Some(cb_parse_info::<C>), ctxt as *mut _, @@ -659,7 +643,6 @@ impl ToOwned for DebugInfo { /// Implement this trait to implement a debug info parser. See `DebugInfoParser` for more details. pub trait CustomDebugInfoParser: 'static + Sync { - fn is_external(&self) -> bool; fn is_valid(&self, view: &BinaryView) -> bool; fn parse_info(&self, debug_info: &mut DebugInfo, view: &BinaryView); } |
