parameters: (command_tuple, flag)
docstring: Worker for enabling/disabling frame_filters.
  
      Arguments:
          command_type: A tuple with the first element being the
                        frame filter dictionary, and the second being
                        the frame filter name.
          flag: True for Enable, False for Disable.
docstring_summary: Worker for enabling/disabling frame_filters.
docstring_tokens: Worker for enabling / disabling frame_filters .
function: def _do_enable_frame_filter(command_tuple, flag):
      """Worker for enabling/disabling frame_filters.
  
      Arguments:
          command_type: A tuple with the first element being the
                        frame filter dictionary, and the second being
                        the frame filter name.
          flag: True for Enable, False for Disable.
      """
  
      list_op = command_tuple[0]
      op_list = gdb.frames.return_list(list_op)
  
      if list_op == "all":
          for item in op_list:
              gdb.frames.set_enabled(item, flag)
      else:
          frame_filter = command_tuple[1]
          try:
              ff = op_list[frame_filter]
          except KeyError:
              msg = "frame-filter '" + str(name) + "' not found."
              raise gdb.GdbError(msg)
  
          gdb.frames.set_enabled(ff, flag)
function_tokens: def _do_enable_frame_filter ( command_tuple , flag ) : list_op = command_tuple [ 0 ] op_list = gdb . frames . return_list ( list_op ) if list_op == "all" : for item in op_list : gdb . frames . set_enabled ( item , flag ) else : frame_filter = command_tuple [ 1 ] try : ff = op_list [ frame_filter ] except KeyError : msg = "frame-filter '" + str ( name ) + "' not found." raise gdb . GdbError ( msg ) gdb . frames . set_enabled ( ff , flag )