parameters: (self, arg)
docstring: tl - show the threads being debugged
          threadlist - show the threads being debugged
docstring_summary: tl - show the threads being debugged
          threadlist - show the threads being debugged
docstring_tokens: tl - show the threads being debugged threadlist - show the threads being debugged
function: def do_threadlist(self, arg):
          """
          tl - show the threads being debugged
          threadlist - show the threads being debugged
          """
          if arg:
              raise CmdError("too many arguments")
          if self.cmdprefix:
              process = self.get_process_from_prefix()
              for thread in process.iter_threads():
                  tid  = thread.get_tid()
                  name = thread.get_name()
                  print("%-12d %s" % (tid, name))
          else:
              system   = self.debug.system
              pid_list = self.debug.get_debugee_pids()
              if pid_list:
                  print("Thread ID    Thread name")
                  for pid in pid_list:
                      process = system.get_process(pid)
                      for thread in process.iter_threads():
                          tid  = thread.get_tid()
                          name = thread.get_name()
                          print("%-12d %s" % (tid, name))
function_tokens: def do_threadlist ( self , arg ) : if arg : raise CmdError ( "too many arguments" ) if self . cmdprefix : process = self . get_process_from_prefix ( ) for thread in process . iter_threads ( ) : tid = thread . get_tid ( ) name = thread . get_name ( ) print ( "%-12d %s" % ( tid , name ) ) else : system = self . debug . system pid_list = self . debug . get_debugee_pids ( ) if pid_list : print ( "Thread ID    Thread name" ) for pid in pid_list : process = system . get_process ( pid ) for thread in process . iter_threads ( ) : tid = thread . get_tid ( ) name = thread . get_name ( ) print ( "%-12d %s" % ( tid , name ) )