diff options
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); + } } } |