From ea47d4c85e78533ea7e88adc442159414feb3f7f Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Sun, 13 Apr 2025 00:47:36 -0400 Subject: [SharedCache] Apply .symbols file information when applying an image This improves symbol recovery drastically on newer shared caches Related PR: https://github.com/Vector35/binaryninja-api/pull/6210 --- view/sharedcache/core/MachOProcessor.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'view/sharedcache/core/MachOProcessor.h') diff --git a/view/sharedcache/core/MachOProcessor.h b/view/sharedcache/core/MachOProcessor.h index 0564a831..4b014f4e 100644 --- a/view/sharedcache/core/MachOProcessor.h +++ b/view/sharedcache/core/MachOProcessor.h @@ -1,5 +1,6 @@ #pragma once #include "MachO.h" +#include "SharedCache.h" // Process `SharedCacheMachOHeader`. class SharedCacheMachOProcessor @@ -15,7 +16,7 @@ public: BinaryNinja::Ref view, std::shared_ptr vm); // Initialize header information such as sections and symbols. - void ApplyHeader(SharedCacheMachOHeader& header); + void ApplyHeader(const SharedCache& cache, SharedCacheMachOHeader& header); uint64_t ApplyHeaderSections(SharedCacheMachOHeader& header); -- cgit v1.3.1