summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target/Process.cpp
diff options
context:
space:
mode:
authorAndrew Kaylor <andrew.kaylor@intel.com>2013-05-08 23:15:46 +0000
committerAndrew Kaylor <andrew.kaylor@intel.com>2013-05-08 23:15:46 +0000
commit14263f31ae9d03bfb92bdea5cc5961fb5863784a (patch)
treeda27339ae999874f21129b90d46b348bd72dde2e /lldb/source/Target/Process.cpp
parent6c96ba2dc0c382fcb8822c13dadab53bd1dcf821 (diff)
downloadbcm5719-llvm-14263f31ae9d03bfb92bdea5cc5961fb5863784a.tar.gz
bcm5719-llvm-14263f31ae9d03bfb92bdea5cc5961fb5863784a.zip
Adding code to set thread state to stopped when the process stops.
llvm-svn: 181482
Diffstat (limited to 'lldb/source/Target/Process.cpp')
-rw-r--r--lldb/source/Target/Process.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/lldb/source/Target/Process.cpp b/lldb/source/Target/Process.cpp
index 93fd93a71de..f6fdca8a425 100644
--- a/lldb/source/Target/Process.cpp
+++ b/lldb/source/Target/Process.cpp
@@ -1722,6 +1722,19 @@ Process::SetPrivateState (StateType new_state)
m_private_state.SetValueNoLock (new_state);
if (StateIsStoppedState(new_state, false))
{
+ // Note, this currently assumes that all threads in the list
+ // stop when the process stops. In the future we will want to
+ // support a debugging model where some threads continue to run
+ // while others are stopped. When that happens we will either need
+ // a way for the thread list to identify which threads are stopping
+ // or create a special thread list containing only threads which
+ // actually stopped.
+ //
+ // The process plugin is responsible for managing the actual
+ // behavior of the threads and should have stopped any threads
+ // that are going to stop before we get here.
+ m_thread_list.DidStop();
+
m_mod_id.BumpStopID();
m_memory_cache.Clear();
if (log)
OpenPOWER on IntegriCloud