295 def __dumpThreadList(self): |
295 def __dumpThreadList(self): |
296 """ |
296 """ |
297 Public method to send the list of threads. |
297 Public method to send the list of threads. |
298 """ |
298 """ |
299 threadList = [] |
299 threadList = [] |
300 if self.threads: # indication for the threaded debugger |
300 if self.threads and self.currentThread: # indication for the threaded debugger |
301 currentId = self.currentThread.get_ident() |
301 currentId = self.currentThread.get_ident() |
302 for t in self.threads.values(): |
302 for t in self.threads.values(): |
303 d = {} |
303 d = {} |
304 d["id"] = t.get_ident() |
304 d["id"] = t.get_ident() |
305 d["name"] = t.get_name() |
305 d["name"] = t.get_name() |