Get initial thread state coordinator integration working.
authorChaoren Lin <chaorenl@google.com>
Tue, 3 Feb 2015 01:50:42 +0000 (01:50 +0000)
committerChaoren Lin <chaorenl@google.com>
Tue, 3 Feb 2015 01:50:42 +0000 (01:50 +0000)
commitfa03ad2ebc7306bf2a952f9d5c5ca3d39cfff63c
tree4376308c4b5a235ee2ba213e1bd2751782e9665c
parent56f981bfceaeeee00ad4097d29723cfb05e59bdf
Get initial thread state coordinator integration working.

* Fixed bug in run loop where run loop return enum was being treated
  erroneously like an int, causing the TSC event loop to terminate
  prematurely.

* Added an explicit scope in NativeProcessLinux::Resume() for the
  threads lock lifetime.  (This was likely unnecessary but is
  more explicit.)

* Fixed a bug in ThreadStateCoordinator where resume execution was
  not updating the internal state about the thread assumed to be
  running now.  I'll add a test and upstream this in a moment.

* Added a verbose logging mechanism to event processing within
  ThreadStateCoordinator.  It is currently enabled when the
  'log enable lldb thread' is true upon inferior launch/attach.

llvm-svn: 227909
lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
lldb/source/Plugins/Process/Linux/NativeProcessLinux.h
lldb/source/Plugins/Process/Linux/ThreadStateCoordinator.cpp
lldb/source/Plugins/Process/Linux/ThreadStateCoordinator.h