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

List of all members.

Public Member Functions

def __init__
def flags_to_string
def owner_to_string
def struct_field_location_img
def struct_field_img
def bounds_img
def type_specific_img
def to_string

Public Attributes

 val

Detailed Description

Pretty-print an objet of type main_type

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


Constructor & Destructor Documentation

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

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


Member Function Documentation

def gdb-gdb.StructMainTypePrettyPrinter.bounds_img (   self)
def gdb-gdb.StructMainTypePrettyPrinter.flags_to_string (   self)
struct main_type contains a series of components that
are one-bit ints whose name start with "flag_".  For instance:
flag_unsigned, flag_stub, etc.  In essence, these components are
really boolean flags, and this method prints a short synthetic
version of the value of all these flags.  For instance, if
flag_unsigned and flag_static are the only components set to 1,
this function will return "unsigned|static".

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

References gdb-gdb.TypeFlagsPrinter.val, gdb-gdb.StructTypePrettyPrinter.val, gdb-gdb.StructMainTypePrettyPrinter.val, frame_arg.val, and watchpoint.val.

Referenced by gdb-gdb.StructMainTypePrettyPrinter.to_string().

def gdb-gdb.StructMainTypePrettyPrinter.owner_to_string (   self)
def gdb-gdb.StructMainTypePrettyPrinter.struct_field_img (   self,
  fieldno 
)
def gdb-gdb.StructMainTypePrettyPrinter.struct_field_location_img (   self,
  field_val 
)
Return an image of the loc component inside the given field
gdb.Value.

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

Referenced by gdb-gdb.StructMainTypePrettyPrinter.struct_field_img().

def gdb-gdb.StructMainTypePrettyPrinter.to_string (   self)
def gdb-gdb.StructMainTypePrettyPrinter.type_specific_img (   self)
Return a string image of the main_type type_specific union.
Only the relevant component of that union is printed (based on
the value of the type_specific_kind field.

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

References gdb-gdb.TypeFlagsPrinter.val, gdb-gdb.StructTypePrettyPrinter.val, gdb-gdb.StructMainTypePrettyPrinter.val, frame_arg.val, and watchpoint.val.

Referenced by gdb-gdb.StructMainTypePrettyPrinter.to_string().


Member Data Documentation

gdb-gdb.StructMainTypePrettyPrinter::val

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