Fixed the get_process_thread_list function to correctly return a list of all threads in a process.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@159288 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/scripts/Python/interface/SBProcess.i b/scripts/Python/interface/SBProcess.i
index 049d2a1..744ecca 100644
--- a/scripts/Python/interface/SBProcess.i
+++ b/scripts/Python/interface/SBProcess.i
@@ -341,7 +341,7 @@
             '''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(GetThreadAtIndex(idx))
+                threads.append(self.threads_access(idx))
             return threads
         
         __swig_getmethods__["threads"] = get_process_thread_list