@@ -84,18 +84,15 @@ DSCRef<SharedCacheController> SharedCacheController::FromView(BinaryView& view)
8484 return dscView->second ;
8585}
8686
87- bool SharedCacheController::LoadRegionAtAddress (BinaryView& view, const uint64_t address)
87+ bool SharedCacheController::ApplyRegionAtAddress (BinaryView& view, const uint64_t address)
8888{
8989 auto region = m_cache.GetRegionAt (address);
9090 if (!region)
9191 return false ;
92-
93- LogInfo (" Loading region at %llx named %s with range %llx - %llx" , address, region->name .c_str (), region->start , region->start + region->size );
94-
95- return LoadRegion (view, *region);
92+ return ApplyRegion (view, *region);
9693}
9794
98- bool SharedCacheController::LoadRegion (BinaryView& view, const CacheRegion& region)
95+ bool SharedCacheController::ApplyRegion (BinaryView& view, const CacheRegion& region)
9996{
10097 // TODO: Check m_loadedRegions? This seems redundant...
10198 // Loads the given region into the BinaryView and marks it as loaded.
@@ -146,14 +143,13 @@ bool SharedCacheController::IsRegionLoaded(const CacheRegion ®ion) const
146143 });
147144}
148145
149- bool SharedCacheController::LoadImage (BinaryView& view, const CacheImage& image)
146+ bool SharedCacheController::ApplyImage (BinaryView& view, const CacheImage& image)
150147{
151148 // TODO: Check m_loadedImages? This seems redundant...
152- // TODO: Will this load the header for the image as well?
153149 // Load all regions of an image and mark the image as loaded.
154150 bool loadedRegion = false ;
155151 for (const auto & regionStart : image.regionStarts )
156- if (LoadRegionAtAddress (view, regionStart))
152+ if (ApplyRegionAtAddress (view, regionStart))
157153 loadedRegion = true ;
158154
159155 // If there was no loaded regions than we just want to forgo loading the image.
0 commit comments