GDB (API)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
Public Member Functions | Public Attributes
gdb.printing.PrettyPrinter Class Reference
Inheritance diagram for gdb.printing.PrettyPrinter:
gdb.printing.FlagEnumerationPrinter gdb.printing.FlagEnumerationPrinter gdb.printing.RegexpCollectionPrettyPrinter gdb.printing.RegexpCollectionPrettyPrinter

List of all members.

Public Member Functions

def __init__
def __call__
def __init__
def __call__

Public Attributes

 name
 subprinters
 enabled

Detailed Description

A basic pretty-printer.

Attributes:
    name: A unique string among all printers for the context in which
        it is defined (objfile, progspace, or global(gdb)), and should
        meaningfully describe what can be pretty-printed.
        E.g., "StringPiece" or "protobufs".
    subprinters: An iterable object with each element having a `name'
        attribute, and, potentially, "enabled" attribute.
        Or this is None if there are no subprinters.
    enabled: A boolean indicating if the printer is enabled.

Subprinters are for situations where "one" pretty-printer is actually a
collection of several printers.  E.g., The libstdc++ pretty-printer has
a pretty-printer for each of several different types, based on regexps.

Definition at line 29 of file printing.py.


Constructor & Destructor Documentation

def gdb.printing.PrettyPrinter.__init__ (   self,
  name,
  subprinters = None 
)

Definition at line 51 of file printing.py.

def gdb.printing.PrettyPrinter.__init__ (   self,
  name,
  subprinters = None 
)

Definition at line 51 of file printing.py.


Member Function Documentation

def gdb.printing.PrettyPrinter.__call__ (   self,
  val 
)
def gdb.printing.PrettyPrinter.__call__ (   self,
  val 
)

Member Data Documentation

Definition at line 51 of file printing.py.

Definition at line 51 of file printing.py.

Definition at line 51 of file printing.py.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines