GDB (xrefs)
|
Public Member Functions | |
__init__ (self, val) | |
flags_to_string (self) | |
owner_to_string (self) | |
struct_field_location_img (self, field_val) | |
struct_field_img (self, fieldno) | |
bound_img (self, bound_name) | |
bounds_img (self) | |
type_specific_img (self) | |
to_string (self) | |
Public Attributes | |
val | |
Pretty-print an objet of type main_type
Definition at line 123 of file gdb-gdb.py.
gdb-gdb.StructMainTypePrettyPrinter.__init__ | ( | self, | |
val ) |
Definition at line 126 of file gdb-gdb.py.
gdb-gdb.StructMainTypePrettyPrinter.bound_img | ( | self, | |
bound_name ) |
Return an image of the given main_type's bound.
Definition at line 185 of file gdb-gdb.py.
References gdb-gdb.TypeFlagsPrinter.val, gdb-gdb.StructTypePrettyPrinter.val, gdb-gdb.StructMainTypePrettyPrinter.val, ada_exp_YYSTYPE.val, watchpoint.val, c_exp_YYSTYPE.val, literal_def.val, d_exp_YYSTYPE.val, f_exp_YYSTYPE.val, frame_arg.val, go_exp_YYSTYPE.val, m2_exp_YYSTYPE.val, lval_closure.val, p_exp_YYSTYPE.val, typed_val_int.val, typed_val_float.val, mpfr_float_ops::gdb_mpfr.val, signed_field_s.val, and internalvar_data.val.
Referenced by gdb-gdb.StructMainTypePrettyPrinter.bounds_img().
gdb-gdb.StructMainTypePrettyPrinter.bounds_img | ( | self | ) |
Return an image of the main_type bounds.
Definition at line 200 of file gdb-gdb.py.
References gdb-gdb.StructMainTypePrettyPrinter.bound_img(), gdb-gdb.TypeFlagsPrinter.val, gdb-gdb.StructTypePrettyPrinter.val, gdb-gdb.StructMainTypePrettyPrinter.val, ada_exp_YYSTYPE.val, watchpoint.val, c_exp_YYSTYPE.val, literal_def.val, d_exp_YYSTYPE.val, f_exp_YYSTYPE.val, frame_arg.val, go_exp_YYSTYPE.val, m2_exp_YYSTYPE.val, lval_closure.val, p_exp_YYSTYPE.val, typed_val_int.val, typed_val_float.val, mpfr_float_ops::gdb_mpfr.val, signed_field_s.val, and internalvar_data.val.
Referenced by gdb-gdb.StructMainTypePrettyPrinter.to_string().
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 129 of file gdb-gdb.py.
References type.fields(), gdb-gdb.TypeFlagsPrinter.val, gdb-gdb.StructTypePrettyPrinter.val, gdb-gdb.StructMainTypePrettyPrinter.val, ada_exp_YYSTYPE.val, watchpoint.val, c_exp_YYSTYPE.val, literal_def.val, d_exp_YYSTYPE.val, f_exp_YYSTYPE.val, frame_arg.val, go_exp_YYSTYPE.val, m2_exp_YYSTYPE.val, lval_closure.val, p_exp_YYSTYPE.val, typed_val_int.val, typed_val_float.val, mpfr_float_ops::gdb_mpfr.val, signed_field_s.val, and internalvar_data.val.
Referenced by gdb-gdb.StructMainTypePrettyPrinter.to_string().
gdb-gdb.StructMainTypePrettyPrinter.owner_to_string | ( | self | ) |
Return an image of component "owner".
Definition at line 145 of file gdb-gdb.py.
References gdb-gdb.TypeFlagsPrinter.val, gdb-gdb.StructTypePrettyPrinter.val, gdb-gdb.StructMainTypePrettyPrinter.val, ada_exp_YYSTYPE.val, watchpoint.val, c_exp_YYSTYPE.val, literal_def.val, d_exp_YYSTYPE.val, f_exp_YYSTYPE.val, frame_arg.val, go_exp_YYSTYPE.val, m2_exp_YYSTYPE.val, lval_closure.val, p_exp_YYSTYPE.val, typed_val_int.val, typed_val_float.val, mpfr_float_ops::gdb_mpfr.val, signed_field_s.val, and internalvar_data.val.
Referenced by gdb-gdb.StructMainTypePrettyPrinter.to_string().
gdb-gdb.StructMainTypePrettyPrinter.struct_field_img | ( | self, | |
fieldno ) |
Return an image of the main_type field number FIELDNO.
Definition at line 171 of file gdb-gdb.py.
References gdb-gdb.StructMainTypePrettyPrinter.struct_field_location_img(), gdb-gdb.TypeFlagsPrinter.val, gdb-gdb.StructTypePrettyPrinter.val, gdb-gdb.StructMainTypePrettyPrinter.val, ada_exp_YYSTYPE.val, watchpoint.val, c_exp_YYSTYPE.val, literal_def.val, d_exp_YYSTYPE.val, f_exp_YYSTYPE.val, frame_arg.val, go_exp_YYSTYPE.val, m2_exp_YYSTYPE.val, lval_closure.val, p_exp_YYSTYPE.val, typed_val_int.val, typed_val_float.val, mpfr_float_ops::gdb_mpfr.val, signed_field_s.val, and internalvar_data.val.
Referenced by gdb-gdb.StructMainTypePrettyPrinter.to_string().
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 152 of file gdb-gdb.py.
Referenced by gdb-gdb.StructMainTypePrettyPrinter.struct_field_img().
gdb-gdb.StructMainTypePrettyPrinter.to_string | ( | self | ) |
Return a pretty-printed image of our main_type.
Definition at line 256 of file gdb-gdb.py.
References gdb-gdb.StructMainTypePrettyPrinter.bounds_img(), gdb-gdb.StructMainTypePrettyPrinter.flags_to_string(), gdb-gdb.StructMainTypePrettyPrinter.owner_to_string(), gdb-gdb.StructMainTypePrettyPrinter.struct_field_img(), gdb-gdb.StructMainTypePrettyPrinter.type_specific_img(), gdb-gdb.TypeFlagsPrinter.val, gdb-gdb.StructTypePrettyPrinter.val, gdb-gdb.StructMainTypePrettyPrinter.val, ada_exp_YYSTYPE.val, watchpoint.val, c_exp_YYSTYPE.val, literal_def.val, d_exp_YYSTYPE.val, f_exp_YYSTYPE.val, frame_arg.val, go_exp_YYSTYPE.val, m2_exp_YYSTYPE.val, lval_closure.val, p_exp_YYSTYPE.val, typed_val_int.val, typed_val_float.val, mpfr_float_ops::gdb_mpfr.val, signed_field_s.val, and internalvar_data.val.
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 211 of file gdb-gdb.py.
References gdb-gdb.TypeFlagsPrinter.val, gdb-gdb.StructTypePrettyPrinter.val, gdb-gdb.StructMainTypePrettyPrinter.val, ada_exp_YYSTYPE.val, watchpoint.val, c_exp_YYSTYPE.val, literal_def.val, d_exp_YYSTYPE.val, f_exp_YYSTYPE.val, frame_arg.val, go_exp_YYSTYPE.val, m2_exp_YYSTYPE.val, lval_closure.val, p_exp_YYSTYPE.val, typed_val_int.val, typed_val_float.val, mpfr_float_ops::gdb_mpfr.val, signed_field_s.val, and internalvar_data.val.
Referenced by gdb-gdb.StructMainTypePrettyPrinter.to_string().
gdb-gdb.StructMainTypePrettyPrinter.val |
Definition at line 127 of file gdb-gdb.py.
Referenced by gdb-gdb.TypeFlagsPrinter.__str__(), gdb-gdb.StructMainTypePrettyPrinter.bound_img(), gdb-gdb.StructMainTypePrettyPrinter.bounds_img(), gdb-gdb.StructMainTypePrettyPrinter.flags_to_string(), gdb-gdb.StructMainTypePrettyPrinter.owner_to_string(), gdb-gdb.StructMainTypePrettyPrinter.struct_field_img(), gdb-gdb.StructTypePrettyPrinter.to_string(), gdb-gdb.StructMainTypePrettyPrinter.to_string(), and gdb-gdb.StructMainTypePrettyPrinter.type_specific_img().