parameters: (process,
                           breakpoint_threads=None,
                           crashed_threads=None,
                           watchpoint_threads=None,
                           signal_threads=None,
                           exiting_threads=None,
                           other_threads=None)
docstring: Fills array *_threads with threads stopped for the corresponding stop
          reason.
docstring_summary: Fills array *_threads with threads stopped for the corresponding stop
          reason.
docstring_tokens: Fills array * _threads with threads stopped for the corresponding stop reason .
function: def sort_stopped_threads(process,
                           breakpoint_threads=None,
                           crashed_threads=None,
                           watchpoint_threads=None,
                           signal_threads=None,
                           exiting_threads=None,
                           other_threads=None):
      """ Fills array *_threads with threads stopped for the corresponding stop
          reason.
      """
      for lst in [breakpoint_threads,
                  watchpoint_threads,
                  signal_threads,
                  exiting_threads,
                  other_threads]:
          if lst is not None:
              lst[:] = []
  
      for thread in process:
          dispatched = False
          for (reason, list) in [(lldb.eStopReasonBreakpoint, breakpoint_threads),
                                 (lldb.eStopReasonException, crashed_threads),
                                 (lldb.eStopReasonWatchpoint, watchpoint_threads),
                                 (lldb.eStopReasonSignal, signal_threads),
                                 (lldb.eStopReasonThreadExiting, exiting_threads),
                                 (None, other_threads)]:
              if not dispatched and list is not None:
                  if thread.GetStopReason() == reason or reason is None:
                      list.append(thread)
                      dispatched = True
function_tokens: def sort_stopped_threads ( process , breakpoint_threads = None , crashed_threads = None , watchpoint_threads = None , signal_threads = None , exiting_threads = None , other_threads = None ) : for lst in [ breakpoint_threads , watchpoint_threads , signal_threads , exiting_threads , other_threads ] : if lst is not None : lst [ : ] = [ ] for thread in process : dispatched = False for ( reason , list ) in [ ( lldb . eStopReasonBreakpoint , breakpoint_threads ) , ( lldb . eStopReasonException , crashed_threads ) , ( lldb . eStopReasonWatchpoint , watchpoint_threads ) , ( lldb . eStopReasonSignal , signal_threads ) , ( lldb . eStopReasonThreadExiting , exiting_threads ) , ( None , other_threads ) ] : if not dispatched and list is not None : if thread . GetStopReason ( ) == reason or reason is None : list . append ( thread ) dispatched = True