GDB (xrefs)
Public Member Functions | Public Attributes | List of all members
gdb-gdb.StructMainTypePrettyPrinter Class Reference

Public Member Functions

def __init__ (self, val)
 
def flags_to_string (self)
 
def owner_to_string (self)
 
def struct_field_location_img (self, field_val)
 
def struct_field_img (self, fieldno)
 
def bounds_img (self)
 
def type_specific_img (self)
 
def to_string (self)
 

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.printer.bound_registers.MpxBound128Printer.val, gdb-gdb.TypeFlagsPrinter.val, gdb-gdb.StructTypePrettyPrinter.val, gdb-gdb.StructMainTypePrettyPrinter.val, gdb.FrameDecorator.SymValueWrapper.val, gdb.printing._EnumInstance.val, YYSTYPE.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.printer.bound_registers.MpxBound128Printer.val, gdb-gdb.TypeFlagsPrinter.val, gdb-gdb.StructTypePrettyPrinter.val, gdb-gdb.StructMainTypePrettyPrinter.val, gdb.FrameDecorator.SymValueWrapper.val, gdb.printing._EnumInstance.val, YYSTYPE.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: