summaryrefslogtreecommitdiff
path: root/plugins/warp/src/processor.rs
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2026-02-22 17:08:21 -0800
committerMason Reed <35282038+emesare@users.noreply.github.com>2026-02-23 00:09:44 -0800
commitb18bdad6c94a8e234108d531f0c480c7104abebe (patch)
treeb0edb86cfae52c37635ef0b5cac491220bc3ef24 /plugins/warp/src/processor.rs
parentdbd54d67a6d523f64615f653d82d8224cd09870a (diff)
[Rust] Misc documentation and cleanup
Diffstat (limited to 'plugins/warp/src/processor.rs')
-rw-r--r--plugins/warp/src/processor.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/warp/src/processor.rs b/plugins/warp/src/processor.rs
index e21a2efd..12403ed2 100644
--- a/plugins/warp/src/processor.rs
+++ b/plugins/warp/src/processor.rs
@@ -29,6 +29,7 @@ use binaryninja::rc::{Guard, Ref};
use crate::cache::cached_type_references;
use crate::convert::platform_to_target;
use crate::{build_function, INCLUDE_TAG_ICON, INCLUDE_TAG_NAME};
+use binaryninja::file_metadata::{SaveOption, SaveSettings};
use warp::chunk::{Chunk, ChunkKind, CompressionType};
use warp::r#type::chunk::TypeChunk;
use warp::signature::chunk::SignatureChunk;
@@ -645,7 +646,11 @@ impl WarpFileProcessor {
if !view.file().is_database_backed() {
// Update the cache.
tracing::debug!("Saving analysis database to {:?}", file_cache_path);
- if !view.file().create_database(&file_cache_path) {
+ let save_settings = SaveSettings::new().with_option(SaveOption::RemoveUndoData);
+ if !view
+ .file()
+ .create_database(&file_cache_path, &save_settings)
+ {
// TODO: We might want to error here...
tracing::warn!("Failed to save analysis database to {:?}", file_cache_path);
}