[Lldb-commits] [lldb] r165421 - /lldb/trunk/scripts/Python/interface/SBProcess.i

Enrico Granata egranata at apple.com
Mon Oct 8 12:06:11 PDT 2012


Author: enrico
Date: Mon Oct  8 14:06:11 2012
New Revision: 165421

URL: http://llvm.org/viewvc/llvm-project?rev=165421&view=rev
Log:
<rdar://problem/12200505> Fixing a logical error in SBProcess, where the get_process_thread_list function was creating invalid threads_access instances, and hence failing to correctly fill in the list

Modified:
    lldb/trunk/scripts/Python/interface/SBProcess.i

Modified: lldb/trunk/scripts/Python/interface/SBProcess.i
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/Python/interface/SBProcess.i?rev=165421&r1=165420&r2=165421&view=diff
==============================================================================
--- lldb/trunk/scripts/Python/interface/SBProcess.i (original)
+++ lldb/trunk/scripts/Python/interface/SBProcess.i Mon Oct  8 14:06:11 2012
@@ -364,8 +364,9 @@
         def get_process_thread_list(self):
             '''An accessor function that returns a list() that contains all threads in a lldb.SBProcess object.'''
             threads = []
-            for idx in range(self.GetNumThreads()):
-                threads.append(self.threads_access(idx))
+            accessor = self.get_threads_access_object()
+            for idx in range(len(accessor)):
+                threads.append(accessor[idx])
             return threads
         
         __swig_getmethods__["threads"] = get_process_thread_list





More information about the lldb-commits mailing list