[Lldb-commits] [lldb] r157766 - /lldb/trunk/source/Target/ThreadList.cpp

Jim Ingham jingham at apple.com
Thu May 31 13:47:56 PDT 2012


Author: jingham
Date: Thu May 31 15:47:56 2012
New Revision: 157766

URL: http://llvm.org/viewvc/llvm-project?rev=157766&view=rev
Log:
When we are preparing all threads to run, if the overall run state of a thread is "suspended" that
should override the thread's thread plan's run state.

Modified:
    lldb/trunk/source/Target/ThreadList.cpp

Modified: lldb/trunk/source/Target/ThreadList.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/ThreadList.cpp?rev=157766&r1=157765&r2=157766&view=diff
==============================================================================
--- lldb/trunk/source/Target/ThreadList.cpp (original)
+++ lldb/trunk/source/Target/ThreadList.cpp Thu May 31 15:47:56 2012
@@ -466,7 +466,12 @@
         for (pos = m_threads.begin(); pos != end; ++pos)
         {
             ThreadSP thread_sp(*pos);
-            thread_sp->WillResume(thread_sp->GetCurrentPlan()->RunState());
+            StateType run_state;
+            if (thread_sp->GetResumeState() != eStateSuspended)
+                run_state = thread_sp->GetCurrentPlan()->RunState();
+            else
+                run_state = eStateSuspended;
+            thread_sp->WillResume(run_state);
         }
     }
     else





More information about the lldb-commits mailing list