summaryrefslogtreecommitdiff
path: root/plugins/warp/src/plugin.rs
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2025-02-02 22:09:05 -0500
committerMason Reed <mason@vector35.com>2025-07-02 01:56:53 -0400
commit2792c181cc97585ebe793b1385e24654179bdc64 (patch)
tree2c27c89a4829edbc42b1afca5a8276f6d55059da /plugins/warp/src/plugin.rs
parent265b2984b0fad7332680ffd5d44cc9d25f9ad457 (diff)
Add highlight render layer to WARP
Highlights all variant instructions and blacklisted instructions Variant instructions are highlighted red, blacklisted will be orange.
Diffstat (limited to 'plugins/warp/src/plugin.rs')
-rw-r--r--plugins/warp/src/plugin.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/warp/src/plugin.rs b/plugins/warp/src/plugin.rs
index ec903f9c..4adab293 100644
--- a/plugins/warp/src/plugin.rs
+++ b/plugins/warp/src/plugin.rs
@@ -1,11 +1,7 @@
-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, MatcherSettings, PlatformID, PLAT_MATCHER_CACHE,
-};
-use crate::{build_function, cache};
+use crate::cache::register_cache_destructor;
+
+use crate::matcher::MatcherSettings;
+use crate::plugin::render_layer::HighlightRenderLayer;
use binaryninja::binary_view::{BinaryView, BinaryViewExt};
use binaryninja::command::{Command, FunctionCommand};
use binaryninja::function::{Function, FunctionUpdateType};
@@ -22,6 +18,7 @@ mod copy;
mod create;
mod find;
mod load;
+mod render_layer;
mod types;
mod workflow;
@@ -188,6 +185,9 @@ pub extern "C" fn CorePluginInit() -> bool {
// Make sure caches are flushed when the views get destructed.
register_cache_destructor();
+ // Register our highlight render layer.
+ HighlightRenderLayer::register();
+
workflow::insert_workflow();
binaryninja::command::register_command(