diff options
author | Jim Ingham <jingham@apple.com> | 2011-02-08 05:20:59 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2011-02-08 05:20:59 +0000 |
commit | 0f16e73a76503fb252f36b90c2e1a7901ab6a9a4 (patch) | |
tree | 07ebe5ee9d4bc518a0b77af967d572b3aa1a4f57 /lldb/tools/debugserver/source/MacOSX/MachThreadList.cpp | |
parent | 87e5ff02a1248cf18c8ca7430df0ab7d55643e00 (diff) | |
download | bcm5719-llvm-0f16e73a76503fb252f36b90c2e1a7901ab6a9a4.tar.gz bcm5719-llvm-0f16e73a76503fb252f36b90c2e1a7901ab6a9a4.zip |
Rework the RunThreadPlan event handling to use Event Hijacking not stopping the event thread. Also clarify the logic of the function.
llvm-svn: 125083
Diffstat (limited to 'lldb/tools/debugserver/source/MacOSX/MachThreadList.cpp')
-rw-r--r-- | lldb/tools/debugserver/source/MacOSX/MachThreadList.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lldb/tools/debugserver/source/MacOSX/MachThreadList.cpp b/lldb/tools/debugserver/source/MacOSX/MachThreadList.cpp index 27c0016c4fe..c08d92034f2 100644 --- a/lldb/tools/debugserver/source/MacOSX/MachThreadList.cpp +++ b/lldb/tools/debugserver/source/MacOSX/MachThreadList.cpp @@ -252,13 +252,15 @@ MachThreadList::UpdateThreadList(MachProcess *process, bool update, MachThreadLi thread_sp.reset(new MachThread(process, tid)); // Add the new thread regardless of its is user ready state... - if (new_threads) - new_threads->push_back(thread_sp); - // Make sure the thread is ready to be displayed and shown to users // before we add this thread to our list... if (thread_sp->IsUserReady()) + { + if (new_threads) + new_threads->push_back(thread_sp); + currThreads.push_back(thread_sp); + } } } |