summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/Linux
diff options
context:
space:
mode:
authorTodd Fiala <todd.fiala@gmail.com>2014-10-09 17:00:55 +0000
committerTodd Fiala <todd.fiala@gmail.com>2014-10-09 17:00:55 +0000
commit7aafc4a5ff417dfbfdef4a667802525ed1f3651c (patch)
treeb6b335ebbc1889dbd6151115bc9dda402f0eb912 /lldb/source/Plugins/Process/Linux
parent01b48a84dc9c4a2de9335cc717ee781cbd30450d (diff)
downloadbcm5719-llvm-7aafc4a5ff417dfbfdef4a667802525ed1f3651c.tar.gz
bcm5719-llvm-7aafc4a5ff417dfbfdef4a667802525ed1f3651c.zip
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
Diffstat (limited to 'lldb/source/Plugins/Process/Linux')
-rw-r--r--lldb/source/Plugins/Process/Linux/ThreadStateCoordinator.cpp3
1 files changed, 3 insertions, 0 deletions
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;
}
OpenPOWER on IntegriCloud