21std::optional<MemoryRegionInfo>
24 auto it = region_infos->upper_bound(load_addr);
25 if (it == region_infos->begin())
28 if (load_addr < it->second.GetRange().GetRangeEnd())
void Clear()
Remove all cached entries.
void AddRegion(const MemoryRegionInfo ®ion_info)
Add a MemoryRegionInfo to the collection.
Guarded< std::map< lldb::addr_t, MemoryRegionInfo >, std::mutex > m_region_infos
std::optional< MemoryRegionInfo > GetMemoryRegion(lldb::addr_t load_addr)
Return a MemoryRegionInfo that covers load_addr, returns empty optional if there is no entry.
A class that represents a running process on the host machine.
BaseType GetRangeBase() const