summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target/Thread.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2012-05-18 02:38:05 +0000
committerGreg Clayton <gclayton@apple.com>2012-05-18 02:38:05 +0000
commitfa559e5c6e939c7c1570eb2cde3b86aff12abdc7 (patch)
treee81c4c86521f48c02f8a8111fd6ffeb26ec56a1c /lldb/source/Target/Thread.cpp
parentf34358e90bf0fa114ff54c488331605ec0627c9c (diff)
downloadbcm5719-llvm-fa559e5c6e939c7c1570eb2cde3b86aff12abdc7.tar.gz
bcm5719-llvm-fa559e5c6e939c7c1570eb2cde3b86aff12abdc7.zip
<rdar://problem/11386214>
<rdar://problem/11455913> "target symbol add" should flush the cached frames "register write" should flush the thread state in case registers modifications change stack llvm-svn: 157042
Diffstat (limited to 'lldb/source/Target/Thread.cpp')
-rw-r--r--lldb/source/Target/Thread.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/lldb/source/Target/Thread.cpp b/lldb/source/Target/Thread.cpp
index 5c3c1970146..4513577c9b5 100644
--- a/lldb/source/Target/Thread.cpp
+++ b/lldb/source/Target/Thread.cpp
@@ -1410,6 +1410,14 @@ Thread::GetUnwinder ()
}
+void
+Thread::Flush ()
+{
+ ClearStackFrames ();
+ m_reg_context_sp.reset();
+}
+
+
#pragma mark "Thread::SettingsController"
//--------------------------------------------------------------
// class Thread::SettingsController
OpenPOWER on IntegriCloud