GDB (xrefs)
Public Member Functions | Public Attributes | List of all members
gdb.types.TypePrinter Class Reference
Inheritance diagram for gdb.types.TypePrinter:

Public Member Functions

def __init__ (self, name)
 
def instantiate (self)
 
def __init__ (self, name)
 
def instantiate (self)
 

Public Attributes

 name
 
 enabled
 

Detailed Description

The base class for type printers.

Instances of this type can be used to substitute type names during
'ptype'.

A type printer must have at least 'name' and 'enabled' attributes,
and supply an 'instantiate' method.

The 'instantiate' method must either return None, or return an
object which has a 'recognize' method.  This method must accept a
gdb.Type argument and either return None, meaning that the type
was not recognized, or a string naming the type.

Definition at line 113 of file types.py.

Constructor & Destructor Documentation

def gdb.types.TypePrinter.__init__ (   self,
  name 
)

Definition at line 128 of file types.py.

Referenced by gdb.types.TypePrinter.__init__().

def gdb.types.TypePrinter.__init__ (   self,
  name 
)

Member Function Documentation

def gdb.types.TypePrinter.instantiate (   self)

Definition at line 132 of file types.py.

Referenced by gdb.types.TypePrinter.instantiate().

def gdb.types.TypePrinter.instantiate (   self)

Member Data Documentation

gdb.types.TypePrinter.enabled
gdb.types.TypePrinter.name

The documentation for this class was generated from the following file: