From 7aafc4a5ff417dfbfdef4a667802525ed1f3651c Mon Sep 17 00:00:00 2001 From: Todd Fiala Date: Thu, 9 Oct 2014 17:00:55 +0000 Subject: thread state coordinator: fixed bug in thread running state book-keeping. Adds a test to verify that a thread resume request marks the thread as running after doing the resume callback. This test fails without the corresponding ThreadStateCoordinator.cpp change. Fixes the code where that state was not maintained. llvm-svn: 219412 --- lldb/source/Plugins/Process/Linux/ThreadStateCoordinator.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lldb/source/Plugins/Process/Linux/ThreadStateCoordinator.cpp') diff --git a/lldb/source/Plugins/Process/Linux/ThreadStateCoordinator.cpp b/lldb/source/Plugins/Process/Linux/ThreadStateCoordinator.cpp index 5d6bede742c..779e2494b1e 100644 --- a/lldb/source/Plugins/Process/Linux/ThreadStateCoordinator.cpp +++ b/lldb/source/Plugins/Process/Linux/ThreadStateCoordinator.cpp @@ -444,6 +444,9 @@ public: // to reflect it is running after this completes. m_request_thread_resume_function (m_tid); + // Now mark it is running. + find_it->second = false; + return eventLoopResultContinue; } -- cgit v1.2.3