[Lldb-commits] [lldb] r181106 - Change ProcessKDP::UpdateThreadList's call to FindThreadByProtocolID

Jason Molenda jmolenda at apple.com
Fri May 3 22:51:02 PDT 2013


Author: jmolenda
Date: Sat May  4 00:51:02 2013
New Revision: 181106

URL: http://llvm.org/viewvc/llvm-project?rev=181106&view=rev
Log:
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.

Modified:
    lldb/trunk/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp

Modified: lldb/trunk/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp?rev=181106&r1=181105&r2=181106&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp (original)
+++ lldb/trunk/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp Sat May  4 00:51:02 2013
@@ -477,7 +477,7 @@ ProcessKDP::UpdateThreadList (ThreadList
     
     // 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);





More information about the lldb-commits mailing list