summaryrefslogtreecommitdiff
path: root/plugins/warp/src/plugin
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2025-07-16 14:41:31 -0400
committerMason Reed <mason@vector35.com>2025-07-17 06:20:20 -0400
commit2f947fd6971e284ebc0f38219c1687afa15d73b0 (patch)
tree3326fda2f5d2105fa53609e51705b1a30bed824f /plugins/warp/src/plugin
parent302b3295e6db60c1ee5a076d8f57ebfd5e1eb30a (diff)
[WARP] Construct a minimal version of the function object when user only wants the symbol
We were previously constructing the function type, comments and variables to just throw away, wasting precious cpu cycles!
Diffstat (limited to 'plugins/warp/src/plugin')
-rw-r--r--plugins/warp/src/plugin/debug.rs2
-rw-r--r--plugins/warp/src/plugin/ffi/function.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/warp/src/plugin/debug.rs b/plugins/warp/src/plugin/debug.rs
index fc4e5817..24cdf1c3 100644
--- a/plugins/warp/src/plugin/debug.rs
+++ b/plugins/warp/src/plugin/debug.rs
@@ -10,7 +10,7 @@ pub struct DebugFunction;
impl FunctionCommand for DebugFunction {
fn action(&self, _view: &BinaryView, func: &Function) {
if let Ok(lifted_il) = func.lifted_il() {
- log::info!("{:#?}", build_function(func, &lifted_il));
+ log::info!("{:#?}", build_function(func, &lifted_il, false));
}
}
diff --git a/plugins/warp/src/plugin/ffi/function.rs b/plugins/warp/src/plugin/ffi/function.rs
index 3db8f307..a7ec6593 100644
--- a/plugins/warp/src/plugin/ffi/function.rs
+++ b/plugins/warp/src/plugin/ffi/function.rs
@@ -40,7 +40,7 @@ pub unsafe extern "C" fn BNWARPGetFunction(
let Ok(lifted_il) = function.lifted_il() else {
return std::ptr::null_mut();
};
- let function = build_function(&function, &lifted_il);
+ let function = build_function(&function, &lifted_il, false);
Arc::into_raw(Arc::new(function)) as *mut BNWARPFunction
}