Classes | |
| class | TypePrinter |
Functions | |
| def | get_basic_type |
| def | has_field |
| def | make_enum_dict |
| def | deep_items |
| def | get_type_recognizers |
| def | apply_type_recognizers |
| def | register_type_printer |
| def gdb::types::apply_type_recognizers | ( | recognizers, | |
| type_obj | |||
| ) |
| def 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.
| def gdb::types::get_basic_type | ( | type_ | ) |
| def gdb::types::get_type_recognizers | ( | ) |
| def 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.
| def gdb::types::make_enum_dict | ( | enum_type | ) |
| def gdb::types::register_type_printer | ( | locus, | |
| printer | |||
| ) |
1.7.6.1