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/VirtualMemory.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'view/sharedcache/core/VirtualMemory.h') diff --git a/view/sharedcache/core/VirtualMemory.h b/view/sharedcache/core/VirtualMemory.h index 2edc6ef3..647f4468 100644 --- a/view/sharedcache/core/VirtualMemory.h +++ b/view/sharedcache/core/VirtualMemory.h @@ -42,8 +42,13 @@ class VirtualMemory { std::shared_mutex m_regionMutex; AddressRangeMap m_regions; + uint64_t m_addressSize = 8; public: + explicit VirtualMemory(uint64_t addressSize = 8) : m_addressSize(addressSize) {} + + uint64_t GetAddressSize() const { return m_addressSize; } + // At no point do we ever store a strong pointer to a file accessor, that is the job of the `FileAccessorCache`. void MapRegion(WeakFileAccessor fileAccessor, AddressRange mappedRange, uint64_t fileOffset); -- cgit v1.3.1