summaryrefslogtreecommitdiff
path: root/view/sharedcache/core/SharedCacheController.cpp
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2025-04-13 00:47:36 -0400
committerMason Reed <mason@vector35.com>2025-04-14 03:20:51 -0400
commitea47d4c85e78533ea7e88adc442159414feb3f7f (patch)
tree801cd657bf7872d02cb783f8ee0f25b3f5ecad1c /view/sharedcache/core/SharedCacheController.cpp
parent83dc0ef0eea5face59d8a58251f78f32f3e6c914 (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/SharedCacheController.cpp')
-rw-r--r--view/sharedcache/core/SharedCacheController.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/view/sharedcache/core/SharedCacheController.cpp b/view/sharedcache/core/SharedCacheController.cpp
index 8420d358..b6dfdb47 100644
--- a/view/sharedcache/core/SharedCacheController.cpp
+++ b/view/sharedcache/core/SharedCacheController.cpp
@@ -1,10 +1,6 @@
#include "SharedCacheController.h"
-
-#include <utility>
-
#include "MachOProcessor.h"
#include "ObjC.h"
-#include "SlideInfo.h"
using namespace BinaryNinja;
using namespace BinaryNinja::DSC;
@@ -211,7 +207,7 @@ bool SharedCacheController::ApplyImage(BinaryView& view, const CacheImage& image
// analyzed functions as updated.
auto prevDisabledState = view.GetFunctionAnalysisUpdateDisabled();
view.SetFunctionAnalysisUpdateDisabled(true);
- machoProcessor.ApplyHeader(*image.header);
+ machoProcessor.ApplyHeader(GetCache(), *image.header);
view.SetFunctionAnalysisUpdateDisabled(prevDisabledState);
// Load objective-c information.