[NativeProcessLinux] Remove the post-stop lambda
authorPavel Labath <labath@google.com>
Wed, 6 May 2015 12:22:37 +0000 (12:22 +0000)
committerPavel Labath <labath@google.com>
Wed, 6 May 2015 12:22:37 +0000 (12:22 +0000)
commited89c7fe44bd60a20e80b855804fa455cbeb7be5
tree3699ffaece4173a4a90fe732c50b8f3b176d8acb
parent24a8f55857a2864d8d99f9b12ac4fbc3ac3fc9d2
[NativeProcessLinux] Remove the post-stop lambda

Summary:
The lambda was always calling SetState(eStateStopped) with small variations, so I have inlined
the code. Given that we don't have the TSC anymore, I believe we don't need to be so generic.

The only major change here is the way we choose a stop reason thread when we're interrupting a
program on client request. Previously, we were setting a null stop reason for all threads and
then fixing up the reason for one victim thread in the lambda. Now, I make sure the stop reason
is set for the victim thread correctly in the first place.

I also take the opportunity to rename CallAfter* functions into something more appropriate.

Test Plan: All tests continue to pass.

Reviewers: chaoren, vharron

Subscribers: lldb-commits

Differential Revision: http://reviews.llvm.org/D9321

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