diff options
| author | Mason Reed <mason@vector35.com> | 2025-04-13 00:47:36 -0400 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2025-04-14 03:20:51 -0400 |
| commit | ea47d4c85e78533ea7e88adc442159414feb3f7f (patch) | |
| tree | 801cd657bf7872d02cb783f8ee0f25b3f5ecad1c /view/sharedcache/core/MachOProcessor.h | |
| parent | 83dc0ef0eea5face59d8a58251f78f32f3e6c914 (diff) | |
[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
Diffstat (limited to 'view/sharedcache/core/MachOProcessor.h')
| -rw-r--r-- | view/sharedcache/core/MachOProcessor.h | 3 |
1 files changed, 2 insertions, 1 deletions
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<BinaryNinja::BinaryView> view, std::shared_ptr<VirtualMemory> 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); |
