Home | History | Annotate | Download | only in gdb

Lines Matching refs:type_

22 def get_basic_type(type_):
26 type_: The type to reduce to its basic type.
29 type_ with const/volatile is stripped away,
33 while (type_.code == gdb.TYPE_CODE_REF or
34 type_.code == gdb.TYPE_CODE_TYPEDEF):
35 if type_.code == gdb.TYPE_CODE_REF:
36 type_ = type_.target()
38 type_ = type_.strip_typedefs()
39 return type_.unqualified()
42 def has_field(type_, field):
46 type_: The type to examine.
51 True if the field is present either in type_ or any baseclass.
57 type_ = get_basic_type(type_)
58 if (type_.code != gdb.TYPE_CODE_STRUCT and
59 type_.code != gdb.TYPE_CODE_UNION):
61 for f in type_.fields():
94 def deep_items (type_):
98 type_: The type to traverse. It should be one of
106 for k, v in type_.iteritems ():