From 3f52136b43d52d6714df2243da9733b26718110d Mon Sep 17 00:00:00 2001 From: Josh Ferrell Date: Thu, 31 Oct 2024 16:23:34 -0400 Subject: [SharedCache] Add project support for split dsc --- view/sharedcache/core/VM.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'view/sharedcache/core/VM.h') diff --git a/view/sharedcache/core/VM.h b/view/sharedcache/core/VM.h index d85a766d..b000266b 100644 --- a/view/sharedcache/core/VM.h +++ b/view/sharedcache/core/VM.h @@ -9,6 +9,8 @@ void VMShutdown(); +std::string ResolveFilePath(BinaryNinja::Ref dscView, const std::string& path); + class counting_semaphore { public: explicit counting_semaphore(int count = 0) : count_(count) {} @@ -121,7 +123,7 @@ public: MMappedFileAccessor(const std::string &path); ~MMappedFileAccessor(); - static std::shared_ptr> Open(const uint64_t sessionID, const std::string &path, std::function)> postAllocationRoutine = nullptr); + static std::shared_ptr> Open(BinaryNinja::Ref dscView, const uint64_t sessionID, const std::string &path, std::function)> postAllocationRoutine = nullptr); static void CloseAll(const uint64_t sessionID); @@ -226,7 +228,7 @@ public: ~VM(); - void MapPages(uint64_t sessionID, size_t vm_address, size_t fileoff, size_t size, std::string filePath, std::function)> postAllocationRoutine); + void MapPages(BinaryNinja::Ref dscView, uint64_t sessionID, size_t vm_address, size_t fileoff, size_t size, std::string filePath, std::function)> postAllocationRoutine); bool AddressIsMapped(uint64_t address); -- cgit v1.3.1