23.2.4.1 gdb.printing
This module provides a collection of utilities for working with
pretty-printers.
PrettyPrinter (
name,
subprinters=None)
- This class specifies the API that makes ‘info pretty-printer’,
‘enable pretty-printer’ and ‘disable pretty-printer’ work.
Pretty-printers should generally inherit from this class.
SubPrettyPrinter (
name)
- For printers that handle multiple types, this class specifies the
corresponding API for the subprinters.
RegexpCollectionPrettyPrinter (
name)
- Utility class for handling multiple printers, all recognized via
regular expressions.
See Writing a Pretty-Printer, for an example.
register_pretty_printer (
obj,
printer)
- Register printer with the pretty-printer list of obj.