diff options
| author | Mason Reed <mason@vector35.com> | 2026-03-13 12:24:18 -0700 |
|---|---|---|
| committer | Mason Reed <35282038+emesare@users.noreply.github.com> | 2026-03-24 18:46:48 -0700 |
| commit | 3c88b11e5df33116580ac008e36092775df66135 (patch) | |
| tree | cd64fbe149f05683ddabcccd0db7b87356f1f8cf /plugins/warp/src/plugin/debug.rs | |
| parent | f325aa7b6026a1daef84931baeb1f50d7da10c10 (diff) | |
[WARP] Improved UX and API
- Exposes WARP type objects directly
- Adds processor API (for generating warp files directly)
- Adds file and chunk API
- Misc cleanup
- Simplified the amount of commands
- Replaced the "Create" commands with a purpose built processor dialog
- Added a native QT viewer for WARP files
- Simplified committing to a remote with a purpose built commit dialog
Diffstat (limited to 'plugins/warp/src/plugin/debug.rs')
| -rw-r--r-- | plugins/warp/src/plugin/debug.rs | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/plugins/warp/src/plugin/debug.rs b/plugins/warp/src/plugin/debug.rs deleted file mode 100644 index 4198ea30..00000000 --- a/plugins/warp/src/plugin/debug.rs +++ /dev/null @@ -1,49 +0,0 @@ -use crate::cache::container::for_cached_containers; -use crate::{build_function, cache}; -use binaryninja::binary_view::BinaryView; -use binaryninja::command::{Command, FunctionCommand}; -use binaryninja::function::Function; -use binaryninja::object_destructor::ObjectDestructor; - -pub struct DebugFunction; - -impl FunctionCommand for DebugFunction { - fn action(&self, _view: &BinaryView, func: &Function) { - tracing::info!( - "{:#?}", - build_function(func, || func.lifted_il().ok(), false) - ); - } - - fn valid(&self, _view: &BinaryView, _func: &Function) -> bool { - true - } -} - -pub struct DebugCache; - -impl Command for DebugCache { - fn action(&self, _view: &BinaryView) { - for_cached_containers(|c| { - tracing::info!("Container: {:#?}", c); - }); - } - - fn valid(&self, _view: &BinaryView) -> bool { - true - } -} - -pub struct DebugInvalidateCache; - -impl Command for DebugInvalidateCache { - fn action(&self, view: &BinaryView) { - let destructor = cache::CacheDestructor {}; - destructor.destruct_view(view); - tracing::info!("Invalidated all WARP caches..."); - } - - fn valid(&self, _view: &BinaryView) -> bool { - true - } -} |
