summaryrefslogtreecommitdiff
path: root/view/sharedcache/core/VM.h
diff options
context:
space:
mode:
authorJosh Ferrell <josh@vector35.com>2024-10-31 16:23:34 -0400
committerkat <kat@vector35.com>2024-11-05 09:04:35 -0500
commit3f52136b43d52d6714df2243da9733b26718110d (patch)
tree9b253015049eee0b71a30755c8a7bcaff799e498 /view/sharedcache/core/VM.h
parentf4a4b17b9e30cf603eb614e153d68226a3b24520 (diff)
[SharedCache] Add project support for split dsc
Diffstat (limited to 'view/sharedcache/core/VM.h')
-rw-r--r--view/sharedcache/core/VM.h6
1 files changed, 4 insertions, 2 deletions
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<BinaryNinja::BinaryView> 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<SelfAllocatingWeakPtr<MMappedFileAccessor>> Open(const uint64_t sessionID, const std::string &path, std::function<void(std::shared_ptr<MMappedFileAccessor>)> postAllocationRoutine = nullptr);
+ static std::shared_ptr<SelfAllocatingWeakPtr<MMappedFileAccessor>> Open(BinaryNinja::Ref<BinaryNinja::BinaryView> dscView, const uint64_t sessionID, const std::string &path, std::function<void(std::shared_ptr<MMappedFileAccessor>)> 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<void(std::shared_ptr<MMappedFileAccessor>)> postAllocationRoutine);
+ void MapPages(BinaryNinja::Ref<BinaryNinja::BinaryView> dscView, uint64_t sessionID, size_t vm_address, size_t fileoff, size_t size, std::string filePath, std::function<void(std::shared_ptr<MMappedFileAccessor>)> postAllocationRoutine);
bool AddressIsMapped(uint64_t address);