From b18bdad6c94a8e234108d531f0c480c7104abebe Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Sun, 22 Feb 2026 17:08:21 -0800 Subject: [Rust] Misc documentation and cleanup --- plugins/warp/src/processor.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'plugins/warp/src/processor.rs') 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); } -- cgit v1.3.1