9#ifndef LLDB_TARGET_MEMORYREGIONINFOCACHE_H
10#define LLDB_TARGET_MEMORYREGIONINFOCACHE_H
Bundles a value of type T with the Mutex that guards it.
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.
MemoryRegionInfoCache()=default
A class that represents a running process on the host machine.