Classes | |
class | InfoPrettyPrinter |
class | EnablePrettyPrinter |
class | DisablePrettyPrinter |
Functions | |
def | parse_printer_regexps |
def | printer_enabled_p |
def | count_enabled_printers |
def | count_all_enabled_printers |
def | pluralize |
def | show_pretty_printer_enabled_summary |
def | do_enable_pretty_printer_1 |
def | do_enable_pretty_printer |
def | register_pretty_printer_commands |
Return a 2-tuble of the enabled state and total number of all printers. This includes subprinters.
Definition at line 186 of file pretty_printers.py.
def gdb::command::pretty_printers::count_enabled_printers | ( | pretty_printers | ) |
Return a 2-tuple of number of enabled and total printers.
Definition at line 167 of file pretty_printers.py.
def gdb::command::pretty_printers::do_enable_pretty_printer | ( | arg, | |
flag | |||
) |
Internal worker for enabling/disabling pretty-printers.
Definition at line 279 of file pretty_printers.py.
def gdb::command::pretty_printers::do_enable_pretty_printer_1 | ( | pretty_printers, | |
name_re, | |||
subname_re, | |||
flag | |||
) |
Worker for enabling/disabling pretty-printers. Arguments: pretty_printers: list of pretty-printers name_re: regular-expression object to select printers subname_re: regular expression object to select subprinters or None if all are affected flag: True for Enable, False for Disable Returns: The number of printers affected. This is just for informational purposes for the user.
Definition at line 221 of file pretty_printers.py.
Internal utility to parse a pretty-printer command argv. Arguments: arg: The arguments to the command. The format is: [object-regexp [name-regexp]]. Individual printers in a collection are named as printer-name;subprinter-name. Returns: The result is a 3-tuple of compiled regular expressions, except that the resulting compiled subprinter regexp is None if not provided. Raises: SyntaxError: an error processing ARG
Definition at line 24 of file pretty_printers.py.
def gdb::command::pretty_printers::pluralize | ( | text, | |
n, | |||
suffix = "s" |
|||
) |
Return TEXT pluralized if N != 1.
Definition at line 205 of file pretty_printers.py.
def gdb::command::pretty_printers::printer_enabled_p | ( | printer | ) |
Internal utility to see if printer (or subprinter) is enabled.
Definition at line 76 of file pretty_printers.py.
Call from a top level script to install the pretty-printer commands.
Definition at line 362 of file pretty_printers.py.
Print the number of printers enabled/disabled. We count subprinters individually.
Definition at line 213 of file pretty_printers.py.