()
return (enabled_count, total_count)
Return a 2-tuble of the enabled state and total number of all printers.
    This includes subprinters.
Return a 2-tuble of the enabled state and total number of all printers.
    This includes subprinters.
Return a 2 - tuble of the enabled state and total number of all printers . This includes subprinters .
def count_all_enabled_printers():
    """Return a 2-tuble of the enabled state and total number of all printers.
    This includes subprinters.
    """
    enabled_count = 0
    total_count = 0
    (t_enabled, t_total) = count_enabled_printers(gdb.pretty_printers)
    enabled_count += t_enabled
    total_count += t_total
    (t_enabled, t_total) = count_enabled_printers(gdb.current_progspace().pretty_printers)
    enabled_count += t_enabled
    total_count += t_total
    for objfile in gdb.objfiles():
        (t_enabled, t_total) = count_enabled_printers(objfile.pretty_printers)
        enabled_count += t_enabled
        total_count += t_total
    return (enabled_count, total_count)
def count_all_enabled_printers ( ) : enabled_count = 0 total_count = 0 ( t_enabled , t_total ) = count_enabled_printers ( gdb . pretty_printers ) enabled_count += t_enabled total_count += t_total ( t_enabled , t_total ) = count_enabled_printers ( gdb . current_progspace ( ) . pretty_printers ) enabled_count += t_enabled total_count += t_total for objfile in gdb . objfiles ( ) : ( t_enabled , t_total ) = count_enabled_printers ( objfile . pretty_printers ) enabled_count += t_enabled total_count += t_total return ( enabled_count , total_count )