parameters: (name)
docstring: Internal Worker function to return the frame filter
      dictionary, depending on the name supplied as an argument.  If the
      name is not "all", "global" or "progspace", it is assumed to name
      an object-file.
  
      Arguments:
          name: The name of the list, as specified by GDB user commands.
  
      Returns:
          A dictionary object for a single specified dictionary, or a
          list containing all the items for "all"
  
      Raises:
          gdb.GdbError:  A dictionary of that name cannot be found.
docstring_summary: Internal Worker function to return the frame filter
      dictionary, depending on the name supplied as an argument.  If the
      name is not "all", "global" or "progspace", it is assumed to name
      an object-file.
docstring_tokens: Internal Worker function to return the frame filter dictionary depending on the name supplied as an argument . If the name is not all global or progspace it is assumed to name an object - file .
function: def return_list(name):
      """ Internal Worker function to return the frame filter
      dictionary, depending on the name supplied as an argument.  If the
      name is not "all", "global" or "progspace", it is assumed to name
      an object-file.
  
      Arguments:
          name: The name of the list, as specified by GDB user commands.
  
      Returns:
          A dictionary object for a single specified dictionary, or a
          list containing all the items for "all"
  
      Raises:
          gdb.GdbError:  A dictionary of that name cannot be found.
      """
  
      # If all dictionaries are wanted in the case of "all" we
      # cannot return a combined dictionary as keys() may clash in
      # between different dictionaries.  As we just want all the frame
      # filters to enable/disable them all, just return the combined
      # items() as a chained iterator of dictionary values.
      if name == "all":
          glob = gdb.frame_filters.values()
          prog = gdb.current_progspace().frame_filters.values()
          return_iter = itertools.chain(glob, prog)
          for objfile in gdb.objfiles():
              return_iter = itertools.chain(return_iter, objfile.frame_filters.values())
  
          return return_iter
  
      if name == "global":
          return gdb.frame_filters
      else:
          if name == "progspace":
              cp = gdb.current_progspace()
              return cp.frame_filters
          else:
              for objfile in gdb.objfiles():
                  if name == objfile.filename:
                      return objfile.frame_filters
  
      msg = "Cannot find frame-filter dictionary for '" + name + "'"
      raise gdb.GdbError(msg)
function_tokens: def return_list ( name ) : # If all dictionaries are wanted in the case of "all" we # cannot return a combined dictionary as keys() may clash in # between different dictionaries.  As we just want all the frame # filters to enable/disable them all, just return the combined # items() as a chained iterator of dictionary values. if name == "all" : glob = gdb . frame_filters . values ( ) prog = gdb . current_progspace ( ) . frame_filters . values ( ) return_iter = itertools . chain ( glob , prog ) for objfile in gdb . objfiles ( ) : return_iter = itertools . chain ( return_iter , objfile . frame_filters . values ( ) ) return return_iter if name == "global" : return gdb . frame_filters else : if name == "progspace" : cp = gdb . current_progspace ( ) return cp . frame_filters else : for objfile in gdb . objfiles ( ) : if name == objfile . filename : return objfile . frame_filters msg = "Cannot find frame-filter dictionary for '" + name + "'" raise gdb . GdbError ( msg )