diff options
| author | Mason Reed <mason@vector35.com> | 2024-11-04 01:48:03 -0500 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2024-11-04 01:48:03 -0500 |
| commit | 7743af0603a2568ad28a1b152153eabce8c52dd7 (patch) | |
| tree | 082d2e33e321fa453c4b6230e679e89d87c19ef6 /plugins/warp/src/plugin.rs | |
| parent | 393c7fb508b465b0cb096d46eaaefc08030e9fed (diff) | |
WARP: Misc formatting and remove useless apply command
Diffstat (limited to 'plugins/warp/src/plugin.rs')
| -rw-r--r-- | plugins/warp/src/plugin.rs | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/plugins/warp/src/plugin.rs b/plugins/warp/src/plugin.rs index ee9c633b..a2d1bf5f 100644 --- a/plugins/warp/src/plugin.rs +++ b/plugins/warp/src/plugin.rs @@ -1,20 +1,19 @@ use log::LevelFilter; -use crate::{build_function, cache}; use crate::cache::{ register_cache_destructor, ViewID, FUNCTION_CACHE, GUID_CACHE, MATCHED_FUNCTION_CACHE, }; use crate::convert::{to_bn_symbol_at_address, to_bn_type}; use crate::matcher::{invalidate_function_matcher_cache, Matcher, PlatformID, PLAT_MATCHER_CACHE}; +use crate::{build_function, cache}; use binaryninja::binaryview::{BinaryView, BinaryViewExt}; use binaryninja::command::{Command, FunctionCommand}; use binaryninja::function::{Function, FunctionUpdateType}; use binaryninja::rc::Ref; use binaryninja::tags::TagType; -use warp::signature::function::Function as WarpFunction; use binaryninja::ObjectDestructor; +use warp::signature::function::Function as WarpFunction; -mod apply; mod copy; mod create; mod find; @@ -82,7 +81,10 @@ impl FunctionCommand for DebugMatcher { if let Some(possible_matches) = matcher.functions.get(&func.guid) { log::info!("{:#?}", possible_matches.value()); } else { - log::error!("No possible matches found for the function 0x{:x}", function.start()); + log::error!( + "No possible matches found for the function 0x{:x}", + function.start() + ); }; } @@ -169,7 +171,6 @@ pub extern "C" fn CorePluginInit() -> bool { DebugInvalidateCache {}, ); - binaryninja::command::register_for_function( "WARP\\Debug\\Function Signature", "Print the entire signature for the function", @@ -206,11 +207,5 @@ pub extern "C" fn CorePluginInit() -> bool { create::CreateSignatureFile {}, ); - // binaryninja::command::register( - // "WARP\\Apply Signature File", - // "Applies a signature file to the current view", - // apply::ApplySignatureFile {}, - // ); - true } |
