23 """Return the "basic" type of a type.
26 type_: The type to reduce to its basic type.
29 type_ with const/volatile is stripped away,
30 and typedefs/references converted to the underlying type.
34 type_.code == gdb.TYPE_CODE_REF
35 or type_.code == gdb.TYPE_CODE_RVALUE_REF
36 or type_.code == gdb.TYPE_CODE_TYPEDEF
38 if type_.code == gdb.TYPE_CODE_REF
or type_.code == gdb.TYPE_CODE_RVALUE_REF:
39 type_ = type_.target()
41 type_ = type_.strip_typedefs()
42 return type_.unqualified()