diff options
| author | Greg Clayton <gclayton@apple.com> | 2012-05-18 02:38:05 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2012-05-18 02:38:05 +0000 |
| commit | fa559e5c6e939c7c1570eb2cde3b86aff12abdc7 (patch) | |
| tree | e81c4c86521f48c02f8a8111fd6ffeb26ec56a1c /lldb/source/Target/ThreadList.cpp | |
| parent | f34358e90bf0fa114ff54c488331605ec0627c9c (diff) | |
<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/ThreadList.cpp')
| -rw-r--r-- | lldb/source/Target/ThreadList.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lldb/source/Target/ThreadList.cpp b/lldb/source/Target/ThreadList.cpp index e1c38664aa53..3152c1560cde 100644 --- a/lldb/source/Target/ThreadList.cpp +++ b/lldb/source/Target/ThreadList.cpp @@ -605,4 +605,12 @@ ThreadList::Update (ThreadList &rhs) } } +void +ThreadList::Flush () +{ + Mutex::Locker locker(m_threads_mutex); + collection::iterator pos, end = m_threads.end(); + for (pos = m_threads.begin(); pos != end; ++pos) + (*pos)->Flush (); +} |
