GDB (API)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
Public Member Functions | Public Attributes
gdb-gdb.TypeFlagsPrinter Class Reference

List of all members.

Public Member Functions

def __init__
def __str__
def init_TYPE_FLAGS

Public Attributes

 val

Detailed Description

A class that prints a decoded form of an instance_flags value.

This class uses a global named TYPE_FLAGS, which is a list of
all defined TypeFlag values.  Using a global allows us to compute
this list only once.

This class relies on a couple of enumeration types being defined.
If not, then printing of the instance_flag is going to be degraded,
but it's not a fatal error.

Definition at line 52 of file gdb-gdb.py.


Constructor & Destructor Documentation

def gdb-gdb.TypeFlagsPrinter.__init__ (   self,
  val 
)

Definition at line 63 of file gdb-gdb.py.


Member Function Documentation

def gdb-gdb.TypeFlagsPrinter.__str__ (   self)

Definition at line 65 of file gdb-gdb.py.

def gdb-gdb.TypeFlagsPrinter.init_TYPE_FLAGS (   self)
Initialize the TYPE_FLAGS global as a list of TypeFlag objects.
This operation requires the search of a couple of enumeration types.
If not found, a warning is printed on stdout, and TYPE_FLAGS is
set to the empty list.

The resulting list is sorted by increasing value, to facilitate
printing of the list of flags used in an instance_flags value.

Definition at line 77 of file gdb-gdb.py.


Member Data Documentation

gdb-gdb.TypeFlagsPrinter::val

Definition at line 63 of file gdb-gdb.py.


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