summaryrefslogtreecommitdiff
path: root/view/sharedcache/core/SharedCache.h
diff options
context:
space:
mode:
Diffstat (limited to 'view/sharedcache/core/SharedCache.h')
-rw-r--r--view/sharedcache/core/SharedCache.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/view/sharedcache/core/SharedCache.h b/view/sharedcache/core/SharedCache.h
index 1b3f8261..1ecfd885 100644
--- a/view/sharedcache/core/SharedCache.h
+++ b/view/sharedcache/core/SharedCache.h
@@ -588,13 +588,14 @@ namespace SharedCacheCore {
void DeserializeFromRawView();
public:
- std::shared_ptr<VM> GetVMMap(bool mapPages = true);
+ std::shared_ptr<VM> GetVMMap();
static SharedCache* GetFromDSCView(BinaryNinja::Ref<BinaryNinja::BinaryView> dscView);
static uint64_t FastGetBackingCacheCount(BinaryNinja::Ref<BinaryNinja::BinaryView> dscView);
bool SaveToDSCView();
void ParseAndApplySlideInfoForFile(std::shared_ptr<MMappedFileAccessor> file);
+
std::optional<uint64_t> GetImageStart(std::string installName);
std::optional<SharedCacheMachOHeader> HeaderForAddress(uint64_t);
bool LoadImageWithInstallName(std::string installName, bool skipObjC);
@@ -655,6 +656,9 @@ private:
// Must be called before first access to `MutableState()` after the state
// is loaded from the cache. Can safely be called multiple times.
void WillMutateState();
+
+ std::shared_ptr<MMappedFileAccessor> MapFile(const std::string& path);
+ static std::shared_ptr<MMappedFileAccessor> MapFileWithoutApplyingSlide(const std::string& path);
};
}