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/SharedCacheController.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'view/sharedcache/core/SharedCacheController.cpp') 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 - #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. -- cgit v1.3.1