summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target/Memory.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2013-05-21 01:00:52 +0000
committerGreg Clayton <gclayton@apple.com>2013-05-21 01:00:52 +0000
commit15fc2be75ba8c1276a0704380a07a4d377c1ef76 (patch)
tree0b3f977c5c6954a3d51258a76aa050cd334f9b2b /lldb/source/Target/Memory.cpp
parent9d4c735885bfc5a6d5300ed2cd58e3b42f0637fd (diff)
downloadbcm5719-llvm-15fc2be75ba8c1276a0704380a07a4d377c1ef76.tar.gz
bcm5719-llvm-15fc2be75ba8c1276a0704380a07a4d377c1ef76.zip
<rdar://problem/13892516>
LLDB can now debug across calls to exec when the architecture changes from say i386 to x86_64 (on darwin). llvm-svn: 182345
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