Change ProcessKDP::UpdateThreadList's call to FindThreadByProtocolID

to not let it update the thread list or else we'll infinite recurse
call back to UpdateThreadList.

llvm-svn: 181106
This commit is contained in:
Jason Molenda 2013-05-04 05:51:02 +00:00
parent 914d31ffd3
commit 513db4d9f4
1 changed files with 1 additions and 1 deletions

View File

@ -477,7 +477,7 @@ ProcessKDP::UpdateThreadList (ThreadList &old_thread_list, ThreadList &new_threa
// 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.
ThreadSP thread_sp (old_thread_list.FindThreadByProtocolID(g_kernel_tid));
ThreadSP thread_sp (old_thread_list.FindThreadByProtocolID(g_kernel_tid, false));
if (!thread_sp)
thread_sp = GetKernelThread ();
new_thread_list.AddThread(thread_sp);