GDB (xrefs)
|
Classes | |
class | TypePrinter |
Functions | |
get_basic_type (type_) | |
has_field (type_, field) | |
make_enum_dict (enum_type) | |
deep_items (type_) | |
_get_some_type_recognizers (result, plist) | |
get_type_recognizers () | |
apply_type_recognizers (recognizers, type_obj) | |
register_type_printer (locus, printer) | |
Utilities for working with gdb.Types.
|
protected |
Definition at line 140 of file types.py.
Referenced by gdb.types.get_type_recognizers(), and gdb.types.TypePrinter.instantiate().
gdb.types.apply_type_recognizers | ( | recognizers, | |
type_obj ) |
gdb.types.deep_items | ( | type_ | ) |
Return an iterator that recursively traverses anonymous fields. Arguments: type_: The type to traverse. It should be one of gdb.TYPE_CODE_STRUCT or gdb.TYPE_CODE_UNION. Returns: an iterator similar to gdb.Type.iteritems(), i.e., it returns pairs of key, value, but for any anonymous struct or union field that field is traversed recursively, depth-first.
Definition at line 96 of file types.py.
References gdb.types.deep_items().
Referenced by gdb.types.deep_items().
gdb.types.get_basic_type | ( | type_ | ) |
Return the "basic" type of a type. Arguments: type_: The type to reduce to its basic type. Returns: type_ with const/volatile is stripped away, and typedefs/references converted to the underlying type.
Definition at line 22 of file types.py.
Referenced by gdb.printing.RegexpCollectionPrettyPrinter.__call__(), and gdb.types.has_field().
gdb.types.get_type_recognizers | ( | ) |
Definition at line 149 of file types.py.
References gdb.types._get_some_type_recognizers(), gdb.current_progspace(), and gdb.objfiles().
gdb.types.has_field | ( | type_, | |
field ) |
Return True if a type has the specified field. Arguments: type_: The type to examine. It must be one of gdb.TYPE_CODE_STRUCT, gdb.TYPE_CODE_UNION. field: The name of the field to look up. Returns: True if the field is present either in type_ or any baseclass. Raises: TypeError: The type is not a struct or union.
Definition at line 45 of file types.py.
References gdb.types.get_basic_type(), and gdb.types.has_field().
Referenced by gdb.types.has_field().
gdb.types.make_enum_dict | ( | enum_type | ) |