diff options
| author | kat <kat@vector35.com> | 2024-11-06 11:10:01 -0500 |
|---|---|---|
| committer | Galen Williamson <galen@vector35.com> | 2024-11-06 13:04:15 -0500 |
| commit | 30753ee362f782c6fc4e96dfc1a854983f67e48c (patch) | |
| tree | 17c6835f2c97f20637db018196928738aa5eda24 /view/sharedcache/core/SharedCache.cpp | |
| parent | 62f2addc577d1a202907527ad3c5a2135b5db0eb (diff) | |
[SharedCache] Fix bndb save/load within projects
Diffstat (limited to 'view/sharedcache/core/SharedCache.cpp')
| -rw-r--r-- | view/sharedcache/core/SharedCache.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/view/sharedcache/core/SharedCache.cpp b/view/sharedcache/core/SharedCache.cpp index 4d0f0046..ccc9ec30 100644 --- a/view/sharedcache/core/SharedCache.cpp +++ b/view/sharedcache/core/SharedCache.cpp @@ -155,7 +155,7 @@ uint64_t SharedCache::FastGetBackingCacheCount(BinaryNinja::Ref<BinaryNinja::Bin baseFile = MMappedFileAccessor::Open(dscView, dscView->GetFile()->GetSessionId(), dscView->GetFile()->GetOriginalFilename())->lock(); } catch (...){ - LogError("SharedCache preload: Failed to open file"); + LogError("SharedCache preload: Failed to open file %s", dscView->GetFile()->GetOriginalFilename().c_str()); return 0; } @@ -261,7 +261,7 @@ void SharedCache::PerformInitialLoad() dyld_cache_mapping_info mapping {}; BackingCache cache; cache.isPrimary = true; - cache.path = baseFile->Path(); + cache.path = path; for (size_t i = 0; i < primaryCacheHeader.mappingCount; i++) { @@ -329,7 +329,7 @@ void SharedCache::PerformInitialLoad() BackingCache cache; cache.isPrimary = true; - cache.path = baseFile->Path(); + cache.path = path; for (size_t i = 0; i < primaryCacheHeader.mappingCount; i++) { @@ -440,7 +440,7 @@ void SharedCache::PerformInitialLoad() // briefly. BackingCache cache; cache.isPrimary = true; - cache.path = baseFile->Path(); + cache.path = path; for (size_t i = 0; i < primaryCacheHeader.mappingCount; i++) { @@ -566,7 +566,7 @@ void SharedCache::PerformInitialLoad() BackingCache cache; cache.isPrimary = true; - cache.path = baseFile->Path(); + cache.path = path; for (size_t i = 0; i < primaryCacheHeader.mappingCount; i++) { |
