diff options
author | Greg Clayton <gclayton@apple.com> | 2013-04-11 22:23:34 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2013-04-11 22:23:34 +0000 |
commit | 39da3efdd6af58a7fbe81b5039d39348ffb20c07 (patch) | |
tree | d6363c9630340840ec4d971acab71b41198d5126 /lldb | |
parent | 103810544981758eff2244d8406fa899d797f3e2 (diff) | |
download | bcm5719-llvm-39da3efdd6af58a7fbe81b5039d39348ffb20c07.tar.gz bcm5719-llvm-39da3efdd6af58a7fbe81b5039d39348ffb20c07.zip |
Fixed the thread list so it correctly updates after the first core thread exists.
llvm-svn: 179326
Diffstat (limited to 'lldb')
-rw-r--r-- | lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp b/lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp index 226f59071d2..4a57b433099 100644 --- a/lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp +++ b/lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp @@ -453,10 +453,8 @@ ProcessKDP::GetKernelThread(ThreadList &old_thread_list, ThreadList &new_thread_ const lldb::tid_t kernel_tid = 1; ThreadSP thread_sp (old_thread_list.FindThreadByID (kernel_tid, false)); if (!thread_sp) - { thread_sp.reset(new ThreadKDP (*this, kernel_tid)); - new_thread_list.AddThread(thread_sp); - } + new_thread_list.AddThread(thread_sp); return thread_sp; } @@ -471,7 +469,7 @@ ProcessKDP::UpdateThreadList (ThreadList &old_thread_list, ThreadList &new_threa if (log && log->GetMask().Test(KDP_LOG_VERBOSE)) log->Printf ("ProcessKDP::%s (pid = %" PRIu64 ")", __FUNCTION__, GetID()); - // Even though there is a CPU mask, it doesn't mean to can see each CPU + // Even though there is a CPU mask, it doesn't mean we can see each CPU // indivudually, there is really only one. Lets call this thread 1. GetKernelThread (old_thread_list, new_thread_list); |