summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target/Memory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Target/Memory.cpp')
-rw-r--r--lldb/source/Target/Memory.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lldb/source/Target/Memory.cpp b/lldb/source/Target/Memory.cpp
index ee475f2a484..3c8d483f300 100644
--- a/lldb/source/Target/Memory.cpp
+++ b/lldb/source/Target/Memory.cpp
@@ -40,10 +40,12 @@ MemoryCache::~MemoryCache()
}
void
-MemoryCache::Clear()
+MemoryCache::Clear(bool clear_invalid_ranges)
{
Mutex::Locker locker (m_mutex);
m_cache.clear();
+ if (clear_invalid_ranges)
+ m_invalid_ranges.Clear();
}
void
OpenPOWER on IntegriCloud