GDB (xrefs)
Classes | Macros | Enumerations | Functions | Variables
/tmp/gdb-8.1/gdb/gdbtypes.h File Reference
#include "hashtab.h"
#include "common/offset-type.h"
#include "common/enum-flags.h"

Go to the source code of this file.

Classes

union  dynamic_prop_data
 
struct  dynamic_prop
 
struct  dynamic_prop_list
 
union  type_owner
 
union  field_location
 
struct  field
 
struct  range_bounds
 
union  type_specific
 
struct  main_type
 
struct  type
 
struct  fn_fieldlist
 
struct  fn_field
 
struct  decl_field
 
struct  cplus_struct_type
 
struct  rank
 
struct  badness_vector
 
struct  gnat_aux_type
 
struct  func_type
 
struct  call_site_target
 
union  call_site_parameter_u
 
struct  call_site_parameter
 
struct  call_site
 
struct  builtin_type
 
struct  objfile_type
 

Macros

#define B_SET(a, x)   ((a)[(x)>>3] |= (1 << ((x)&7)))
 
#define B_CLR(a, x)   ((a)[(x)>>3] &= ~(1 << ((x)&7)))
 
#define B_TST(a, x)   ((a)[(x)>>3] & (1 << ((x)&7)))
 
#define B_TYPE   unsigned char
 
#define B_BYTES(x)   ( 1 + ((x)>>3) )
 
#define B_CLRALL(a, x)   memset ((a), 0, B_BYTES(x))
 
#define TYPE_UNSIGNED(t)   (TYPE_MAIN_TYPE (t)->flag_unsigned)
 
#define TYPE_NOSIGN(t)   (TYPE_MAIN_TYPE (t)->flag_nosign)
 
#define TYPE_STUB(t)   (TYPE_MAIN_TYPE (t)->flag_stub)
 
#define TYPE_TARGET_STUB(t)   (TYPE_MAIN_TYPE (t)->flag_target_stub)
 
#define TYPE_PROTOTYPED(t)   (TYPE_MAIN_TYPE (t)->flag_prototyped)
 
#define TYPE_INCOMPLETE(t)   (TYPE_MAIN_TYPE (t)->flag_incomplete)
 
#define TYPE_VARARGS(t)   (TYPE_MAIN_TYPE (t)->flag_varargs)
 
#define TYPE_VECTOR(t)   (TYPE_MAIN_TYPE (t)->flag_vector)
 
#define TYPE_FIXED_INSTANCE(t)   (TYPE_MAIN_TYPE (t)->flag_fixed_instance)
 
#define TYPE_STUB_SUPPORTED(t)   (TYPE_MAIN_TYPE (t)->flag_stub_supported)
 
#define TYPE_NOTTEXT(t)   (TYPE_INSTANCE_FLAGS (t) & TYPE_INSTANCE_FLAG_NOTTEXT)
 
#define TYPE_GNU_IFUNC(t)   (TYPE_MAIN_TYPE (t)->flag_gnu_ifunc)
 
#define TYPE_OBJFILE_OWNED(t)   (TYPE_MAIN_TYPE (t)->flag_objfile_owned)
 
#define TYPE_OWNER(t)   TYPE_MAIN_TYPE(t)->owner
 
#define TYPE_OBJFILE(t)   (TYPE_OBJFILE_OWNED(t)? TYPE_OWNER(t).objfile : NULL)
 
#define TYPE_DECLARED_CLASS(t)   (TYPE_MAIN_TYPE (t)->flag_declared_class)
 
#define TYPE_FLAG_ENUM(t)   (TYPE_MAIN_TYPE (t)->flag_flag_enum)
 
#define TYPE_CONST(t)   ((TYPE_INSTANCE_FLAGS (t) & TYPE_INSTANCE_FLAG_CONST) != 0)
 
#define TYPE_VOLATILE(t)   ((TYPE_INSTANCE_FLAGS (t) & TYPE_INSTANCE_FLAG_VOLATILE) != 0)
 
#define TYPE_RESTRICT(t)   ((TYPE_INSTANCE_FLAGS (t) & TYPE_INSTANCE_FLAG_RESTRICT) != 0)
 
#define TYPE_ATOMIC(t)   ((TYPE_INSTANCE_FLAGS (t) & TYPE_INSTANCE_FLAG_ATOMIC) != 0)
 
#define TYPE_IS_REFERENCE(t)   (TYPE_CODE (t) == TYPE_CODE_REF || TYPE_CODE (t) == TYPE_CODE_RVALUE_REF)
 
#define TYPE_CODE_SPACE(t)   ((TYPE_INSTANCE_FLAGS (t) & TYPE_INSTANCE_FLAG_CODE_SPACE) != 0)
 
#define TYPE_DATA_SPACE(t)   ((TYPE_INSTANCE_FLAGS (t) & TYPE_INSTANCE_FLAG_DATA_SPACE) != 0)
 
#define TYPE_ADDRESS_CLASS_1(t)
 
#define TYPE_ADDRESS_CLASS_2(t)
 
#define TYPE_INSTANCE_FLAG_ADDRESS_CLASS_ALL   (TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1 | TYPE_INSTANCE_FLAG_ADDRESS_CLASS_2)
 
#define TYPE_ADDRESS_CLASS_ALL(t)
 
#define NULL_TYPE   ((struct type *) 0)
 
#define VOFFSET_STATIC   1
 
#define INIT_CPLUS_SPECIFIC(type)
 
#define ALLOCATE_CPLUS_STRUCT_TYPE(type)   allocate_cplus_struct_type (type)
 
#define HAVE_CPLUS_STRUCT(type)
 
#define INIT_GNAT_SPECIFIC(type)
 
#define ALLOCATE_GNAT_AUX_TYPE(type)   allocate_gnat_aux_type (type)
 
#define HAVE_GNAT_AUX_INFO(type)   (TYPE_SPECIFIC_FIELD (type) == TYPE_SPECIFIC_GNAT_STUFF)
 
#define INIT_FUNC_SPECIFIC(type)
 
#define TYPE_INSTANCE_FLAGS(thistype)   (thistype)->instance_flags
 
#define TYPE_MAIN_TYPE(thistype)   (thistype)->main_type
 
#define TYPE_NAME(thistype)   TYPE_MAIN_TYPE(thistype)->name
 
#define TYPE_TAG_NAME(type)   TYPE_MAIN_TYPE(type)->tag_name
 
#define TYPE_TARGET_TYPE(thistype)   TYPE_MAIN_TYPE(thistype)->target_type
 
#define TYPE_POINTER_TYPE(thistype)   (thistype)->pointer_type
 
#define TYPE_REFERENCE_TYPE(thistype)   (thistype)->reference_type
 
#define TYPE_RVALUE_REFERENCE_TYPE(thistype)   (thistype)->rvalue_reference_type
 
#define TYPE_CHAIN(thistype)   (thistype)->chain
 
#define TYPE_LENGTH(thistype)   (thistype)->length
 
#define TYPE_CODE(thistype)   TYPE_MAIN_TYPE(thistype)->code
 
#define TYPE_NFIELDS(thistype)   TYPE_MAIN_TYPE(thistype)->nfields
 
#define TYPE_FIELDS(thistype)   TYPE_MAIN_TYPE(thistype)->flds_bnds.fields
 
#define TYPE_INDEX_TYPE(type)   TYPE_FIELD_TYPE (type, 0)
 
#define TYPE_RANGE_DATA(thistype)   TYPE_MAIN_TYPE(thistype)->flds_bnds.bounds
 
#define TYPE_LOW_BOUND(range_type)   TYPE_RANGE_DATA(range_type)->low.data.const_val
 
#define TYPE_HIGH_BOUND(range_type)   TYPE_RANGE_DATA(range_type)->high.data.const_val
 
#define TYPE_LOW_BOUND_UNDEFINED(range_type)   (TYPE_RANGE_DATA(range_type)->low.kind == PROP_UNDEFINED)
 
#define TYPE_HIGH_BOUND_UNDEFINED(range_type)   (TYPE_RANGE_DATA(range_type)->high.kind == PROP_UNDEFINED)
 
#define TYPE_HIGH_BOUND_KIND(range_type)   TYPE_RANGE_DATA(range_type)->high.kind
 
#define TYPE_LOW_BOUND_KIND(range_type)   TYPE_RANGE_DATA(range_type)->low.kind
 
#define TYPE_DATA_LOCATION(thistype)   get_dyn_prop (DYN_PROP_DATA_LOCATION, thistype)
 
#define TYPE_DATA_LOCATION_BATON(thistype)   TYPE_DATA_LOCATION (thistype)->data.baton
 
#define TYPE_DATA_LOCATION_ADDR(thistype)   TYPE_DATA_LOCATION (thistype)->data.const_val
 
#define TYPE_DATA_LOCATION_KIND(thistype)   TYPE_DATA_LOCATION (thistype)->kind
 
#define TYPE_ALLOCATED_PROP(thistype)   get_dyn_prop (DYN_PROP_ALLOCATED, thistype)
 
#define TYPE_ASSOCIATED_PROP(thistype)   get_dyn_prop (DYN_PROP_ASSOCIATED, thistype)
 
#define TYPE_DYN_PROP_LIST(thistype)   TYPE_MAIN_TYPE(thistype)->dyn_prop_list
 
#define TYPE_DYN_PROP_BATON(dynprop)   dynprop->data.baton
 
#define TYPE_DYN_PROP_ADDR(dynprop)   dynprop->data.const_val
 
#define TYPE_DYN_PROP_KIND(dynprop)   dynprop->kind
 
#define TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED(arraytype)   TYPE_HIGH_BOUND_UNDEFINED(TYPE_INDEX_TYPE(arraytype))
 
#define TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED(arraytype)   TYPE_LOW_BOUND_UNDEFINED(TYPE_INDEX_TYPE(arraytype))
 
#define TYPE_ARRAY_UPPER_BOUND_VALUE(arraytype)   (TYPE_HIGH_BOUND(TYPE_INDEX_TYPE((arraytype))))
 
#define TYPE_ARRAY_LOWER_BOUND_VALUE(arraytype)   (TYPE_LOW_BOUND(TYPE_INDEX_TYPE((arraytype))))
 
#define TYPE_SELF_TYPE(thistype)   internal_type_self_type (thistype)
 
#define TYPE_VPTR_FIELDNO(thistype)   internal_type_vptr_fieldno (thistype)
 
#define TYPE_VPTR_BASETYPE(thistype)   internal_type_vptr_basetype (thistype)
 
#define TYPE_NFN_FIELDS(thistype)   TYPE_CPLUS_SPECIFIC(thistype)->nfn_fields
 
#define TYPE_SPECIFIC_FIELD(thistype)   TYPE_MAIN_TYPE(thistype)->type_specific_field
 
#define TYPE_CPLUS_SPECIFIC(thistype)
 
#define TYPE_RAW_CPLUS_SPECIFIC(thistype)   TYPE_MAIN_TYPE(thistype)->type_specific.cplus_stuff
 
#define TYPE_FLOATFORMAT(thistype)   TYPE_MAIN_TYPE(thistype)->type_specific.floatformat
 
#define TYPE_GNAT_SPECIFIC(thistype)   TYPE_MAIN_TYPE(thistype)->type_specific.gnat_stuff
 
#define TYPE_DESCRIPTIVE_TYPE(thistype)   TYPE_GNAT_SPECIFIC(thistype)->descriptive_type
 
#define TYPE_CALLING_CONVENTION(thistype)   TYPE_MAIN_TYPE(thistype)->type_specific.func_stuff->calling_convention
 
#define TYPE_NO_RETURN(thistype)   TYPE_MAIN_TYPE(thistype)->type_specific.func_stuff->is_noreturn
 
#define TYPE_TAIL_CALL_LIST(thistype)   TYPE_MAIN_TYPE(thistype)->type_specific.func_stuff->tail_call_list
 
#define TYPE_BASECLASS(thistype, index)   TYPE_FIELD_TYPE(thistype, index)
 
#define TYPE_N_BASECLASSES(thistype)   TYPE_CPLUS_SPECIFIC(thistype)->n_baseclasses
 
#define TYPE_BASECLASS_NAME(thistype, index)   TYPE_FIELD_NAME(thistype, index)
 
#define TYPE_BASECLASS_BITPOS(thistype, index)   TYPE_FIELD_BITPOS(thistype,index)
 
#define BASETYPE_VIA_PUBLIC(thistype, index)   ((!TYPE_FIELD_PRIVATE(thistype, index)) && (!TYPE_FIELD_PROTECTED(thistype, index)))
 
#define TYPE_CPLUS_DYNAMIC(thistype)   TYPE_CPLUS_SPECIFIC (thistype)->is_dynamic
 
#define BASETYPE_VIA_VIRTUAL(thistype, index)
 
#define FIELD_TYPE(thisfld)   ((thisfld).type)
 
#define FIELD_NAME(thisfld)   ((thisfld).name)
 
#define FIELD_LOC_KIND(thisfld)   ((thisfld).loc_kind)
 
#define FIELD_BITPOS_LVAL(thisfld)   ((thisfld).loc.bitpos)
 
#define FIELD_BITPOS(thisfld)   (FIELD_BITPOS_LVAL (thisfld) + 0)
 
#define FIELD_ENUMVAL_LVAL(thisfld)   ((thisfld).loc.enumval)
 
#define FIELD_ENUMVAL(thisfld)   (FIELD_ENUMVAL_LVAL (thisfld) + 0)
 
#define FIELD_STATIC_PHYSNAME(thisfld)   ((thisfld).loc.physname)
 
#define FIELD_STATIC_PHYSADDR(thisfld)   ((thisfld).loc.physaddr)
 
#define FIELD_DWARF_BLOCK(thisfld)   ((thisfld).loc.dwarf_block)
 
#define SET_FIELD_BITPOS(thisfld, bitpos)
 
#define SET_FIELD_ENUMVAL(thisfld, enumval)
 
#define SET_FIELD_PHYSNAME(thisfld, name)
 
#define SET_FIELD_PHYSADDR(thisfld, addr)
 
#define SET_FIELD_DWARF_BLOCK(thisfld, addr)
 
#define FIELD_ARTIFICIAL(thisfld)   ((thisfld).artificial)
 
#define FIELD_BITSIZE(thisfld)   ((thisfld).bitsize)
 
#define TYPE_FIELD(thistype, n)   TYPE_MAIN_TYPE(thistype)->flds_bnds.fields[n]
 
#define TYPE_FIELD_TYPE(thistype, n)   FIELD_TYPE(TYPE_FIELD(thistype, n))
 
#define TYPE_FIELD_NAME(thistype, n)   FIELD_NAME(TYPE_FIELD(thistype, n))
 
#define TYPE_FIELD_LOC_KIND(thistype, n)   FIELD_LOC_KIND (TYPE_FIELD (thistype, n))
 
#define TYPE_FIELD_BITPOS(thistype, n)   FIELD_BITPOS (TYPE_FIELD (thistype, n))
 
#define TYPE_FIELD_ENUMVAL(thistype, n)   FIELD_ENUMVAL (TYPE_FIELD (thistype, n))
 
#define TYPE_FIELD_STATIC_PHYSNAME(thistype, n)   FIELD_STATIC_PHYSNAME (TYPE_FIELD (thistype, n))
 
#define TYPE_FIELD_STATIC_PHYSADDR(thistype, n)   FIELD_STATIC_PHYSADDR (TYPE_FIELD (thistype, n))
 
#define TYPE_FIELD_DWARF_BLOCK(thistype, n)   FIELD_DWARF_BLOCK (TYPE_FIELD (thistype, n))
 
#define TYPE_FIELD_ARTIFICIAL(thistype, n)   FIELD_ARTIFICIAL(TYPE_FIELD(thistype,n))
 
#define TYPE_FIELD_BITSIZE(thistype, n)   FIELD_BITSIZE(TYPE_FIELD(thistype,n))
 
#define TYPE_FIELD_PACKED(thistype, n)   (FIELD_BITSIZE(TYPE_FIELD(thistype,n))!=0)
 
#define TYPE_FIELD_PRIVATE_BITS(thistype)   TYPE_CPLUS_SPECIFIC(thistype)->private_field_bits
 
#define TYPE_FIELD_PROTECTED_BITS(thistype)   TYPE_CPLUS_SPECIFIC(thistype)->protected_field_bits
 
#define TYPE_FIELD_IGNORE_BITS(thistype)   TYPE_CPLUS_SPECIFIC(thistype)->ignore_field_bits
 
#define TYPE_FIELD_VIRTUAL_BITS(thistype)   TYPE_CPLUS_SPECIFIC(thistype)->virtual_field_bits
 
#define SET_TYPE_FIELD_PRIVATE(thistype, n)   B_SET (TYPE_CPLUS_SPECIFIC(thistype)->private_field_bits, (n))
 
#define SET_TYPE_FIELD_PROTECTED(thistype, n)   B_SET (TYPE_CPLUS_SPECIFIC(thistype)->protected_field_bits, (n))
 
#define SET_TYPE_FIELD_IGNORE(thistype, n)   B_SET (TYPE_CPLUS_SPECIFIC(thistype)->ignore_field_bits, (n))
 
#define SET_TYPE_FIELD_VIRTUAL(thistype, n)   B_SET (TYPE_CPLUS_SPECIFIC(thistype)->virtual_field_bits, (n))
 
#define TYPE_FIELD_PRIVATE(thistype, n)
 
#define TYPE_FIELD_PROTECTED(thistype, n)
 
#define TYPE_FIELD_IGNORE(thistype, n)
 
#define TYPE_FIELD_VIRTUAL(thistype, n)
 
#define TYPE_FN_FIELDLISTS(thistype)   TYPE_CPLUS_SPECIFIC(thistype)->fn_fieldlists
 
#define TYPE_FN_FIELDLIST(thistype, n)   TYPE_CPLUS_SPECIFIC(thistype)->fn_fieldlists[n]
 
#define TYPE_FN_FIELDLIST1(thistype, n)   TYPE_CPLUS_SPECIFIC(thistype)->fn_fieldlists[n].fn_fields
 
#define TYPE_FN_FIELDLIST_NAME(thistype, n)   TYPE_CPLUS_SPECIFIC(thistype)->fn_fieldlists[n].name
 
#define TYPE_FN_FIELDLIST_LENGTH(thistype, n)   TYPE_CPLUS_SPECIFIC(thistype)->fn_fieldlists[n].length
 
#define TYPE_N_TEMPLATE_ARGUMENTS(thistype)   TYPE_CPLUS_SPECIFIC (thistype)->n_template_arguments
 
#define TYPE_TEMPLATE_ARGUMENTS(thistype)   TYPE_CPLUS_SPECIFIC (thistype)->template_arguments
 
#define TYPE_TEMPLATE_ARGUMENT(thistype, n)   TYPE_CPLUS_SPECIFIC (thistype)->template_arguments[n]
 
#define TYPE_FN_FIELD(thisfn, n)   (thisfn)[n]
 
#define TYPE_FN_FIELD_PHYSNAME(thisfn, n)   (thisfn)[n].physname
 
#define TYPE_FN_FIELD_TYPE(thisfn, n)   (thisfn)[n].type
 
#define TYPE_FN_FIELD_ARGS(thisfn, n)   TYPE_FIELDS ((thisfn)[n].type)
 
#define TYPE_FN_FIELD_CONST(thisfn, n)   ((thisfn)[n].is_const)
 
#define TYPE_FN_FIELD_VOLATILE(thisfn, n)   ((thisfn)[n].is_volatile)
 
#define TYPE_FN_FIELD_PRIVATE(thisfn, n)   ((thisfn)[n].is_private)
 
#define TYPE_FN_FIELD_PROTECTED(thisfn, n)   ((thisfn)[n].is_protected)
 
#define TYPE_FN_FIELD_ARTIFICIAL(thisfn, n)   ((thisfn)[n].is_artificial)
 
#define TYPE_FN_FIELD_STUB(thisfn, n)   ((thisfn)[n].is_stub)
 
#define TYPE_FN_FIELD_CONSTRUCTOR(thisfn, n)   ((thisfn)[n].is_constructor)
 
#define TYPE_FN_FIELD_FCONTEXT(thisfn, n)   ((thisfn)[n].fcontext)
 
#define TYPE_FN_FIELD_VOFFSET(thisfn, n)   ((thisfn)[n].voffset-2)
 
#define TYPE_FN_FIELD_VIRTUAL_P(thisfn, n)   ((thisfn)[n].voffset > 1)
 
#define TYPE_FN_FIELD_STATIC_P(thisfn, n)   ((thisfn)[n].voffset == VOFFSET_STATIC)
 
#define TYPE_TYPEDEF_FIELD_ARRAY(thistype)   TYPE_CPLUS_SPECIFIC (thistype)->typedef_field
 
#define TYPE_TYPEDEF_FIELD(thistype, n)   TYPE_CPLUS_SPECIFIC (thistype)->typedef_field[n]
 
#define TYPE_TYPEDEF_FIELD_NAME(thistype, n)   TYPE_TYPEDEF_FIELD (thistype, n).name
 
#define TYPE_TYPEDEF_FIELD_TYPE(thistype, n)   TYPE_TYPEDEF_FIELD (thistype, n).type
 
#define TYPE_TYPEDEF_FIELD_COUNT(thistype)   TYPE_CPLUS_SPECIFIC (thistype)->typedef_field_count
 
#define TYPE_TYPEDEF_FIELD_PROTECTED(thistype, n)   TYPE_TYPEDEF_FIELD (thistype, n).is_protected
 
#define TYPE_TYPEDEF_FIELD_PRIVATE(thistype, n)   TYPE_TYPEDEF_FIELD (thistype, n).is_private
 
#define TYPE_NESTED_TYPES_ARRAY(thistype)   TYPE_CPLUS_SPECIFIC (thistype)->nested_types
 
#define TYPE_NESTED_TYPES_FIELD(thistype, n)   TYPE_CPLUS_SPECIFIC (thistype)->nested_types[n]
 
#define TYPE_NESTED_TYPES_FIELD_NAME(thistype, n)   TYPE_NESTED_TYPES_FIELD (thistype, n).name
 
#define TYPE_NESTED_TYPES_FIELD_TYPE(thistype, n)   TYPE_NESTED_TYPES_FIELD (thistype, n).type
 
#define TYPE_NESTED_TYPES_COUNT(thistype)   TYPE_CPLUS_SPECIFIC (thistype)->nested_types_count
 
#define TYPE_NESTED_TYPES_FIELD_PROTECTED(thistype, n)   TYPE_NESTED_TYPES_FIELD (thistype, n).is_protected
 
#define TYPE_NESTED_TYPES_FIELD_PRIVATE(thistype, n)   TYPE_NESTED_TYPES_FIELD (thistype, n).is_private
 
#define TYPE_IS_OPAQUE(thistype)
 
#define TYPE_SAFE_NAME(type)   (TYPE_NAME (type) ? TYPE_NAME (type) : _("<unnamed type>"))
 
#define TYPE_ERROR_NAME(type)   (TYPE_NAME (type) ? TYPE_NAME (type) : _("<error type>"))
 
#define TYPE_ALLOC(t, size)
 
#define TYPE_ZALLOC(t, size)
 
#define LENGTH_MATCH(bv)   ((bv)->rank[0])
 
#define REFERENCE_CONVERSION_RVALUE   1
 
#define REFERENCE_CONVERSION_CONST_LVALUE   2
 
#define CV_CONVERSION_CONST   1
 
#define CV_CONVERSION_VOLATILE   2
 

Enumerations

enum  type_code {
  TYPE_CODE_BITSTRING = -1, TYPE_CODE_UNDEF = 0, TYPE_CODE_PTR, TYPE_CODE_ARRAY,
  TYPE_CODE_STRUCT, TYPE_CODE_UNION, TYPE_CODE_ENUM, TYPE_CODE_FLAGS,
  TYPE_CODE_FUNC, TYPE_CODE_INT, TYPE_CODE_FLT, TYPE_CODE_VOID,
  TYPE_CODE_SET, TYPE_CODE_RANGE, TYPE_CODE_STRING, TYPE_CODE_ERROR,
  TYPE_CODE_METHOD, TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_REF,
  TYPE_CODE_RVALUE_REF, TYPE_CODE_CHAR, TYPE_CODE_BOOL, TYPE_CODE_COMPLEX,
  TYPE_CODE_TYPEDEF, TYPE_CODE_NAMESPACE, TYPE_CODE_DECFLOAT, TYPE_CODE_MODULE,
  TYPE_CODE_INTERNAL_FUNCTION, TYPE_CODE_XMETHOD
}
 
enum  type_instance_flag_value {
  TYPE_INSTANCE_FLAG_CONST = (1 << 0), TYPE_INSTANCE_FLAG_VOLATILE = (1 << 1), TYPE_INSTANCE_FLAG_CODE_SPACE = (1 << 2), TYPE_INSTANCE_FLAG_DATA_SPACE = (1 << 3),
  TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1 = (1 << 4), TYPE_INSTANCE_FLAG_ADDRESS_CLASS_2 = (1 << 5), TYPE_INSTANCE_FLAG_NOTTEXT = (1 << 6), TYPE_INSTANCE_FLAG_RESTRICT = (1 << 7),
  TYPE_INSTANCE_FLAG_ATOMIC = (1 << 8)
}
 
enum  dynamic_prop_kind {
  PROP_UNDEFINED, PROP_CONST, PROP_ADDR_OFFSET, PROP_LOCEXPR,
  PROP_LOCLIST
}
 
enum  dynamic_prop_node_kind { DYN_PROP_DATA_LOCATION, DYN_PROP_ALLOCATED, DYN_PROP_ASSOCIATED, DYN_PROP_BYTE_STRIDE }
 
enum  field_loc_kind {
  FIELD_LOC_KIND_BITPOS, FIELD_LOC_KIND_ENUMVAL, FIELD_LOC_KIND_PHYSADDR, FIELD_LOC_KIND_PHYSNAME,
  FIELD_LOC_KIND_DWARF_BLOCK
}
 
enum  type_specific_kind {
  TYPE_SPECIFIC_NONE, TYPE_SPECIFIC_CPLUS_STUFF, TYPE_SPECIFIC_GNAT_STUFF, TYPE_SPECIFIC_FLOATFORMAT,
  TYPE_SPECIFIC_FUNC, TYPE_SPECIFIC_SELF_TYPE
}
 
enum  call_site_parameter_kind { CALL_SITE_PARAMETER_DWARF_REG, CALL_SITE_PARAMETER_FB_OFFSET, CALL_SITE_PARAMETER_PARAM_OFFSET }
 

Functions

 DEFINE_OFFSET_TYPE (cu_offset, unsigned int)
 
 DEFINE_OFFSET_TYPE (sect_offset, unsigned int)
 
 DEF_ENUM_FLAGS_TYPE (enum type_instance_flag_value, type_instance_flags)
 
bool operator== (const dynamic_prop &l, const dynamic_prop &r)
 
static bool operator!= (const dynamic_prop &l, const dynamic_prop &r)
 
bool operator== (const range_bounds &l, const range_bounds &r)
 
static bool operator!= (const range_bounds &l, const range_bounds &r)
 
void allocate_cplus_struct_type (struct type *)
 
void allocate_gnat_aux_type (struct type *)
 
struct typeinternal_type_self_type (struct type *)
 
void set_type_self_type (struct type *, struct type *)
 
int internal_type_vptr_fieldno (struct type *)
 
void set_type_vptr_fieldno (struct type *, int)
 
struct typeinternal_type_vptr_basetype (struct type *)
 
void set_type_vptr_basetype (struct type *, struct type *)
 
const struct floatformat * floatformat_from_type (const struct type *type)
 
const struct builtin_typebuiltin_type (struct gdbarch *gdbarch)
 
const struct objfile_typeobjfile_type (struct objfile *objfile)
 
struct typealloc_type (struct objfile *)
 
struct typealloc_type_arch (struct gdbarch *)
 
struct typealloc_type_copy (const struct type *)
 
struct gdbarchget_type_arch (const struct type *)
 
struct typeget_target_type (struct type *type)
 
unsigned int type_length_units (struct type *type)
 
struct typeinit_type (struct objfile *, enum type_code, int, const char *)
 
struct typeinit_integer_type (struct objfile *, int, int, const char *)
 
struct typeinit_character_type (struct objfile *, int, int, const char *)
 
struct typeinit_boolean_type (struct objfile *, int, int, const char *)
 
struct typeinit_float_type (struct objfile *, int, const char *, const struct floatformat **)
 
struct typeinit_decfloat_type (struct objfile *, int, const char *)
 
struct typeinit_complex_type (struct objfile *, const char *, struct type *)
 
struct typeinit_pointer_type (struct objfile *, int, const char *, struct type *)
 
struct typearch_type (struct gdbarch *, enum type_code, int, const char *)
 
struct typearch_integer_type (struct gdbarch *, int, int, const char *)
 
struct typearch_character_type (struct gdbarch *, int, int, const char *)
 
struct typearch_boolean_type (struct gdbarch *, int, int, const char *)
 
struct typearch_float_type (struct gdbarch *, int, const char *, const struct floatformat **)
 
struct typearch_decfloat_type (struct gdbarch *, int, const char *)
 
struct typearch_complex_type (struct gdbarch *, const char *, struct type *)
 
struct typearch_pointer_type (struct gdbarch *, int, const char *, struct type *)
 
struct typearch_composite_type (struct gdbarch *gdbarch, const char *name, enum type_code code)
 
void append_composite_type_field (struct type *t, const char *name, struct type *field)
 
void append_composite_type_field_aligned (struct type *t, const char *name, struct type *field, int alignment)
 
struct fieldappend_composite_type_field_raw (struct type *t, const char *name, struct type *field)
 
struct typearch_flags_type (struct gdbarch *gdbarch, const char *name, int bit)
 
void append_flags_type_field (struct type *type, int start_bitpos, int nr_bits, struct type *field_type, const char *name)
 
void append_flags_type_flag (struct type *type, int bitpos, const char *name)
 
void make_vector_type (struct type *array_type)
 
struct typeinit_vector_type (struct type *elt_type, int n)
 
struct typelookup_reference_type (struct type *, enum type_code)
 
struct typelookup_lvalue_reference_type (struct type *)
 
struct typelookup_rvalue_reference_type (struct type *)
 
struct typemake_reference_type (struct type *, struct type **, enum type_code)
 
struct typemake_cv_type (int, int, struct type *, struct type **)
 
struct typemake_restrict_type (struct type *)
 
struct typemake_unqualified_type (struct type *)
 
struct typemake_atomic_type (struct type *)
 
void replace_type (struct type *, struct type *)
 
int address_space_name_to_int (struct gdbarch *, char *)
 
const char * address_space_int_to_name (struct gdbarch *, int)
 
struct typemake_type_with_address_space (struct type *type, int space_identifier)
 
struct typelookup_memberptr_type (struct type *, struct type *)
 
struct typelookup_methodptr_type (struct type *)
 
void smash_to_method_type (struct type *type, struct type *self_type, struct type *to_type, struct field *args, int nargs, int varargs)
 
void smash_to_memberptr_type (struct type *, struct type *, struct type *)
 
void smash_to_methodptr_type (struct type *, struct type *)
 
struct typeallocate_stub_method (struct type *)
 
const char * type_name_no_tag (const struct type *)
 
const char * type_name_no_tag_or_error (struct type *type)
 
struct typelookup_struct_elt_type (struct type *, const char *, int)
 
struct typemake_pointer_type (struct type *, struct type **)
 
struct typelookup_pointer_type (struct type *)
 
struct typemake_function_type (struct type *, struct type **)
 
struct typelookup_function_type (struct type *)
 
struct typelookup_function_type_with_arguments (struct type *, int, struct type **)
 
struct typecreate_static_range_type (struct type *, struct type *, LONGEST, LONGEST)
 
struct typecreate_array_type_with_stride (struct type *, struct type *, struct type *, struct dynamic_prop *, unsigned int)
 
struct typecreate_range_type (struct type *, struct type *, const struct dynamic_prop *, const struct dynamic_prop *)
 
struct typecreate_array_type (struct type *, struct type *, struct type *)
 
struct typelookup_array_range_type (struct type *, LONGEST, LONGEST)
 
struct typecreate_string_type (struct type *, struct type *, struct type *)
 
struct typelookup_string_range_type (struct type *, LONGEST, LONGEST)
 
struct typecreate_set_type (struct type *, struct type *)
 
struct typelookup_unsigned_typename (const struct language_defn *, struct gdbarch *, const char *)
 
struct typelookup_signed_typename (const struct language_defn *, struct gdbarch *, const char *)
 
void get_unsigned_type_max (struct type *, ULONGEST *)
 
void get_signed_type_minmax (struct type *, LONGEST *, LONGEST *)
 
struct typeresolve_dynamic_type (struct type *type, const gdb_byte *valaddr, CORE_ADDR addr)
 
int is_dynamic_type (struct type *type)
 
struct dynamic_propget_dyn_prop (enum dynamic_prop_node_kind kind, const struct type *type)
 
void add_dyn_prop (enum dynamic_prop_node_kind kind, struct dynamic_prop prop, struct type *type, struct objfile *objfile)
 
void remove_dyn_prop (enum dynamic_prop_node_kind prop_kind, struct type *type)
 
struct typecheck_typedef (struct type *)
 
void check_stub_method_group (struct type *, int)
 
char * gdb_mangle_name (struct type *, int, int)
 
struct typelookup_typename (const struct language_defn *, struct gdbarch *, const char *, const struct block *, int)
 
struct typelookup_template_type (char *, struct type *, const struct block *)
 
int get_vptr_fieldno (struct type *, struct type **)
 
int get_discrete_bounds (struct type *, LONGEST *, LONGEST *)
 
int get_array_bounds (struct type *type, LONGEST *low_bound, LONGEST *high_bound)
 
int discrete_position (struct type *type, LONGEST val, LONGEST *pos)
 
int class_types_same_p (const struct type *, const struct type *)
 
int is_ancestor (struct type *, struct type *)
 
int is_public_ancestor (struct type *, struct type *)
 
int is_unique_ancestor (struct type *, struct value *)
 
struct rank sum_ranks (struct rank a, struct rank b)
 
int compare_ranks (struct rank a, struct rank b)
 
int compare_badness (struct badness_vector *, struct badness_vector *)
 
struct badness_vectorrank_function (struct type **, int, struct value **, int)
 
struct rank rank_one_type (struct type *, struct type *, struct value *)
 
void recursive_dump_type (struct type *, int)
 
int field_is_static (struct field *)
 
void print_scalar_formatted (const gdb_byte *, struct type *, const struct value_print_options *, int, struct ui_file *)
 
int can_dereference (struct type *)
 
int is_integral_type (struct type *)
 
int is_floating_type (struct type *)
 
int is_scalar_type (struct type *type)
 
int is_scalar_type_recursive (struct type *)
 
int class_or_union_p (const struct type *)
 
void maintenance_print_type (const char *, int)
 
htab_t create_copied_types_hash (struct objfile *objfile)
 
struct typecopy_type_recursive (struct objfile *objfile, struct type *type, htab_t copied_types)
 
struct typecopy_type (const struct type *type)
 
int types_equal (struct type *, struct type *)
 
int types_deeply_equal (struct type *, struct type *)
 
int type_not_allocated (const struct type *type)
 
int type_not_associated (const struct type *type)
 

Variables

const struct cplus_struct_type cplus_struct_default
 
const struct gnat_aux_type gnat_aux_default
 
const struct floatformat * floatformats_ieee_half [BFD_ENDIAN_UNKNOWN]
 
const struct floatformat * floatformats_ieee_single [BFD_ENDIAN_UNKNOWN]
 
const struct floatformat * floatformats_ieee_double [BFD_ENDIAN_UNKNOWN]
 
const struct floatformat * floatformats_ieee_double_littlebyte_bigword [BFD_ENDIAN_UNKNOWN]
 
const struct floatformat * floatformats_i387_ext [BFD_ENDIAN_UNKNOWN]
 
const struct floatformat * floatformats_m68881_ext [BFD_ENDIAN_UNKNOWN]
 
const struct floatformat * floatformats_arm_ext [BFD_ENDIAN_UNKNOWN]
 
const struct floatformat * floatformats_ia64_spill [BFD_ENDIAN_UNKNOWN]
 
const struct floatformat * floatformats_ia64_quad [BFD_ENDIAN_UNKNOWN]
 
const struct floatformat * floatformats_vax_f [BFD_ENDIAN_UNKNOWN]
 
const struct floatformat * floatformats_vax_d [BFD_ENDIAN_UNKNOWN]
 
const struct floatformat * floatformats_ibm_long_double [BFD_ENDIAN_UNKNOWN]
 
const struct rank LENGTH_MISMATCH_BADNESS
 
const struct rank TOO_FEW_PARAMS_BADNESS
 
const struct rank INCOMPATIBLE_TYPE_BADNESS
 
const struct rank EXACT_MATCH_BADNESS
 
const struct rank INTEGER_PROMOTION_BADNESS
 
const struct rank FLOAT_PROMOTION_BADNESS
 
const struct rank BASE_PTR_CONVERSION_BADNESS
 
const struct rank INTEGER_CONVERSION_BADNESS
 
const struct rank FLOAT_CONVERSION_BADNESS
 
const struct rank INT_FLOAT_CONVERSION_BADNESS
 
const struct rank VOID_PTR_CONVERSION_BADNESS
 
const struct rank BOOL_CONVERSION_BADNESS
 
const struct rank BASE_CONVERSION_BADNESS
 
const struct rank REFERENCE_CONVERSION_BADNESS
 
const struct rank NULL_POINTER_CONVERSION
 
const struct rank CV_CONVERSION_BADNESS
 
const struct rank NS_POINTER_CONVERSION_BADNESS
 
const struct rank NS_INTEGER_POINTER_CONVERSION_BADNESS
 

Macro Definition Documentation

◆ ALLOCATE_CPLUS_STRUCT_TYPE

#define ALLOCATE_CPLUS_STRUCT_TYPE (   type)    allocate_cplus_struct_type (type)

◆ ALLOCATE_GNAT_AUX_TYPE

#define ALLOCATE_GNAT_AUX_TYPE (   type)    allocate_gnat_aux_type (type)

Definition at line 1210 of file gdbtypes.h.

Referenced by set_descriptive_type().

◆ B_BYTES

#define B_BYTES (   x)    ( 1 + ((x)>>3) )

◆ B_CLR

#define B_CLR (   a,
 
)    ((a)[(x)>>3] &= ~(1 << ((x)&7)))

Definition at line 71 of file gdbtypes.h.

◆ B_CLRALL

#define B_CLRALL (   a,
 
)    memset ((a), 0, B_BYTES(x))

◆ B_SET

#define B_SET (   a,
 
)    ((a)[(x)>>3] |= (1 << ((x)&7)))

Definition at line 70 of file gdbtypes.h.

◆ B_TST

#define B_TST (   a,
 
)    ((a)[(x)>>3] & (1 << ((x)&7)))

Definition at line 72 of file gdbtypes.h.

Referenced by print_bit_vector().

◆ B_TYPE

#define B_TYPE   unsigned char

◆ BASETYPE_VIA_PUBLIC

#define BASETYPE_VIA_PUBLIC (   thistype,
  index 
)    ((!TYPE_FIELD_PRIVATE(thistype, index)) && (!TYPE_FIELD_PROTECTED(thistype, index)))

◆ BASETYPE_VIA_VIRTUAL

#define BASETYPE_VIA_VIRTUAL (   thistype,
  index 
)

◆ CV_CONVERSION_CONST

#define CV_CONVERSION_CONST   1

Definition at line 1950 of file gdbtypes.h.

Referenced by rank_one_type().

◆ CV_CONVERSION_VOLATILE

#define CV_CONVERSION_VOLATILE   2

Definition at line 1951 of file gdbtypes.h.

Referenced by rank_one_type().

◆ FIELD_ARTIFICIAL

#define FIELD_ARTIFICIAL (   thisfld)    ((thisfld).artificial)

◆ FIELD_BITPOS

#define FIELD_BITPOS (   thisfld)    (FIELD_BITPOS_LVAL (thisfld) + 0)

◆ FIELD_BITPOS_LVAL

#define FIELD_BITPOS_LVAL (   thisfld)    ((thisfld).loc.bitpos)

Definition at line 1345 of file gdbtypes.h.

◆ FIELD_BITSIZE

#define FIELD_BITSIZE (   thisfld)    ((thisfld).bitsize)

◆ FIELD_DWARF_BLOCK

#define FIELD_DWARF_BLOCK (   thisfld)    ((thisfld).loc.dwarf_block)

Definition at line 1351 of file gdbtypes.h.

Referenced by call_site_to_target_addr(), and check_types_equal().

◆ FIELD_ENUMVAL

#define FIELD_ENUMVAL (   thisfld)    (FIELD_ENUMVAL_LVAL (thisfld) + 0)

Definition at line 1348 of file gdbtypes.h.

Referenced by check_types_equal(), and gdbscm_field_enumval().

◆ FIELD_ENUMVAL_LVAL

#define FIELD_ENUMVAL_LVAL (   thisfld)    ((thisfld).loc.enumval)

Definition at line 1347 of file gdbtypes.h.

◆ FIELD_LOC_KIND

#define FIELD_LOC_KIND (   thisfld)    ((thisfld).loc_kind)

Definition at line 1344 of file gdbtypes.h.

Referenced by call_site_to_target_addr(), check_types_equal(), and field_is_static().

◆ FIELD_NAME

#define FIELD_NAME (   thisfld)    ((thisfld).name)

◆ FIELD_STATIC_PHYSADDR

#define FIELD_STATIC_PHYSADDR (   thisfld)    ((thisfld).loc.physaddr)

Definition at line 1350 of file gdbtypes.h.

Referenced by call_site_to_target_addr(), and check_types_equal().

◆ FIELD_STATIC_PHYSNAME

#define FIELD_STATIC_PHYSNAME (   thisfld)    ((thisfld).loc.physname)

Definition at line 1349 of file gdbtypes.h.

Referenced by call_site_to_target_addr(), and check_types_equal().

◆ FIELD_TYPE

#define FIELD_TYPE (   thisfld)    ((thisfld).type)

◆ HAVE_CPLUS_STRUCT

#define HAVE_CPLUS_STRUCT (   type)

◆ HAVE_GNAT_AUX_INFO

#define HAVE_GNAT_AUX_INFO (   type)    (TYPE_SPECIFIC_FIELD (type) == TYPE_SPECIFIC_GNAT_STUFF)

A macro that returns non-zero if the type-specific data should be read as "gnat-stuff".

Definition at line 1213 of file gdbtypes.h.

Referenced by ada_find_parallel_type_with_name(), find_parallel_type_by_descriptive_type(), and set_die_type().

◆ INIT_CPLUS_SPECIFIC

#define INIT_CPLUS_SPECIFIC (   type)

◆ INIT_FUNC_SPECIFIC

#define INIT_FUNC_SPECIFIC (   type)
Value:
TYPE_MAIN_TYPE (type)->type_specific.func_stuff = (struct func_type *) \
#define TYPE_SPECIFIC_FIELD(thistype)
Definition: gdbtypes.h:1312
#define TYPE_MAIN_TYPE(thistype)
Definition: gdbtypes.h:1223
Definition: gdbtypes.h:749
struct func_type * func_stuff
Definition: gdbtypes.h:605
#define TYPE_ZALLOC(t, size)
Definition: gdbtypes.h:1657

Definition at line 1216 of file gdbtypes.h.

Referenced by copy_type_recursive(), make_function_type(), set_type_code(), and set_type_self_type().

◆ INIT_GNAT_SPECIFIC

#define INIT_GNAT_SPECIFIC (   type)
Value:
TYPE_GNAT_SPECIFIC (type) = (struct gnat_aux_type *) &gnat_aux_default)
const struct gnat_aux_type gnat_aux_default
Definition: gdbtypes.c:2795
#define TYPE_SPECIFIC_FIELD(thistype)
Definition: gdbtypes.h:1312
Definition: gdbtypes.h:749

Definition at line 1207 of file gdbtypes.h.

Referenced by copy_type_recursive(), and set_die_type().

◆ LENGTH_MATCH

#define LENGTH_MATCH (   bv)    ((bv)->rank[0])

Definition at line 1905 of file gdbtypes.h.

Referenced by rank_function().

◆ NULL_TYPE

#define NULL_TYPE   ((struct type *) 0)

◆ REFERENCE_CONVERSION_CONST_LVALUE

#define REFERENCE_CONVERSION_CONST_LVALUE   2

Conversion to const lvalue reference.

Definition at line 1943 of file gdbtypes.h.

Referenced by rank_one_type().

◆ REFERENCE_CONVERSION_RVALUE

#define REFERENCE_CONVERSION_RVALUE   1

Conversion to rvalue reference.

Definition at line 1941 of file gdbtypes.h.

Referenced by rank_one_type().

◆ SET_FIELD_BITPOS

#define SET_FIELD_BITPOS (   thisfld,
  bitpos 
)

◆ SET_FIELD_DWARF_BLOCK

#define SET_FIELD_DWARF_BLOCK (   thisfld,
  addr 
)
Value:
FIELD_DWARF_BLOCK (thisfld) = (addr))
#define FIELD_LOC_KIND(thisfld)
Definition: gdbtypes.h:1344

Definition at line 1364 of file gdbtypes.h.

Referenced by read_call_site_scope().

◆ SET_FIELD_ENUMVAL

#define SET_FIELD_ENUMVAL (   thisfld,
  enumval 
)
Value:
FIELD_ENUMVAL_LVAL (thisfld) = (enumval))
#define FIELD_LOC_KIND(thisfld)
Definition: gdbtypes.h:1344

Definition at line 1355 of file gdbtypes.h.

Referenced by coff_read_enum_type(), copy_type_recursive(), parse_symbol(), process_enumeration_scope(), and read_enum_type().

◆ SET_FIELD_PHYSADDR

#define SET_FIELD_PHYSADDR (   thisfld,
  addr 
)
Value:
FIELD_STATIC_PHYSADDR (thisfld) = (addr))
#define FIELD_LOC_KIND(thisfld)
Definition: gdbtypes.h:1344

Definition at line 1361 of file gdbtypes.h.

Referenced by copy_type_recursive(), and read_call_site_scope().

◆ SET_FIELD_PHYSNAME

#define SET_FIELD_PHYSNAME (   thisfld,
  name 
)
Value:
FIELD_STATIC_PHYSNAME (thisfld) = (name))
#define FIELD_LOC_KIND(thisfld)
Definition: gdbtypes.h:1344
const char *const name
Definition: aarch64-tdep.c:76

Definition at line 1358 of file gdbtypes.h.

Referenced by copy_type_recursive(), dwarf2_add_field(), read_call_site_scope(), and read_one_struct_field().

◆ SET_TYPE_FIELD_IGNORE

#define SET_TYPE_FIELD_IGNORE (   thistype,
 
)    B_SET (TYPE_CPLUS_SPECIFIC(thistype)->ignore_field_bits, (n))

Definition at line 1395 of file gdbtypes.h.

Referenced by attach_fields_to_type().

◆ SET_TYPE_FIELD_PRIVATE

#define SET_TYPE_FIELD_PRIVATE (   thistype,
 
)    B_SET (TYPE_CPLUS_SPECIFIC(thistype)->private_field_bits, (n))

Definition at line 1391 of file gdbtypes.h.

Referenced by attach_fields_to_type(), and dwarf2_attach_fields_to_type().

◆ SET_TYPE_FIELD_PROTECTED

#define SET_TYPE_FIELD_PROTECTED (   thistype,
 
)    B_SET (TYPE_CPLUS_SPECIFIC(thistype)->protected_field_bits, (n))

Definition at line 1393 of file gdbtypes.h.

Referenced by attach_fields_to_type(), and dwarf2_attach_fields_to_type().

◆ SET_TYPE_FIELD_VIRTUAL

#define SET_TYPE_FIELD_VIRTUAL (   thistype,
 
)    B_SET (TYPE_CPLUS_SPECIFIC(thistype)->virtual_field_bits, (n))

Definition at line 1397 of file gdbtypes.h.

Referenced by dwarf2_attach_fields_to_type(), and read_baseclasses().

◆ TYPE_ADDRESS_CLASS_1

#define TYPE_ADDRESS_CLASS_1 (   t)
Value:

Address class flags. Some environments provide for pointers whose size is different from that of a normal pointer or address types where the bits are interpreted differently than normal addresses. The TYPE_INSTANCE_FLAG_ADDRESS_CLASS_n flags may be used in target specific ways to represent these different types of address classes.

Definition at line 367 of file gdbtypes.h.

Referenced by ft32_pointer_to_address(), recursive_dump_type(), and spu_pointer_to_address().

◆ TYPE_ADDRESS_CLASS_2

#define TYPE_ADDRESS_CLASS_2 (   t)
Value:

Definition at line 369 of file gdbtypes.h.

Referenced by recursive_dump_type().

◆ TYPE_ADDRESS_CLASS_ALL

#define TYPE_ADDRESS_CLASS_ALL (   t)
Value:
#define TYPE_INSTANCE_FLAGS(thistype)
Definition: gdbtypes.h:1222
#define TYPE_INSTANCE_FLAG_ADDRESS_CLASS_ALL
Definition: gdbtypes.h:371

Definition at line 373 of file gdbtypes.h.

Referenced by replace_type().

◆ TYPE_ALLOC

#define TYPE_ALLOC (   t,
  size 
)
Value:
? obstack_alloc (&TYPE_OBJFILE (t) -> objfile_obstack, size) \
#define TYPE_OBJFILE_OWNED(t)
Definition: gdbtypes.h:289
#define TYPE_OBJFILE(t)
Definition: gdbtypes.h:291
void * xmalloc(YYSIZE_T)
size_t size
Definition: go32-nat.c:242

Allocate space for storing data associated with a particular type. We ensure that the space is allocated using the same mechanism that was used to allocate the space for the type structure itself. I.e. if the type is on an objfile's objfile_obstack, then the space for data associated with that type will also be allocated on the objfile_obstack. If the type is not associated with any particular objfile (such as builtin types), then the data space will be allocated with xmalloc, the same as for the type structure.

Definition at line 1652 of file gdbtypes.h.

Referenced by ada_template_to_fixed_record_type_1(), allocate_cplus_struct_type(), allocate_gnat_aux_type(), attach_fields_to_type(), check_stub_method(), coff_read_enum_type(), coff_read_struct_type(), define_symbol(), dwarf2_attach_fields_to_type(), dwarf2_attach_fn_fields_to_type(), finish_block_internal(), parse_symbol(), patch_type(), process_enumeration_scope(), process_structure_scope(), read_baseclasses(), read_enum_type(), read_member_functions(), read_type(), resolve_dynamic_struct(), resolve_dynamic_union(), template_to_static_fixed_type(), and to_record_with_fixed_variant_part().

◆ TYPE_ALLOCATED_PROP

#define TYPE_ALLOCATED_PROP (   thistype)    get_dyn_prop (DYN_PROP_ALLOCATED, thistype)

◆ TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED

#define TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED (   arraytype)    TYPE_LOW_BOUND_UNDEFINED(TYPE_INDEX_TYPE(arraytype))

Definition at line 1288 of file gdbtypes.h.

Referenced by f77_get_lowerbound(), and get_array_bounds().

◆ TYPE_ARRAY_LOWER_BOUND_VALUE

#define TYPE_ARRAY_LOWER_BOUND_VALUE (   arraytype)    (TYPE_LOW_BOUND(TYPE_INDEX_TYPE((arraytype))))

◆ TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED

#define TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED (   arraytype)    TYPE_HIGH_BOUND_UNDEFINED(TYPE_INDEX_TYPE(arraytype))

◆ TYPE_ARRAY_UPPER_BOUND_VALUE

#define TYPE_ARRAY_UPPER_BOUND_VALUE (   arraytype)    (TYPE_HIGH_BOUND(TYPE_INDEX_TYPE((arraytype))))

◆ TYPE_ASSOCIATED_PROP

#define TYPE_ASSOCIATED_PROP (   thistype)    get_dyn_prop (DYN_PROP_ASSOCIATED, thistype)

◆ TYPE_ATOMIC

#define TYPE_ATOMIC (   t)    ((TYPE_INSTANCE_FLAGS (t) & TYPE_INSTANCE_FLAG_ATOMIC) != 0)

Atomic type. If this is set, the corresponding type has an _Atomic modifier.

Definition at line 327 of file gdbtypes.h.

Referenced by c_type_print_modifier(), cp_type_print_method_args(), and recursive_dump_type().

◆ TYPE_BASECLASS

#define TYPE_BASECLASS (   thistype,
  index 
)    TYPE_FIELD_TYPE(thistype, index)

◆ TYPE_BASECLASS_BITPOS

#define TYPE_BASECLASS_BITPOS (   thistype,
  index 
)    TYPE_FIELD_BITPOS(thistype,index)

◆ TYPE_BASECLASS_NAME

#define TYPE_BASECLASS_NAME (   thistype,
  index 
)    TYPE_FIELD_NAME(thistype, index)

◆ TYPE_CALLING_CONVENTION

#define TYPE_CALLING_CONVENTION (   thistype)    TYPE_MAIN_TYPE(thistype)->type_specific.func_stuff->calling_convention

◆ TYPE_CHAIN

#define TYPE_CHAIN (   thistype)    (thistype)->chain

◆ TYPE_CODE

#define TYPE_CODE (   thistype)    TYPE_MAIN_TYPE(thistype)->code

Note that TYPE_CODE can be TYPE_CODE_TYPEDEF, so if you want the real type, you need to do TYPE_CODE (check_type (this_type)).

Definition at line 1238 of file gdbtypes.h.

Referenced by aarch64_push_dummy_call(), aarch64_return_value(), aarch64_store_return_value(), aarch64_type_align(), ada_args_match(), ada_array_arity(), ada_array_bound(), ada_array_bound_from_type(), ada_array_element_type(), ada_array_length(), ada_check_typedef(), ada_coerce_ref(), ada_convert_actual(), ada_discrete_type_high_bound(), ada_discrete_type_low_bound(), ada_evaluate_subexp(), ada_get_base_type(), ada_get_decoded_value(), ada_index_type(), ada_is_aligner_type(), ada_is_array_descriptor_type(), ada_is_array_type(), ada_is_bogus_array_descriptor(), ada_is_character_type(), ada_is_direct_array_type(), ada_is_dispatch_table_ptr_type(), ada_is_modular_type(), ada_is_redundant_range_encoding(), ada_is_simple_array_type(), ada_is_string_type(), ada_is_tag_type(), ada_is_variant_part(), ada_lookup_struct_elt_type(), ada_parent_type(), ada_prefer_type(), ada_print_scalar(), ada_print_subexp(), ada_print_symbol_signature(), ada_print_type(), ada_promote_array_of_integrals(), ada_tag_value_at_base_address(), ada_tasks_inferior_data_sniffer(), ada_template_to_fixed_record_type_1(), ada_to_fixed_type(), ada_to_fixed_type_1(), ada_type_match(), ada_typedef_target_type(), ada_val_print_1(), ada_val_print_gnat_array(), ada_val_print_num(), ada_val_print_ref(), ada_value_assign(), ada_value_binop(), ada_value_equal(), ada_value_is_changeable_p(), ada_value_print(), ada_value_ptr_subscript(), ada_value_struct_elt(), ada_value_subscript(), ada_variant_discrim_name(), ada_varobj_adjust_for_child_access(), ada_varobj_describe_child(), ada_varobj_describe_simple_array_child(), ada_varobj_describe_struct_child(), ada_varobj_get_number_of_children(), ada_varobj_get_ptr_number_of_children(), ada_varobj_get_struct_number_of_children(), ada_varobj_get_value_of_variable(), ada_varobj_ind(), add_array_cv_type(), add_struct_fields(), add_symtab_completions(), address_of_variable(), adjust_type_signedness(), adjust_value_for_child_access(), alloc_type(), alloc_type_arch(), allocate_stub_method(), alpha_extract_return_value(), alpha_push_dummy_call(), alpha_return_value(), alpha_store_return_value(), amd64_classify(), amd64_classify_aggregate(), amd64_non_pod_p(), amd64_windows_passed_by_integer_register(), amd64_windows_passed_by_xmm_register(), amd64_windows_return_value(), append_composite_type_field_aligned(), append_flags_type_field(), arc_return_value(), arm_extract_return_value(), arm_push_dummy_call(), arm_register_type(), arm_return_in_memory(), arm_return_value(), arm_store_return_value(), arm_type_align(), arm_vfp_cprc_sub_candidate(), assign_aggregate(), assign_component(), avr_address_to_pointer(), avr_pointer_to_address(), base_types_equal_p(), binop_promote(), binop_types_user_defined_p(), BP_MANIPULATION(), bpfinishpy_init(), c_describe_child(), c_get_string(), c_is_path_expr_parent(), c_number_of_children(), c_print_type_1(), c_print_typedef(), c_textual_element_type(), c_type_print_base_1(), c_type_print_base_struct_union(), c_type_print_varspec_prefix(), c_type_print_varspec_suffix(), c_val_print(), c_value_of_variable(), c_value_print(), calc_f77_array_dims(), call_function_by_hand_dummy(), call_xmethod(), can_dereference(), can_use_hardware_watchpoint(), cast_into_complex(), check_parameter_typelist(), check_typedef(), check_types_equal(), class_or_union_p(), classify_type(), cleanup_undefined_types_1(), cleanup_undefined_types_noname(), coerce_array(), coerce_for_assign(), coff_read_enum_type(), coff_read_struct_type(), collection_list::collect_symbol(), compare_parameters(), compile_object_load(), compile_object_run(), complain_about_struct_wipeout(), complete_expression(), completion_list_add_fields(), compute_vtable_size(), constrained_packed_array_type(), convert_ast_to_expression(), convert_char_literal(), convert_field(), convert_one_symbol(), convert_struct_or_union(), convert_type_basic(), copy_type_recursive(), cp_is_vtbl_member(), cp_lookup_nested_symbol(), cp_lookup_rtti_type(), cp_print_static_field(), cp_search_static_and_baseclasses(), cp_type_print_method_args(), cplus_describe_child(), cplus_number_of_children(), create_array_type_with_stride(), create_range_type(), create_set_type(), create_string_type(), create_value(), cris_return_value(), d_lookup_nested_symbol(), d_val_print(), decode_base_type(), decode_constrained_packed_array(), decode_constrained_packed_array_type(), decode_packed_array_bitsize(), default_collect_symbol_completion_matches_break_on(), default_print_one_register_info(), default_register_reggroup_p(), define_symbol(), desc_base_type(), desc_bounds(), desc_bounds_type(), desc_data_target_type(), desc_index_type(), discrete_position(), discrete_type_p(), do_ppc_sysv_return_value(), do_search_struct_field(), dwarf2_add_member_fn(), dwarf2_compute_name(), dwarf2_evaluate_loc_desc_full(), dwarf_require_integral(), dynamic_array_type(), dynamic_template_type(), empty_record(), enum_constant_from_type(), equiv_types(), eval_call(), evaluate_funcall(), evaluate_struct_tuple(), evaluate_subexp_c(), evaluate_subexp_for_sizeof(), evaluate_subexp_modula2(), evaluate_subexp_opencl(), evaluate_subexp_standard(), evaluate_subexp_with_coercion(), extract_typed_address(), f77_get_dynamic_length_of_aggregate(), f_print_type(), f_type_print_base(), f_type_print_varspec_prefix(), f_type_print_varspec_suffix(), f_val_print(), fake_method::fake_method(), find_function_addr(), find_overload_match(), find_size_for_pointer_math(), finish_command_fsm_should_stop(), fixed_type_info(), floatformat_from_type(), fp_register_arg_p(), frv_push_dummy_call(), frv_return_value(), func_addr_to_tail_call_list(), gccgo_string_p(), gdbpy_create_lazy_string_object(), gdbpy_get_xmethod_result_type(), gdbpy_invoke_xmethod(), gdbscm_field_baseclass_p(), gdbscm_field_bitpos(), gdbscm_field_enumval(), gdbscm_type_code(), gdbscm_type_range(), gdbscm_value_call(), gdbscm_value_dynamic_type(), gdbscm_value_referenced_value(), gdbscm_value_subscript(), gdbscm_value_to_bool(), gdbscm_value_to_integer(), gdbscm_value_to_lazy_string(), gdbscm_value_to_real(), gen_address_of(), gen_aggregate_elt_ref(), gen_binop(), gen_cast(), gen_complement(), gen_deref(), gen_expr(), gen_expr_binop_rest(), gen_expr_for_cast(), gen_fetch(), gen_logical_not(), gen_ptradd(), gen_ptrsub(), gen_repeat(), gen_struct_elt_for_reference(), gen_struct_ref(), gen_traced_pop(), gen_usual_arithmetic(), gen_usual_unary(), generate_register_struct(), generate_vla_size(), generic_val_print(), generic_val_print_ref(), get_base_type(), get_call_return_value(), get_decimal_float_return_value(), get_discrete_bounds(), get_internalvar_integer(), get_long_set_bounds(), get_number_trailer(), get_out_value_type(), get_regs_type(), get_return_value(), get_signed_type_minmax(), get_target_float_ops(), get_target_float_ops_kind(), get_unsigned_type_max(), get_value_at(), gnuv2_value_rtti_type(), gnuv2_virtual_fn_field(), gnuv3_dynamic_class(), gnuv3_get_typeid(), gnuv3_get_vtable(), gnuv3_pass_by_reference(), gnuv3_print_vtable(), gnuv3_rtti_type(), gnuv3_virtual_fn_field(), go_print_type(), go_val_print(), h8300_extract_return_value(), h8300_use_struct_convention(), h8300h_extract_return_value(), h8300h_use_struct_convention(), has_negatives(), hppa32_push_dummy_call(), hppa32_return_value(), hppa64_floating_p(), hppa64_integral_or_pointer_p(), hppa64_push_dummy_call(), i386_16_byte_align_p(), i386_darwin_arg_type_alignment(), i386_extract_return_value(), i386_m128_p(), i386_reg_struct_return_p(), i386_return_value(), i386_store_return_value(), i387_convert_register_p(), i387_register_to_value(), i387_value_to_register(), ia64_convert_register_p(), ia64_push_dummy_call(), ia64_register_reggroup_p(), ia64_struct_type_p(), ia64_use_struct_convention(), indirect_pieced_value(), inspect_type(), install_new_value(), integer_type_p(), internal_type_self_type(), internal_type_vptr_basetype(), internal_type_vptr_fieldno(), iq2000_address_to_pointer(), iq2000_pass_8bytetype_by_address(), iq2000_pointer_to_address(), iq2000_use_struct_convention(), is_dynamic_field(), is_dynamic_type_internal(), is_float_or_hfa_type_recurse(), is_floating_type(), is_hfa_or_hva(), is_integral_type(), is_intlike(), is_nonfunction(), is_pascal_string_type(), is_scalar_type(), is_scalar_type_recursive(), is_thick_pntr(), isvoid_internal_fn(), language_bool_type(), lesseq_defined_than(), linespec_parse_variable(), list_args_or_locals(), lm32_extract_return_value(), lm32_return_value(), lookup_enum(), lookup_function_type_with_arguments(), lookup_opencl_vector_type(), lookup_string_range_type(), lookup_struct(), lookup_struct_elt_type(), lookup_struct_typedef(), lookup_symbol_aux(), lookup_template_type(), lookup_union(), lsscm_elt_type(), lsscm_safe_lazy_string_to_value(), lval_func_read(), lval_func_write(), m2_get_discrete_bounds(), m2_is_long_set(), m2_is_long_set_of_type(), m2_is_unbounded_array(), m2_print_array_contents(), m2_print_type(), m2_procedure(), m2_record_fields(), m2_val_print(), m32c_m16c_address_to_pointer(), m32c_m16c_pointer_to_address(), m32c_push_dummy_call(), m32c_reg_arg_type(), m32c_return_by_passed_buf(), m32r_push_dummy_call(), m68hc11_return_value(), m68k_convert_register_p(), m68k_push_dummy_call(), m68k_reg_struct_return_p(), m68k_register_to_value(), m68k_return_value(), m68k_svr4_extract_return_value(), m68k_svr4_return_value(), m68k_svr4_store_return_value(), m68k_value_to_register(), m88k_floating_p(), m88k_integral_or_pointer_p(), m88k_structure_or_union_p(), make_array_descriptor(), make_function_type(), make_pointer_type(), make_reference_type(), make_symbol_overload_list_adl_namespace(), make_vector_type(), match_endianness(), mi_print_value_p(), mips_convert_register_float_case_p(), mips_eabi_push_dummy_call(), mips_eabi_return_value(), mips_n32n64_fp_arg_chunk_p(), mips_n32n64_push_dummy_call(), mips_n32n64_return_value(), mips_o32_push_dummy_call(), mips_o32_return_value(), mips_o64_push_dummy_call(), mips_o64_return_value(), mips_register_reggroup_p(), mips_type_needs_double_align(), mn10300_extract_return_value(), mn10300_push_dummy_call(), mn10300_store_return_value(), mn10300_type_align(), mn10300_use_struct_convention(), msp430_push_dummy_call(), msp430_return_value(), nds32_check_calling_use_fpr(), nds32_type_align(), new_symbol_full(), numeric_type_p(), opencl_logical_not(), opencl_print_type(), opencl_relop(), opencl_value_cast(), or1k_push_dummy_call(), or1k_return_value(), pack_long(), pack_unsigned_long(), package_name_p(), parse_old_style_renaming(), parse_procedure(), parse_symbol(), parse_type(), pascal_object_is_vtbl_member(), pascal_object_print_static_field(), pascal_print_type(), pascal_type_print_base(), pascal_type_print_func_varspec_suffix(), pascal_type_print_varspec_prefix(), pascal_type_print_varspec_suffix(), pascal_val_print(), pascal_value_print(), pass_in_x(), patch_opaque_types(), pointer_type(), ppc64_aggregate_candidate(), ppc64_elfv2_abi_homogeneous_aggregate(), ppc64_sysv_abi_push_dummy_call(), ppc64_sysv_abi_push_freg(), ppc64_sysv_abi_push_param(), ppc64_sysv_abi_return_value(), ppc64_sysv_abi_return_value_base(), ppc_linux_return_value(), ppc_sysv_abi_push_dummy_call(), ppc_sysv_use_opencl_abi(), ppcnbsd_return_value(), print_array_type(), print_command_1(), print_formatted(), print_func_type(), print_optional_low_bound(), print_range(), print_range_bound(), print_range_type(), print_return_value(), print_scalar_formatted(), print_subexp_standard(), print_symbol(), print_type_scalar(), print_unpacked_pointer(), print_variable_at_address(), print_variable_or_computed(), print_variant_clauses(), printf_floating(), process_coff_symbol(), ptrmath_type_p(), py_print_value(), quirk_gcc_member_function_pointer(), rank_one_type(), read_args(), read_call_site_scope(), read_enum_type(), read_enumeration_type(), read_fat_string_value(), read_member_functions(), read_namespace_alias(), read_one_struct_field(), read_struct_type(), read_structure_type(), read_subrange_type(), read_tag_const_type(), read_tag_ptr_to_member_type(), read_tag_volatile_type(), read_type(), recursive_dump_type(), require_rvalue(), resolve_dynamic_array(), resolve_dynamic_range(), resolve_dynamic_struct(), resolve_dynamic_type_internal(), resolve_dynamic_union(), resolve_subexp(), result_type_of_xmethod(), return_command(), return_match(), rl78_pointer_to_address(), rs6000_convert_register_p(), rs6000_lynx178_push_dummy_call(), rs6000_lynx178_return_value(), rs6000_push_dummy_call(), rs6000_register_to_value(), rs6000_return_value(), rs6000_value_to_register(), rust_chartype_p(), rust_composite_type(), rust_evaluate_funcall(), rust_evaluate_subexp(), rust_get_trait_object_pointer(), rust_print_struct_def(), rust_print_type(), rust_range_type_p(), rust_slice_type_p(), rust_subscript(), rust_tuple_type_p(), rust_type_alignment(), rust_u8_type_p(), rust_underscore_fields(), rust_val_print(), rx_push_dummy_call(), rx_return_value(), s390_effective_inner_type(), s390_function_arg_float(), s390_function_arg_integer(), s390_function_arg_vector(), s390_push_dummy_call(), s390_register_return_value(), s390_return_value(), scalar_binop(), scalar_type_p(), score_push_dummy_call(), score_return_value(), score_type_needs_double_align(), search_symbols(), set_decnumber_context(), set_die_type(), set_internalvar(), set_type_code(), set_type_self_type(), set_type_vptr_basetype(), set_type_vptr_fieldno(), sh64_extract_return_value(), sh64_media_print_registers_info(), sh64_print_register(), sh64_push_dummy_call(), sh64_store_return_value(), sh_is_renesas_calling_convention(), sh_push_dummy_call_fpu(), sh_push_dummy_call_nofpu(), sh_treat_as_flt_p(), sh_use_struct_convention(), slot_alignment_is_next_even(), smash_to_memberptr_type(), smash_to_method_type(), smash_to_methodptr_type(), sparc32_extract_return_value(), sparc32_store_arguments(), sparc32_struct_return_from_sym(), sparc64_16_byte_align_p(), sparc64_complex_floating_p(), sparc64_extract_floating_fields(), sparc64_extract_return_value(), sparc64_floating_p(), sparc64_integral_or_pointer_p(), sparc64_store_floating_fields(), sparc64_store_return_value(), sparc64_structure_or_union_p(), sparc_arg_on_registers_p(), sparc_complex_floating_p(), sparc_floating_p(), sparc_integral_or_pointer_p(), sparc_structure_or_union_p(), sparc_structure_return_p(), spu_return_value(), spu_scalar_value_p(), store_regs(), store_typed_address(), stpy_convert_to_value(), stpy_lazy_string_elt_type(), struct_return_convention(), symbol_is_function_or_method(), symbols_are_identical_enums(), target_float_format_length(), target_float_is_valid(), target_float_is_zero(), target_float_same_category_p(), target_float_same_format_p(), target_float_to_string(), template_to_static_fixed_type(), thin_data_pntr(), tic6x_arg_type_alignment(), tic6x_push_dummy_call(), tilegx_type_is_scalar(), to_fixed_range_type(), to_fixed_variant_branch_type(), to_record_with_fixed_variant_part(), to_static_fixed_type(), type_aggregate_p(), type_is_full_subrange_of_target_type(), typecmp(), types_equal(), typy_fields(), typy_get_code(), typy_get_composite(), typy_range(), tyscm_get_composite(), ui_printf(), unop_user_defined_p(), unpack_long(), update_watchpoint(), upgrade_type(), user_select_syms(), using_struct_return(), v850_type_is_scalar(), v850_use_struct_convention(), val_print_array_elements(), val_print_scalar_type_p(), val_print_type_code_flags(), valprint_check_validity(), valpy_binop_throw(), valpy_call(), valpy_float(), valpy_get_dynamic_type(), valpy_getitem(), valpy_lazy_string(), valpy_long(), valpy_nonzero(), valpy_referenced_value(), value_actual_type(), value_addr(), value_aggregate_elt(), value_arg_coerce(), value_args_as_target_float(), value_as_address(), value_assign(), value_binop(), value_cast(), value_cast_pointers(), value_cast_structs(), value_check_printable(), value_complement(), value_concat(), value_dynamic_cast(), value_equal(), value_equal_contents(), value_find_oload_method_list(), value_has_field(), value_in(), value_ind(), value_less(), value_must_coerce_to_target(), value_neg(), value_one(), value_pos(), value_ptrdiff(), value_ref(), value_reinterpret_cast(), value_rtti_indirect_type(), value_slice(), value_struct_element_index(), value_struct_elt(), value_struct_elt_bitpos(), value_struct_elt_for_reference(), value_subscript(), value_subscript_packed(), value_val_atr(), value_vector_widen(), value_x_binop(), value_x_unop(), variant_field_index(), varobj_default_value_is_changeable_p(), varobj_editable_p(), vax_return_value(), vb_match(), vector_binop(), vector_relop(), vlscm_binop(), vlscm_convert_typed_number(), whatis_exp(), x_command(), xstormy16_address_to_pointer(), xstormy16_pointer_to_address(), xstormy16_type_is_scalar(), xtensa_push_dummy_call(), xtensa_return_value(), and yyparse().

◆ TYPE_CODE_SPACE

#define TYPE_CODE_SPACE (   t)    ((TYPE_INSTANCE_FLAGS (t) & TYPE_INSTANCE_FLAG_CODE_SPACE) != 0)

Instruction-space delimited type. This is for Harvard architectures which have separate instruction and data address spaces (and perhaps others).

GDB usually defines a flat address space that is a superset of the architecture's two (or more) address spaces, but this is an extension of the architecture's model.

If TYPE_INSTANCE_FLAG_CODE_SPACE is set, an object of the corresponding type resides in instruction memory, even if its address (in the extended flat address space) does not reflect this.

Similarly, if TYPE_INSTANCE_FLAG_DATA_SPACE is set, then an object of the corresponding type resides in the data memory space, even if this is not indicated by its (flat address space) address.

If neither flag is set, the default space for functions / methods is instruction space, and for data objects is data memory.

Definition at line 354 of file gdbtypes.h.

Referenced by avr_pointer_to_address(), iq2000_pointer_to_address(), recursive_dump_type(), and rl78_pointer_to_address().

◆ TYPE_CONST

#define TYPE_CONST (   t)    ((TYPE_INSTANCE_FLAGS (t) & TYPE_INSTANCE_FLAG_CONST) != 0)

◆ TYPE_CPLUS_DYNAMIC

#define TYPE_CPLUS_DYNAMIC (   thistype)    TYPE_CPLUS_SPECIFIC (thistype)->is_dynamic

Definition at line 1336 of file gdbtypes.h.

Referenced by dwarf2_add_member_fn(), and gnuv3_dynamic_class().

◆ TYPE_CPLUS_SPECIFIC

#define TYPE_CPLUS_SPECIFIC (   thistype)
Value:
(!HAVE_CPLUS_STRUCT(thistype) \
const struct cplus_struct_type cplus_struct_default
Definition: gdbtypes.c:2779
#define TYPE_RAW_CPLUS_SPECIFIC(thistype)
Definition: gdbtypes.h:1323
#define HAVE_CPLUS_STRUCT(type)
Definition: gdbtypes.h:1199

Definition at line 1319 of file gdbtypes.h.

Referenced by recursive_dump_type().

◆ TYPE_DATA_LOCATION

#define TYPE_DATA_LOCATION (   thistype)    get_dyn_prop (DYN_PROP_DATA_LOCATION, thistype)

◆ TYPE_DATA_LOCATION_ADDR

#define TYPE_DATA_LOCATION_ADDR (   thistype)    TYPE_DATA_LOCATION (thistype)->data.const_val

◆ TYPE_DATA_LOCATION_BATON

#define TYPE_DATA_LOCATION_BATON (   thistype)    TYPE_DATA_LOCATION (thistype)->data.baton

Definition at line 1260 of file gdbtypes.h.

◆ TYPE_DATA_LOCATION_KIND

#define TYPE_DATA_LOCATION_KIND (   thistype)    TYPE_DATA_LOCATION (thistype)->kind

◆ TYPE_DATA_SPACE

#define TYPE_DATA_SPACE (   t)    ((TYPE_INSTANCE_FLAGS (t) & TYPE_INSTANCE_FLAG_DATA_SPACE) != 0)

Definition at line 357 of file gdbtypes.h.

Referenced by recursive_dump_type().

◆ TYPE_DECLARED_CLASS

#define TYPE_DECLARED_CLASS (   t)    (TYPE_MAIN_TYPE (t)->flag_declared_class)

True if this type was declared using the "class" keyword. This is only valid for C++ structure and enum types. If false, a structure was declared as a "struct"; if true it was declared "class". For enum types, this is true when "enum class" or "enum struct" was used to declare the type..

Definition at line 299 of file gdbtypes.h.

Referenced by c_type_print_base_1(), c_type_print_base_struct_union(), determine_prefix(), enum_constant_from_type(), need_access_label_p(), rank_one_type(), read_enumeration_type(), read_structure_type(), and type_aggregate_p().

◆ TYPE_DESCRIPTIVE_TYPE

#define TYPE_DESCRIPTIVE_TYPE (   thistype)    TYPE_GNAT_SPECIFIC(thistype)->descriptive_type

◆ TYPE_DYN_PROP_ADDR

#define TYPE_DYN_PROP_ADDR (   dynprop)    dynprop->data.const_val

◆ TYPE_DYN_PROP_BATON

#define TYPE_DYN_PROP_BATON (   dynprop)    dynprop->data.baton

Definition at line 1276 of file gdbtypes.h.

◆ TYPE_DYN_PROP_KIND

#define TYPE_DYN_PROP_KIND (   dynprop)    dynprop->kind

◆ TYPE_DYN_PROP_LIST

#define TYPE_DYN_PROP_LIST (   thistype)    TYPE_MAIN_TYPE(thistype)->dyn_prop_list

◆ TYPE_ERROR_NAME

#define TYPE_ERROR_NAME (   type)    (TYPE_NAME (type) ? TYPE_NAME (type) : _("<error type>"))

A helper macro that returns the name of an error type. If the type has a name, it is used; otherwise, a default is used.

Definition at line 1489 of file gdbtypes.h.

Referenced by c_type_print_base_1(), f_type_print_base(), generic_val_print(), and pascal_type_print_base().

◆ TYPE_FIELD

#define TYPE_FIELD (   thistype,
 
)    TYPE_MAIN_TYPE(thistype)->flds_bnds.fields[n]

◆ TYPE_FIELD_ARTIFICIAL

#define TYPE_FIELD_ARTIFICIAL (   thistype,
 
)    FIELD_ARTIFICIAL(TYPE_FIELD(thistype,n))

◆ TYPE_FIELD_BITPOS

#define TYPE_FIELD_BITPOS (   thistype,
 
)    FIELD_BITPOS (TYPE_FIELD (thistype, n))

◆ TYPE_FIELD_BITSIZE

#define TYPE_FIELD_BITSIZE (   thistype,
 
)    FIELD_BITSIZE(TYPE_FIELD(thistype,n))

◆ TYPE_FIELD_DWARF_BLOCK

#define TYPE_FIELD_DWARF_BLOCK (   thistype,
 
)    FIELD_DWARF_BLOCK (TYPE_FIELD (thistype, n))

Definition at line 1378 of file gdbtypes.h.

◆ TYPE_FIELD_ENUMVAL

#define TYPE_FIELD_ENUMVAL (   thistype,
 
)    FIELD_ENUMVAL (TYPE_FIELD (thistype, n))

◆ TYPE_FIELD_IGNORE

#define TYPE_FIELD_IGNORE (   thistype,
 
)
Value:
(TYPE_CPLUS_SPECIFIC(thistype)->ignore_field_bits == NULL ? 0 \
#define B_TST(a, x)
Definition: gdbtypes.h:72
B_TYPE * ignore_field_bits
Definition: gdbtypes.h:990
#define TYPE_CPLUS_SPECIFIC(thistype)
Definition: gdbtypes.h:1319

Definition at line 1405 of file gdbtypes.h.

Referenced by cp_print_value_fields(), pascal_object_print_value_fields(), and print_field_values().

◆ TYPE_FIELD_IGNORE_BITS

#define TYPE_FIELD_IGNORE_BITS (   thistype)    TYPE_CPLUS_SPECIFIC(thistype)->ignore_field_bits

Definition at line 1387 of file gdbtypes.h.

Referenced by attach_fields_to_type(), and dwarf2_attach_fields_to_type().

◆ TYPE_FIELD_LOC_KIND

#define TYPE_FIELD_LOC_KIND (   thistype,
 
)    FIELD_LOC_KIND (TYPE_FIELD (thistype, n))

◆ TYPE_FIELD_NAME

#define TYPE_FIELD_NAME (   thistype,
 
)    FIELD_NAME(TYPE_FIELD(thistype, n))

Definition at line 1372 of file gdbtypes.h.

Referenced by ada_fixup_array_indexes_type(), ada_get_base_type(), ada_get_field_index(), ada_identical_enum_types_p(), ada_in_variant(), ada_index_struct_field_1(), ada_is_aligner_type(), ada_is_ignored_field(), ada_is_others_clause(), ada_is_parent_field(), ada_is_wrapper_field(), ada_lookup_struct_elt_type(), ada_print_scalar(), ada_search_struct_field(), ada_template_to_fixed_record_type_1(), ada_val_print_enum(), ada_varobj_describe_struct_child(), add_struct_fields(), append_flags_type_field(), c_describe_child(), c_is_path_expr_parent(), c_type_print_base_1(), c_type_print_base_struct_union(), check_field(), coff_read_enum_type(), completion_list_add_fields(), convert_char_literal(), convert_enum(), convert_field(), convert_struct_or_union(), copy_type_recursive(), cp_print_class_member(), cp_print_value_fields(), cplus_describe_child(), do_search_struct_field(), dynamic_array_type(), enum_constant_from_type(), evaluate_struct_tuple(), f_type_print_base(), f_val_print(), field_alignment(), field_name(), find_struct_field(), gccgo_string_p(), gdbscm_type_field(), gdbscm_type_has_field_p(), gen_struct_elt_for_reference(), gen_struct_ref_recursive(), generic_val_print_enum_1(), is_dynamic_field(), is_pascal_string_type(), lookup_struct_elt_type(), m2_enum(), m2_is_long_set(), m2_is_unbounded_array(), m2_record_fields(), parse_old_style_renaming(), pascal_object_print_value_fields(), pascal_type_print_base(), print_choices(), print_enum_type(), print_field_values(), print_selected_record_field_types(), print_type_scalar(), print_unchecked_union_type(), process_structure_scope(), quirk_gcc_member_function_pointer(), read_enum_type(), read_tilde_fields(), recursive_dump_type(), rust_compute_range(), rust_evaluate_subexp(), rust_get_disr_info(), rust_get_trait_object_pointer(), rust_print_struct_def(), rust_print_type(), rust_range_type_p(), rust_subscript(), rust_underscore_fields(), rust_union_is_untagged(), rust_val_print(), store_regs(), template_to_static_fixed_type(), to_record_with_fixed_variant_part(), typy_getitem(), typy_has_key(), val_print_struct(), val_print_type_code_flags(), value_struct_elt_for_reference(), and vb_match().

◆ TYPE_FIELD_PACKED

#define TYPE_FIELD_PACKED (   thistype,
 
)    (FIELD_BITSIZE(TYPE_FIELD(thistype,n))!=0)

◆ TYPE_FIELD_PRIVATE

#define TYPE_FIELD_PRIVATE (   thistype,
 
)
Value:
(TYPE_CPLUS_SPECIFIC(thistype)->private_field_bits == NULL ? 0 \
B_TYPE * private_field_bits
Definition: gdbtypes.h:977
#define B_TST(a, x)
Definition: gdbtypes.h:72
#define TYPE_CPLUS_SPECIFIC(thistype)
Definition: gdbtypes.h:1319

Definition at line 1399 of file gdbtypes.h.

Referenced by c_type_print_base_struct_union(), cplus_class_num_children(), match_accessibility(), need_access_label_p(), and pascal_type_print_base().

◆ TYPE_FIELD_PRIVATE_BITS

#define TYPE_FIELD_PRIVATE_BITS (   thistype)    TYPE_CPLUS_SPECIFIC(thistype)->private_field_bits

◆ TYPE_FIELD_PROTECTED

#define TYPE_FIELD_PROTECTED (   thistype,
 
)
Value:
(TYPE_CPLUS_SPECIFIC(thistype)->protected_field_bits == NULL ? 0 \
#define B_TST(a, x)
Definition: gdbtypes.h:72
#define TYPE_CPLUS_SPECIFIC(thistype)
Definition: gdbtypes.h:1319
B_TYPE * protected_field_bits
Definition: gdbtypes.h:985

Definition at line 1402 of file gdbtypes.h.

Referenced by c_type_print_base_struct_union(), cp_type_print_derivation_info(), cplus_class_num_children(), match_accessibility(), need_access_label_p(), and pascal_type_print_base().

◆ TYPE_FIELD_PROTECTED_BITS

#define TYPE_FIELD_PROTECTED_BITS (   thistype)    TYPE_CPLUS_SPECIFIC(thistype)->protected_field_bits

◆ TYPE_FIELD_STATIC_PHYSADDR

#define TYPE_FIELD_STATIC_PHYSADDR (   thistype,
 
)    FIELD_STATIC_PHYSADDR (TYPE_FIELD (thistype, n))

Definition at line 1377 of file gdbtypes.h.

Referenced by copy_type_recursive(), gen_static_field(), and value_static_field().

◆ TYPE_FIELD_STATIC_PHYSNAME

#define TYPE_FIELD_STATIC_PHYSNAME (   thistype,
 
)    FIELD_STATIC_PHYSNAME (TYPE_FIELD (thistype, n))

Definition at line 1376 of file gdbtypes.h.

Referenced by copy_type_recursive(), gen_static_field(), and value_static_field().

◆ TYPE_FIELD_TYPE

#define TYPE_FIELD_TYPE (   thistype,
 
)    FIELD_TYPE(TYPE_FIELD(thistype, n))

Definition at line 1371 of file gdbtypes.h.

Referenced by aarch64_store_return_value(), aarch64_type_align(), ada_aligned_type(), ada_aligned_value_addr(), ada_args_match(), ada_array_bound_from_type(), ada_fixup_array_indexes_type(), ada_get_base_type(), ada_index_struct_field_1(), ada_is_ignored_field(), ada_is_redundant_index_type_desc(), ada_is_variant_part(), ada_lookup_struct_elt_type(), ada_parent_type(), ada_print_symbol_signature(), ada_search_struct_field(), ada_template_to_fixed_record_type_1(), ada_value_primitive_field(), ada_varobj_struct_elt(), add_struct_fields(), amd64_classify_aggregate(), append_flags_type_field(), arm_return_in_memory(), arm_type_align(), arm_vfp_cprc_sub_candidate(), BP_MANIPULATION(), c_describe_child(), c_get_string(), c_print_type_struct_field_offset(), c_print_type_union_field_offset(), c_type_print_args(), c_type_print_base_1(), c_type_print_base_struct_union(), c_val_print_struct(), call_function_by_hand_dummy(), compare_parameters(), compile_object_run(), constrained_packed_array_type(), convert_field(), convert_func(), convert_struct_or_union(), copy_type_recursive(), cp_find_class_member(), cp_print_value_fields(), cplus_describe_child(), create_set_type(), define_symbol(), desc_bound_bitsize(), desc_data_target_type(), do_search_struct_field(), dwarf2_add_member_fn(), dwarf2_compute_name(), dynamic_array_type(), evaluate_funcall(), evaluate_struct_tuple(), evaluate_subexp_modula2(), f_type_print_base(), f_val_print(), fake_method::fake_method(), fat_pntr_bounds_bitsize(), fat_pntr_data_bitsize(), find_oload_champ(), find_struct_field(), finish_block_internal(), fp_register_arg_p(), gccgo_string_p(), gen_primitive_field(), gen_static_field(), generate_vla_size(), get_long_set_bounds(), get_regs_type(), get_symbol_field_type(), gnuv2_baseclass_offset(), gnuv3_dynamic_class(), gnuv3_find_method_in(), gnuv3_pass_by_reference(), i386_16_byte_align_p(), i386_darwin_arg_type_alignment(), i386_reg_struct_return_p(), i386_return_value(), is_dynamic_field(), is_dynamic_type_internal(), is_float_or_hfa_type_recurse(), is_hfa_or_hva(), is_pascal_string_type(), is_scalar_type_recursive(), lookup_function_type_with_arguments(), lookup_struct_elt_type(), m2_is_long_set(), m2_is_long_set_of_type(), m2_is_unbounded_array(), m2_long_set(), m2_print_long_set(), m2_print_unbounded_array(), m2_procedure(), m2_record_fields(), m2_unbounded_array(), m68k_svr4_return_value(), m88k_8_byte_align_p(), make_array_descriptor(), mips_eabi_return_value(), mips_n32n64_fp_arg_chunk_p(), mips_n32n64_return_value(), mips_o32_return_value(), mips_type_needs_double_align(), mn10300_type_align(), mn10300_use_struct_convention(), nds32_check_calling_use_fpr(), nds32_type_align(), parse_symbol(), pascal_object_print_value_fields(), pascal_print_func_args(), pascal_type_print_base(), pascal_val_print(), ppc64_aggregate_candidate(), ppc64_sysv_abi_push_param(), print_array_type(), print_field_values(), print_func_type(), print_go_string(), print_selected_record_field_types(), print_unchecked_union_type(), print_variant_clauses(), print_variant_part(), quirk_gcc_member_function_pointer(), rank_one_type(), read_fat_string_value(), read_subroutine_type(), read_type(), recursive_dump_type(), resolve_dynamic_struct(), resolve_dynamic_union(), rust_composite_type(), rust_evaluate_funcall(), rust_evaluate_subexp(), rust_get_disr_info(), rust_print_struct_def(), rust_print_type(), rust_subscript(), rust_type_alignment(), rust_val_print(), rx_push_dummy_call(), s390_effective_inner_type(), score_type_needs_double_align(), sh_treat_as_flt_p(), sh_use_struct_convention(), slot_alignment_is_next_even(), sparc64_16_byte_align_p(), sparc64_extract_floating_fields(), sparc64_store_floating_fields(), static_unwrap_type(), store_regs(), template_to_static_fixed_type(), to_fixed_array_type(), to_fixed_variant_branch_type(), to_record_with_fixed_variant_part(), types_equal(), unpack_field_as_long(), unpack_value_field_as_long(), v850_eight_byte_align_p(), v850_use_struct_convention(), val_print_struct(), val_print_type_code_flags(), value_field_bitfield(), value_primitive_field(), value_static_field(), value_struct_elt_bitpos(), value_struct_elt_for_reference(), vb_match(), vtable_ptrdiff_type(), and yyparse().

◆ TYPE_FIELD_VIRTUAL

#define TYPE_FIELD_VIRTUAL (   thistype,
 
)
Value:
(TYPE_CPLUS_SPECIFIC(thistype)->virtual_field_bits == NULL ? 0 \
#define B_TST(a, x)
Definition: gdbtypes.h:72
#define TYPE_CPLUS_SPECIFIC(thistype)
Definition: gdbtypes.h:1319
B_TYPE * virtual_field_bits
Definition: gdbtypes.h:969

Definition at line 1408 of file gdbtypes.h.

◆ TYPE_FIELD_VIRTUAL_BITS

#define TYPE_FIELD_VIRTUAL_BITS (   thistype)    TYPE_CPLUS_SPECIFIC(thistype)->virtual_field_bits

Definition at line 1389 of file gdbtypes.h.

Referenced by dwarf2_attach_fields_to_type(), print_cplus_stuff(), and read_baseclasses().

◆ TYPE_FIELDS

#define TYPE_FIELDS (   thistype)    TYPE_MAIN_TYPE(thistype)->flds_bnds.fields

◆ TYPE_FIXED_INSTANCE

#define TYPE_FIXED_INSTANCE (   t)    (TYPE_MAIN_TYPE (t)->flag_fixed_instance)

The debugging formats (especially STABS) do not contain enough information to represent all Ada types—especially those whose size depends on dynamic quantities. Therefore, the GNAT Ada compiler includes extra information in the form of additional type definitions connected by naming conventions. This flag indicates that the type is an ordinary (unencoded) GDB type that has been created from the necessary run-time information, and does not need further interpretation. Optionally marks ordinary, fixed-size GDB type.

Definition at line 264 of file gdbtypes.h.

Referenced by ada_array_bound_from_type(), ada_template_to_fixed_record_type_1(), constrained_packed_array_type(), recursive_dump_type(), template_to_static_fixed_type(), to_fixed_array_type(), to_fixed_record_type(), to_record_with_fixed_variant_part(), and to_static_fixed_type().

◆ TYPE_FLAG_ENUM

#define TYPE_FLAG_ENUM (   t)    (TYPE_MAIN_TYPE (t)->flag_flag_enum)

True if this type is a "flag" enum. A flag enum is one where all the values are pairwise disjoint when "and"ed together. This affects how enum values are printed.

Definition at line 305 of file gdbtypes.h.

Referenced by generic_val_print_enum_1(), and update_enumeration_type_from_children().

◆ TYPE_FLOATFORMAT

#define TYPE_FLOATFORMAT (   thistype)    TYPE_MAIN_TYPE(thistype)->type_specific.floatformat

◆ TYPE_FN_FIELD

#define TYPE_FN_FIELD (   thisfn,
 
)    (thisfn)[n]

Definition at line 1425 of file gdbtypes.h.

◆ TYPE_FN_FIELD_ARGS

#define TYPE_FN_FIELD_ARGS (   thisfn,
 
)    TYPE_FIELDS ((thisfn)[n].type)

Definition at line 1428 of file gdbtypes.h.

Referenced by dump_fn_fieldlists(), find_oload_champ(), and search_struct_method().

◆ TYPE_FN_FIELD_ARTIFICIAL

#define TYPE_FN_FIELD_ARTIFICIAL (   thisfn,
 
)    ((thisfn)[n].is_artificial)

◆ TYPE_FN_FIELD_CONST

#define TYPE_FN_FIELD_CONST (   thisfn,
 
)    ((thisfn)[n].is_const)

◆ TYPE_FN_FIELD_CONSTRUCTOR

#define TYPE_FN_FIELD_CONSTRUCTOR (   thisfn,
 
)    ((thisfn)[n].is_constructor)

Definition at line 1435 of file gdbtypes.h.

Referenced by c_type_print_base_struct_union(), gnuv3_pass_by_reference(), and VEC().

◆ TYPE_FN_FIELD_FCONTEXT

#define TYPE_FN_FIELD_FCONTEXT (   thisfn,
 
)    ((thisfn)[n].fcontext)

Definition at line 1436 of file gdbtypes.h.

Referenced by dump_fn_fieldlists(), and gnuv2_virtual_fn_field().

◆ TYPE_FN_FIELD_PHYSNAME

#define TYPE_FN_FIELD_PHYSNAME (   thisfn,
 
)    (thisfn)[n].physname

◆ TYPE_FN_FIELD_PRIVATE

#define TYPE_FN_FIELD_PRIVATE (   thisfn,
 
)    ((thisfn)[n].is_private)

◆ TYPE_FN_FIELD_PROTECTED

#define TYPE_FN_FIELD_PROTECTED (   thisfn,
 
)    ((thisfn)[n].is_protected)

◆ TYPE_FN_FIELD_STATIC_P

#define TYPE_FN_FIELD_STATIC_P (   thisfn,
 
)    ((thisfn)[n].voffset == VOFFSET_STATIC)

◆ TYPE_FN_FIELD_STUB

#define TYPE_FN_FIELD_STUB (   thisfn,
 
)    ((thisfn)[n].is_stub)

◆ TYPE_FN_FIELD_TYPE

#define TYPE_FN_FIELD_TYPE (   thisfn,
 
)    (thisfn)[n].type

◆ TYPE_FN_FIELD_VIRTUAL_P

#define TYPE_FN_FIELD_VIRTUAL_P (   thisfn,
 
)    ((thisfn)[n].voffset > 1)

◆ TYPE_FN_FIELD_VOFFSET

#define TYPE_FN_FIELD_VOFFSET (   thisfn,
 
)    ((thisfn)[n].voffset-2)

◆ TYPE_FN_FIELD_VOLATILE

#define TYPE_FN_FIELD_VOLATILE (   thisfn,
 
)    ((thisfn)[n].is_volatile)

◆ TYPE_FN_FIELDLIST

#define TYPE_FN_FIELDLIST (   thistype,
 
)    TYPE_CPLUS_SPECIFIC(thistype)->fn_fieldlists[n]

◆ TYPE_FN_FIELDLIST1

#define TYPE_FN_FIELDLIST1 (   thistype,
 
)    TYPE_CPLUS_SPECIFIC(thistype)->fn_fieldlists[n].fn_fields

◆ TYPE_FN_FIELDLIST_LENGTH

#define TYPE_FN_FIELDLIST_LENGTH (   thistype,
 
)    TYPE_CPLUS_SPECIFIC(thistype)->fn_fieldlists[n].length

◆ TYPE_FN_FIELDLIST_NAME

#define TYPE_FN_FIELDLIST_NAME (   thistype,
 
)    TYPE_CPLUS_SPECIFIC(thistype)->fn_fieldlists[n].name

◆ TYPE_FN_FIELDLISTS

#define TYPE_FN_FIELDLISTS (   thistype)    TYPE_CPLUS_SPECIFIC(thistype)->fn_fieldlists

◆ TYPE_GNAT_SPECIFIC

#define TYPE_GNAT_SPECIFIC (   thistype)    TYPE_MAIN_TYPE(thistype)->type_specific.gnat_stuff

Definition at line 1325 of file gdbtypes.h.

Referenced by allocate_gnat_aux_type(), and recursive_dump_type().

◆ TYPE_GNU_IFUNC

#define TYPE_GNU_IFUNC (   t)    (TYPE_MAIN_TYPE (t)->flag_gnu_ifunc)

Used only for TYPE_CODE_FUNC where it specifies the real function address is returned by this function call. TYPE_TARGET_TYPE determines the final returned function type to be presented to user.

Definition at line 283 of file gdbtypes.h.

Referenced by convert_one_symbol(), find_function_addr(), find_pc_partial_function_gnu_ifunc(), gcc_symbol_address(), and objfile_type().

◆ TYPE_HIGH_BOUND

#define TYPE_HIGH_BOUND (   range_type)    TYPE_RANGE_DATA(range_type)->high.data.const_val

◆ TYPE_HIGH_BOUND_KIND

#define TYPE_HIGH_BOUND_KIND (   range_type)    TYPE_RANGE_DATA(range_type)->high.kind

◆ TYPE_HIGH_BOUND_UNDEFINED

#define TYPE_HIGH_BOUND_UNDEFINED (   range_type)    (TYPE_RANGE_DATA(range_type)->high.kind == PROP_UNDEFINED)

Definition at line 1250 of file gdbtypes.h.

Referenced by ada_tasks_inferior_data_sniffer(), and recursive_dump_type().

◆ TYPE_INCOMPLETE

#define TYPE_INCOMPLETE (   t)    (TYPE_MAIN_TYPE (t)->flag_incomplete)

This flag is used to indicate that processing for this type is incomplete.

(Mostly intended for HP platforms, where class methods, for instance, can be encountered before their classes in the debug info; the incomplete type has to be marked so that the class and the method can be assigned correct types.)

Definition at line 242 of file gdbtypes.h.

Referenced by recursive_dump_type().

◆ TYPE_INDEX_TYPE

#define TYPE_INDEX_TYPE (   type)    TYPE_FIELD_TYPE (type, 0)

◆ TYPE_INSTANCE_FLAG_ADDRESS_CLASS_ALL

#define TYPE_INSTANCE_FLAG_ADDRESS_CLASS_ALL   (TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1 | TYPE_INSTANCE_FLAG_ADDRESS_CLASS_2)

◆ TYPE_INSTANCE_FLAGS

#define TYPE_INSTANCE_FLAGS (   thistype)    (thistype)->instance_flags

◆ TYPE_IS_OPAQUE

#define TYPE_IS_OPAQUE (   thistype)
Value:
(((TYPE_CODE (thistype) == TYPE_CODE_STRUCT) \
|| (TYPE_CODE (thistype) == TYPE_CODE_UNION)) \
&& (TYPE_NFIELDS (thistype) == 0) \
&& (!HAVE_CPLUS_STRUCT (thistype) \
|| TYPE_NFN_FIELDS (thistype) == 0) \
&& (TYPE_STUB (thistype) || !TYPE_STUB_SUPPORTED (thistype)))
#define TYPE_NFN_FIELDS(thistype)
Definition: gdbtypes.h:1311
#define TYPE_STUB_SUPPORTED(t)
Definition: gdbtypes.h:271
#define TYPE_CODE(thistype)
Definition: gdbtypes.h:1238
#define HAVE_CPLUS_STRUCT(type)
Definition: gdbtypes.h:1199
#define TYPE_NFIELDS(thistype)
Definition: gdbtypes.h:1239
#define TYPE_STUB(t)
Definition: gdbtypes.h:217

Definition at line 1472 of file gdbtypes.h.

Referenced by basic_lookup_transparent_type_1(), basic_lookup_transparent_type_quick(), block_find_non_opaque_type(), block_find_non_opaque_type_preferred(), and check_typedef().

◆ TYPE_IS_REFERENCE

#define TYPE_IS_REFERENCE (   t)    (TYPE_CODE (t) == TYPE_CODE_REF || TYPE_CODE (t) == TYPE_CODE_RVALUE_REF)

True if this type represents either an lvalue or lvalue reference type.

Definition at line 332 of file gdbtypes.h.

Referenced by aarch64_store_return_value(), adjust_value_for_child_access(), amd64_classify(), arm_extract_return_value(), arm_store_return_value(), binop_types_user_defined_p(), BP_MANIPULATION(), c_print_type_1(), c_type_print_modifier(), c_value_of_variable(), c_value_print(), coerce_ref(), coerce_ref_if_computed(), complete_expression(), cplus_describe_child(), cplus_number_of_children(), do_ppc_sysv_return_value(), entry_data_value_coerce_ref(), evaluate_subexp_for_address(), evaluate_subexp_for_sizeof(), evaluate_subexp_standard(), extract_typed_address(), find_overload_match(), gdbpy_get_xmethod_result_type(), gdbpy_invoke_xmethod(), generate_vla_size(), info_mach_region_command(), lookup_symbol_aux(), m32c_m16c_address_to_pointer(), m32c_m16c_pointer_to_address(), m32c_reg_arg_type(), make_symbol_overload_list_adl_namespace(), msp430_push_dummy_call(), pointer_type(), ppc64_sysv_abi_push_param(), ppc64_sysv_abi_return_value(), ptrmath_type_p(), rank_one_type(), s390_function_arg_integer(), store_typed_address(), typecmp(), typy_get_composite(), typy_template_argument(), unop_user_defined_p(), val_print_scalar_type_p(), valpy_get_dynamic_type(), value_actual_type(), value_addr(), value_arg_coerce(), value_as_address(), value_cast(), value_cast_pointers(), value_dynamic_cast(), value_find_oload_method_list(), value_has_field(), value_of_dwarf_reg_entry(), value_reinterpret_cast(), value_rtti_indirect_type(), value_struct_elt(), value_struct_elt_bitpos(), varobj_get_value_type(), whatis_exp(), x_command(), and yyparse().

◆ TYPE_LENGTH

#define TYPE_LENGTH (   thistype)    (thistype)->length

Note that if thistype is a TYPEDEF type, you have to call check_typedef. But check_typedef does set the TYPE_LENGTH of the TYPEDEF type, so you only have to call check_typedef once. Since allocate_value calls check_typedef, TYPE_LENGTH (VALUE_TYPE (X)) is safe.

Definition at line 1235 of file gdbtypes.h.

Referenced by aarch64_pseudo_read_value(), aarch64_push_dummy_call(), aarch64_return_in_memory(), aarch64_store_return_value(), aarch64_type_align(), ada_convert_actual(), ada_ensure_varsize_limit(), ada_evaluate_subexp(), ada_exception_message_1(), ada_language_arch_info(), ada_print_type(), ada_printchar(), ada_printstr(), ada_promote_array_of_integrals(), ada_template_to_fixed_record_type_1(), ada_to_fixed_type_1(), ada_type_of_array(), ada_val_print_num(), ada_val_print_string(), ada_value_assign(), ada_value_binop(), ada_value_equal(), ada_value_primitive_packed_val(), ada_value_print(), ada_value_slice_from_ptr(), address_from_register(), address_to_signed_pointer(), allocate_optimized_out_value(), allocate_stub_method(), allocate_value_contents(), alpha_convert_register_p(), alpha_extract_return_value(), alpha_push_dummy_call(), alpha_register_to_value(), alpha_return_value(), alpha_store_return_value(), alpha_value_to_register(), amd64_classify(), amd64_classify_aggregate(), amd64_get_longjmp_target(), amd64_pseudo_register_read_value(), amd64_push_arguments(), amd64_return_value(), amd64_windows_adjust_args_passed_by_pointer(), amd64_windows_passed_by_integer_register(), amd64_windows_passed_by_xmm_register(), amd64_windows_push_arguments(), amd64_windows_return_value(), amd64_windows_store_arg_in_reg(), append_composite_type_field_aligned(), append_flags_type_field(), arc_extract_return_value(), arc_push_dummy_call(), arc_return_value(), arc_store_return_value(), arch_complex_type(), arch_type(), arm_extract_return_value(), arm_push_dummy_call(), arm_return_in_memory(), arm_store_return_value(), arm_type_align(), arm_vfp_cprc_sub_candidate(), avr_address_to_pointer(), avr_pointer_to_address(), avr_push_dummy_call(), base_types_equal_p(), bfin_extract_return_value(), bfin_push_dummy_call(), bfin_return_value(), bfin_store_return_value(), binop_promote(), BP_MANIPULATION(), build_gdb_vtable_type(), build_std_type_info_type(), c_get_string(), c_number_of_children(), c_print_type_struct_field_offset(), c_print_type_union_field_offset(), c_textual_element_type(), c_type_print_base_struct_union(), c_val_print_array(), call_function_by_hand_dummy(), can_use_hardware_watchpoint(), cast_into_complex(), check_condition(), check_type_length_before_alloc(), check_typedef(), check_types_equal(), coerce_for_assign(), coerce_pieced_ref(), coerce_unspec_val_to_type(), coff_read_enum_type(), coff_read_struct_type(), collection_list::collect_symbol(), decimal_float_ops::compare(), compile_object_load(), constrained_packed_array_type(), convert_enum(), convert_float(), convert_int(), convert_struct_or_union(), regcache::cooked_read_value(), copy_type(), copy_type_recursive(), cp_find_class_member(), cp_print_class_member(), cp_print_value(), cp_print_value_fields_rtti(), create_array_type_with_stride(), create_range_type(), create_set_type(), create_value(), cris_extract_return_value(), cris_push_dummy_call(), cris_return_value(), cris_store_return_value(), darwin_current_sos(), darwin_load_image_infos(), darwin_read_exec_load_addr_from_dyld(), darwin_solib_read_all_image_info_addr(), decimal_from_number(), decimal_to_number(), decode_base_type(), decode_constrained_packed_array(), default_print_one_register_info(), default_read_var_value(), default_value_from_register(), define_symbol(), desc_bound_bitsize(), desc_bounds(), do_examine(), do_ppc_sysv_return_value(), do_search_struct_field(), dump_value_to_file(), dwarf2_add_field(), dwarf2_compute_name(), dwarf2_const_value_attr(), dwarf2_evaluate_loc_desc_full(), dynamic_array_type(), dynamic_cast_check_1(), elf_gnu_ifunc_resolve_by_got(), elf_locate_base(), elf_rel_plt_read(), emit_numeric_character(), empty_record(), encode_actions_1(), ensure_lval(), evaluate_struct_tuple(), evaluate_subexp_c(), evaluate_subexp_for_sizeof(), evaluate_subexp_opencl(), evaluate_subexp_standard(), dwarf_expr_context::execute_stack_op(), f77_get_dynamic_length_of_aggregate(), f77_print_array_1(), f_get_encoding(), f_printstr(), f_val_print(), fake_method::fake_method(), fat_pntr_bounds_bitsize(), fat_pntr_data_bitsize(), fbsd_get_siginfo_type(), dwarf_expr_context::fetch_address(), fetch_const_value_from_synthetic_pointer(), find_function_addr(), find_thread_by_handle(), float_type_from_length(), frame_register_unwind(), frame_unwind_got_optimized(), decimal_float_ops::from_string(), frv_extract_return_value(), frv_push_dummy_call(), frv_store_return_value(), ft32_extract_return_value(), ft32_pointer_to_address(), ft32_return_value(), ft32_store_return_value(), gccgo_string_p(), gdbpy_apply_val_pretty_printer(), gdbscm_apply_val_pretty_printer(), gdbscm_type_sizeof(), gdbscm_value_to_bytevector(), gdbscm_value_to_string(), gen_conversion(), gen_extend(), gen_fetch(), gen_ptrdiff(), gen_scale(), gen_sign_extend(), gen_sizeof(), gen_trace_static_fields(), gen_traced_pop(), generate_register_struct(), generic_emit_char(), generic_printstr(), generic_val_print_array(), generic_val_print_complex(), generic_val_print_ref(), dwarf_evaluate_loc_desc::get_base_type(), get_call_return_value(), get_decimal_float_return_value(), get_discrete_bounds(), get_running_thread_id(), get_signed_type(), get_signed_type_minmax(), get_unsigned_type(), get_unsigned_type_max(), gnuv2_baseclass_offset(), gnuv2_value_rtti_type(), gnuv3_baseclass_offset(), gnuv3_decode_method_ptr(), gnuv3_find_method_in(), gnuv3_make_method_ptr(), gnuv3_method_ptr_size(), gnuv3_method_ptr_to_value(), gnuv3_print_method_ptr(), gnuv3_rtti_type(), h8300_extract_return_value(), h8300_push_dummy_call(), h8300_store_return_value(), h8300_use_struct_convention(), h8300h_extract_return_value(), h8300h_return_value(), h8300h_store_return_value(), h8300h_use_struct_convention(), hppa32_push_dummy_call(), hppa32_return_value(), hppa64_floating_p(), hppa64_integral_or_pointer_p(), hppa64_push_dummy_call(), hppa64_return_value(), i386_16_byte_align_p(), i386_convert_register_p(), i386_darwin_arg_type_alignment(), i386_darwin_push_dummy_call(), i386_extract_return_value(), i386_m128_p(), i386_mpx_info_bounds(), i386_mpx_set_bounds(), i386_pseudo_register_read_into_value(), i386_pseudo_register_write(), i386_push_dummy_call(), i386_reg_struct_return_p(), i386_register_to_value(), i386_return_value(), i386_store_return_value(), i386_value_to_register(), ia64_extract_return_value(), ia64_push_dummy_call(), ia64_store_return_value(), ia64_use_struct_convention(), indirect_pieced_value(), info_scope_command(), init_array_element(), init_complex_type(), init_regcache_descr(), init_type(), iq2000_address_to_pointer(), iq2000_extract_return_value(), iq2000_pass_8bytetype_by_address(), iq2000_pointer_to_address(), iq2000_push_dummy_call(), iq2000_store_return_value(), iq2000_use_struct_convention(), is_float_or_hfa_type_recurse(), is_hfa_or_hva(), is_pascal_string_type(), jit_read_code_entry(), jit_read_descriptor(), ld_so_xfer_auxv(), linux_get_siginfo_data(), linux_get_siginfo_type_with_fields(), linux_make_mappings_callback(), linux_make_mappings_corefile_notes(), list_arg_or_local(), lm32_extract_return_value(), lm32_return_value(), lm32_store_return_value(), lookup_opencl_vector_type(), lval_func_check_synthetic_pointer(), lval_func_read(), lval_func_write(), m2_array(), m2_get_discrete_bounds(), m2_print_array_contents(), m2_val_print(), m32c_cat_read(), m32c_cat_write(), m32c_find_part(), m32c_m16c_address_to_pointer(), m32c_m16c_pointer_to_address(), m32c_part_read(), m32c_push_dummy_call(), m32c_r3r2r1r0_read(), m32c_r3r2r1r0_write(), m32c_return_value(), m32r_extract_return_value(), m32r_push_dummy_call(), m32r_return_value(), m32r_store_return_value(), m68hc11_extract_return_value(), m68hc11_push_dummy_call(), m68hc11_return_value(), m68hc11_store_return_value(), m68k_extract_return_value(), m68k_push_dummy_call(), m68k_reg_struct_return_p(), m68k_return_value(), m68k_store_return_value(), m68k_svr4_extract_return_value(), m68k_svr4_return_value(), m68k_svr4_store_return_value(), m68kbsd_fpreg_offset(), m88k_8_byte_align_p(), m88k_floating_p(), m88k_in_register_p(), m88k_integral_or_pointer_p(), m88k_return_value(), m88k_store_arguments(), make_function_type(), tdesc_type_with_fields::make_gdb_type_struct(), make_pointer_type(), make_qualified_type(), make_reference_type(), match_endianness(), max_of_type(), mep_extract_return_value(), mep_pseudo_cr32_read(), mep_pseudo_cr32_write(), mep_push_dummy_call(), mep_return_value(), mep_store_return_value(), mep_use_struct_convention(), microblaze_extract_return_value(), microblaze_stabs_argument_has_addr(), microblaze_store_return_value(), min_of_type(), mips_convert_register_float_case_p(), mips_convert_register_gpreg_case_p(), mips_eabi_push_dummy_call(), mips_eabi_return_value(), mips_integer_to_address(), mips_n32n64_fp_arg_chunk_p(), mips_n32n64_push_dummy_call(), mips_n32n64_return_value(), mips_o32_push_dummy_call(), mips_o32_return_value(), mips_o64_push_dummy_call(), mips_o64_return_value(), mips_pseudo_register_type(), mips_register_to_value(), mips_type_needs_double_align(), mips_value_to_register(), mn10300_extract_return_value(), mn10300_push_dummy_call(), mn10300_store_return_value(), mn10300_type_align(), mn10300_use_struct_convention(), moxie_extract_return_value(), moxie_return_value(), moxie_store_return_value(), msp430_push_dummy_call(), msp430_return_value(), mt_push_dummy_call(), mt_return_value(), nds32_extract_return_value(), nds32_push_dummy_call(), nds32_return_value(), nds32_store_return_value(), nds32_type_align(), nios2_extract_return_value(), nios2_push_dummy_call(), nios2_return_value(), nios2_store_return_value(), obsd_auxv_parse(), open_symbol_file_object(), opencl_logical_not(), or1k_push_dummy_call(), or1k_return_value(), pack_long(), pack_unsigned_long(), parse_find_args(), parse_symbol(), pascal_object_print_value(), pascal_printstr(), pascal_type_print_varspec_prefix(), pascal_val_print(), pass_in_v_or_stack(), pass_in_x(), pass_in_x_or_stack(), pass_on_stack(), patch_opaque_types(), patch_type(), ppc64_aggregate_candidate(), ppc64_elfv2_abi_homogeneous_aggregate(), ppc64_sysv_abi_push_dummy_call(), ppc64_sysv_abi_push_freg(), ppc64_sysv_abi_push_param(), ppc64_sysv_abi_return_value(), ppc64_sysv_abi_return_value_base(), ppc_linux_return_value(), ppc_sysv_abi_push_dummy_call(), ppcnbsd_return_value(), print_formatted(), print_frame_args(), print_scalar_formatted(), print_symbol(), print_unpacked_pointer(), printf_wide_c_string(), process_coff_symbol(), procfs_address_to_host_pointer(), procfs_can_use_hw_breakpoint(), push_large_arguments(), pyuw_sniffer(), rank_one_type(), read_array_type(), read_enum_type(), read_enumeration_type(), read_frame_arg(), read_known_tasks_array(), read_known_tasks_list(), read_memory_typed_address(), read_one_struct_field(), read_set_type(), read_struct_type(), read_structure_type(), read_subrange_type(), read_tag_pointer_type(), read_tag_reference_type(), read_type(), recursive_dump_type(), replace_type(), resolve_dynamic_struct(), resolve_dynamic_union(), restore_infcall_suspend_state(), rl78_address_to_pointer(), rl78_pointer_to_address(), rl78_push_dummy_call(), rl78_return_value(), rs6000_convert_register_p(), rs6000_lynx178_push_dummy_call(), rs6000_lynx178_return_value(), rs6000_push_dummy_call(), rs6000_return_value(), rust_chartype_p(), rust_composite_type(), rust_evaluate_subexp(), rust_language_arch_info(), rust_range(), rust_subscript(), rust_type_alignment(), rust_u8_type_p(), rust_val_print(), rw_pieced_value(), rx_push_dummy_call(), rx_return_value(), s390_effective_inner_type(), s390_function_arg_float(), s390_function_arg_integer(), s390_function_arg_vector(), s390_handle_arg(), s390_register_return_value(), s390_return_value(), s390_unwind_pseudo_register(), s390_value_from_register(), save_infcall_suspend_state(), scalar_binop(), score_push_dummy_call(), score_return_value(), score_type_needs_double_align(), search_struct_method(), set_decnumber_context(), set_internalvar_component(), set_length_in_type_chain(), set_value_enclosing_type(), sh64_extract_return_value(), sh64_push_dummy_call(), sh64_store_return_value(), sh64_use_struct_convention(), sh_extract_return_value_fpu(), sh_extract_return_value_nofpu(), sh_push_dummy_call_fpu(), sh_push_dummy_call_nofpu(), sh_stack_allocsize(), sh_store_return_value_fpu(), sh_store_return_value_nofpu(), sh_use_struct_convention(), sh_use_struct_convention_nofpu(), siginfo_value_read(), siginfo_value_write(), signed_pointer_to_address(), slot_alignment_is_next_even(), smash_to_memberptr_type(), smash_to_method_type(), smash_to_methodptr_type(), sparc32_extract_return_value(), sparc32_push_dummy_code(), sparc32_return_value(), sparc32_stabs_argument_has_addr(), sparc32_store_arguments(), sparc32_store_return_value(), sparc32_struct_return_from_sym(), sparc64_16_byte_align_p(), sparc64_complex_floating_p(), sparc64_extract_floating_fields(), sparc64_extract_return_value(), sparc64_floating_p(), sparc64_integral_or_pointer_p(), sparc64_return_value(), sparc64_store_arguments(), sparc64_store_floating_fields(), sparc64_store_return_value(), sparc_arg_on_registers_p(), sparc_complex_floating_p(), sparc_floating_p(), sparc_integral_or_pointer_p(), sparc_structure_return_p(), spu_address_to_pointer(), spu_pointer_to_address(), spu_push_dummy_call(), spu_regcache_to_value(), spu_return_value(), spu_scalar_value_p(), spu_value_from_register(), spu_value_to_regcache(), stap_modify_semaphore(), store_regs(), target_float_convert(), target_float_format_length(), target_float_same_format_p(), template_to_static_fixed_type(), tic6x_arg_type_alignment(), tic6x_extract_return_value(), tic6x_push_dummy_call(), tic6x_return_value(), tic6x_store_return_value(), tilegx_extract_return_value(), tilegx_push_dummy_call(), tilegx_store_return_value(), tilegx_use_struct_convention(), to_fixed_array_type(), to_fixed_range_type(), to_record_with_fixed_variant_part(), decimal_float_ops::to_string(), host_float_ops< T >::to_target(), mpfr_float_ops::to_target(), type_length_units(), type_wider_than(), typy_get_sizeof(), ui_printf(), unop_promote(), unpack_bits_as_long(), unpack_long(), unpack_value_bitfield(), unsigned_address_to_pointer(), unsigned_pointer_to_address(), unwind_infopy_add_saved_register(), update_watchpoint(), upgrade_type(), v850_eight_byte_align_p(), v850_extract_return_value(), v850_push_dummy_call(), v850_store_return_value(), v850_use_struct_convention(), val_print_packed_array_elements(), val_print_scalar_formatted(), val_print_string(), valprint_check_validity(), valpy_string(), value_addr(), value_arg_coerce(), value_args_as_target_float(), value_assign(), value_assign_to_component(), value_cast(), value_coerce_to_target(), value_complement(), value_concat(), value_contents_bits_eq(), value_copy(), value_cstring(), value_entirely_covered_by_range_vector(), value_equal(), value_equal_contents(), value_fetch_lazy(), value_force_lval(), value_from_contents(), value_from_register(), value_full_object(), value_less(), value_literal_complex(), value_logical_not(), value_neg(), value_non_lval(), value_of_dwarf_reg_entry(), value_one(), value_pointer(), value_primitive_field(), value_ptrdiff(), value_slice(), value_strcmp(), value_string(), value_vector_widen(), vax_return_value(), vax_store_arguments(), vector_binop(), vector_relop(), vlscm_convert_bytevector(), vlscm_integer_fits_p(), windows_get_tlb_type(), write_constant_as_bytes(), xstormy16_address_to_pointer(), xstormy16_extract_return_value(), xstormy16_pointer_to_address(), xstormy16_push_dummy_call(), xstormy16_store_return_value(), xstormy16_use_struct_convention(), xtensa_extract_return_value(), xtensa_push_dummy_call(), xtensa_return_value(), xtensa_store_return_value(), and yyparse().

◆ TYPE_LOW_BOUND

#define TYPE_LOW_BOUND (   range_type)    TYPE_RANGE_DATA(range_type)->low.data.const_val

◆ TYPE_LOW_BOUND_KIND

#define TYPE_LOW_BOUND_KIND (   range_type)    TYPE_RANGE_DATA(range_type)->low.kind

Definition at line 1254 of file gdbtypes.h.

Referenced by convert_array().

◆ TYPE_LOW_BOUND_UNDEFINED

#define TYPE_LOW_BOUND_UNDEFINED (   range_type)    (TYPE_RANGE_DATA(range_type)->low.kind == PROP_UNDEFINED)

Definition at line 1248 of file gdbtypes.h.

Referenced by ada_tasks_inferior_data_sniffer(), and recursive_dump_type().

◆ TYPE_MAIN_TYPE

#define TYPE_MAIN_TYPE (   thistype)    (thistype)->main_type

◆ TYPE_N_BASECLASSES

#define TYPE_N_BASECLASSES (   thistype)    TYPE_CPLUS_SPECIFIC(thistype)->n_baseclasses

Definition at line 1331 of file gdbtypes.h.

Referenced by add_struct_fields(), amd64_non_pod_p(), c_type_print_base_struct_union(), check_field(), completion_list_add_fields(), compute_vtable_size(), convert_field(), cp_find_class_member(), cp_find_type_baseclass_by_name(), cp_lookup_nested_symbol_1(), cp_print_value(), cp_print_value_fields(), cp_type_print_derivation_info(), cplus_class_num_children(), cplus_describe_child(), cplus_number_of_children(), define_symbol(), distance_to_ancestor(), do_search_struct_field(), dwarf2_attach_fields_to_type(), dynamic_cast_check_1(), dynamic_cast_check_2(), enum_constant_from_type(), find_method_list(), find_methods(), find_symbol_in_baseclass(), gdbscm_field_baseclass_p(), gen_struct_elt_for_reference(), gen_struct_ref_recursive(), gen_trace_static_fields(), get_long_set_bounds(), get_vptr_fieldno(), gnuv2_baseclass_offset(), gnuv2_value_rtti_type(), gnuv3_dynamic_class(), gnuv3_find_method_in(), is_unique_ancestor_worker(), lookup_struct_elt_type(), m2_is_long_set(), m2_is_long_set_of_type(), m2_long_set(), m2_print_long_set(), m2_record_fields(), make_symbol_overload_list_adl_namespace(), need_access_label_p(), pascal_object_print_value(), pascal_object_print_value_fields(), pascal_type_print_base(), pascal_type_print_derivation_info(), print_cplus_stuff(), process_structure_scope(), read_baseclasses(), read_tilde_fields(), recursively_update_typedef_hash(), rust_print_struct_def(), search_struct_method(), value_primitive_field(), value_struct_elt_bitpos(), and value_struct_elt_for_reference().

◆ TYPE_N_TEMPLATE_ARGUMENTS

#define TYPE_N_TEMPLATE_ARGUMENTS (   thistype)    TYPE_CPLUS_SPECIFIC (thistype)->n_template_arguments

◆ TYPE_NAME

#define TYPE_NAME (   thistype)    TYPE_MAIN_TYPE(thistype)->name

Definition at line 1224 of file gdbtypes.h.

Referenced by ada_fixup_array_indexes_type(), ada_get_field_index(), ada_is_dispatch_table_ptr_type(), ada_is_interface_tag(), ada_is_redundant_range_encoding(), ada_is_system_address_type(), ada_language_arch_info(), ada_prefer_type(), ada_template_to_fixed_record_type_1(), ada_type_name(), arch_type(), arm_neon_double_type(), arm_neon_quad_type(), c_is_path_expr_parent(), c_print_type_1(), c_print_typedef(), c_textual_element_type(), c_type_print_base_1(), c_type_print_varspec_prefix(), c_type_print_varspec_suffix(), c_value_print(), check_type_length_before_alloc(), check_types_equal(), class_types_same_p(), classify_type(), complain_about_struct_wipeout(), constrained_packed_array_type(), copy_type_recursive(), cp_lookup_bare_symbol(), cp_print_value(), d_lookup_symbol(), decode_base_type(), define_symbol(), regcache::dump(), empty_record(), evaluate_subexp_modula2(), evaluate_subexp_standard(), f_print_type(), f_type_print_base(), f_type_print_varspec_prefix(), f_type_print_varspec_suffix(), fbsd_get_siginfo_type(), find_overload_match(), find_size_for_pointer_math(), fixup_go_packaging(), gccgo_string_p(), gdbscm_type_name(), gen_expr_binop_rest(), gen_fetch(), i386_bnd_type(), i386_mmx_type(), i386_ymm_type(), i386_zmm_type(), init_type(), inspect_type(), language_alloc_type_symbol(), language_lookup_primitive_type_1(), linux_get_siginfo_type_with_fields(), lookup_template_type(), m2_long_set(), m2_print_typedef(), m2_type_name(), m2_typedef(), tdesc_type_vector::make_gdb_type(), tdesc_type_with_fields::make_gdb_type_struct(), tdesc_type_with_fields::make_gdb_type_union(), make_symbol_overload_list_adl_namespace(), new_symbol_full(), new_type(), opencl_print_type(), parse_symbol(), parse_type(), pascal_type_print_base(), pascal_type_print_varspec_prefix(), pascal_type_print_varspec_suffix(), pascal_value_print(), patch_type(), print_range(), print_range_type(), process_coff_symbol(), rank_one_type(), read_array_type(), read_module_type(), read_namespace(), read_namespace_type(), read_structure_type(), read_subrange_type(), read_tilde_fields(), read_type(), read_unspecified_type(), recursive_dump_type(), resolve_dynamic_array(), rs6000_builtin_type_vec128(), rs6000_builtin_type_vec64(), rust_composite_type(), rust_get_disr_info(), rust_print_type(), rust_subscript(), rust_val_print(), spu_builtin_type_vec128(), static_unwrap_type(), template_to_static_fixed_type(), to_fixed_array_type(), to_fixed_range_type(), to_record_with_fixed_variant_part(), type_name_no_tag(), types_equal(), typy_get_name(), typy_legacy_template_argument(), unwrap_value(), user_select_syms(), val_print_struct(), value_args_as_target_float(), value_cast(), value_cast_structs(), value_full_object(), vb_match(), windows_get_tlb_type(), and yyparse().

◆ TYPE_NESTED_TYPES_ARRAY

#define TYPE_NESTED_TYPES_ARRAY (   thistype)    TYPE_CPLUS_SPECIFIC (thistype)->nested_types

Definition at line 1457 of file gdbtypes.h.

Referenced by process_structure_scope().

◆ TYPE_NESTED_TYPES_COUNT

#define TYPE_NESTED_TYPES_COUNT (   thistype)    TYPE_CPLUS_SPECIFIC (thistype)->nested_types_count

Definition at line 1465 of file gdbtypes.h.

Referenced by c_type_print_base_struct_union(), and process_structure_scope().

◆ TYPE_NESTED_TYPES_FIELD

#define TYPE_NESTED_TYPES_FIELD (   thistype,
 
)    TYPE_CPLUS_SPECIFIC (thistype)->nested_types[n]

Definition at line 1459 of file gdbtypes.h.

Referenced by process_structure_scope().

◆ TYPE_NESTED_TYPES_FIELD_NAME

#define TYPE_NESTED_TYPES_FIELD_NAME (   thistype,
 
)    TYPE_NESTED_TYPES_FIELD (thistype, n).name

Definition at line 1461 of file gdbtypes.h.

◆ TYPE_NESTED_TYPES_FIELD_PRIVATE

#define TYPE_NESTED_TYPES_FIELD_PRIVATE (   thistype,
 
)    TYPE_NESTED_TYPES_FIELD (thistype, n).is_private

Definition at line 1469 of file gdbtypes.h.

◆ TYPE_NESTED_TYPES_FIELD_PROTECTED

#define TYPE_NESTED_TYPES_FIELD_PROTECTED (   thistype,
 
)    TYPE_NESTED_TYPES_FIELD (thistype, n).is_protected

Definition at line 1467 of file gdbtypes.h.

◆ TYPE_NESTED_TYPES_FIELD_TYPE

#define TYPE_NESTED_TYPES_FIELD_TYPE (   thistype,
 
)    TYPE_NESTED_TYPES_FIELD (thistype, n).type

Definition at line 1463 of file gdbtypes.h.

Referenced by c_type_print_base_struct_union().

◆ TYPE_NFIELDS

#define TYPE_NFIELDS (   thistype)    TYPE_MAIN_TYPE(thistype)->nfields

Definition at line 1239 of file gdbtypes.h.

Referenced by aarch64_push_dummy_call(), aarch64_store_return_value(), aarch64_type_align(), ada_args_match(), ada_discrete_type_high_bound(), ada_fixup_array_indexes_type(), ada_get_base_type(), ada_get_field_index(), ada_identical_enum_types_p(), ada_index_struct_field_1(), ada_is_aligner_type(), ada_is_ignored_field(), ada_is_redundant_index_type_desc(), ada_lookup_struct_elt_type(), ada_parent_type(), ada_print_scalar(), ada_print_symbol_signature(), ada_search_struct_field(), ada_template_to_fixed_record_type_1(), ada_val_print_enum(), ada_varobj_describe_struct_child(), ada_varobj_get_struct_number_of_children(), ada_which_variant_applies(), add_struct_fields(), amd64_classify_aggregate(), append_composite_type_field_aligned(), append_composite_type_field_raw(), append_flags_type_field(), arch_flags_type(), arm_return_in_memory(), arm_type_align(), arm_vfp_cprc_sub_candidate(), attach_fields_to_type(), BP_MANIPULATION(), build_gdb_vtable_type(), build_std_type_info_type(), c_get_string(), c_is_path_expr_parent(), c_number_of_children(), c_type_print_args(), c_type_print_base_1(), c_type_print_base_struct_union(), call_function_by_hand_dummy(), check_field(), check_types_equal(), coff_read_enum_type(), coff_read_struct_type(), compare_parameters(), compile_object_load(), compile_object_run(), completion_list_add_fields(), convert_ast_to_expression(), convert_char_literal(), convert_enum(), convert_func(), convert_struct_or_union(), copy_type_recursive(), cp_find_class_member(), cp_print_value_fields(), cp_type_print_method_args(), cplus_class_num_children(), create_array_type_with_stride(), create_set_type(), decode_base_type(), define_symbol(), desc_arity(), discrete_position(), do_search_struct_field(), dump_fn_fieldlists(), dwarf2_add_member_fn(), dwarf2_attach_fields_to_type(), dwarf2_compute_name(), dynamic_array_type(), empty_record(), enum_constant_from_type(), evaluate_funcall(), evaluate_struct_tuple(), f_type_print_base(), f_val_print(), fake_method::fake_method(), find_oload_champ(), find_struct_field(), finish_block_internal(), fp_register_arg_p(), gccgo_string_p(), gdbscm_type_field(), gdbscm_type_fields(), gdbscm_type_has_field_p(), gdbscm_type_next_field_x(), gdbscm_type_num_fields(), gen_struct_elt_for_reference(), gen_struct_ref_recursive(), gen_trace_static_fields(), generate_vla_size(), generic_val_print_enum_1(), get_discrete_bounds(), get_long_set_bounds(), get_regs_type(), gnuv2_baseclass_offset(), gnuv3_pass_by_reference(), i386_16_byte_align_p(), i386_darwin_arg_type_alignment(), i386_reg_struct_return_p(), i386_return_value(), iq2000_pass_8bytetype_by_address(), is_dynamic_type_internal(), is_float_or_hfa_type_recurse(), is_hfa_or_hva(), is_pascal_string_type(), is_scalar_type_recursive(), lookup_function_type_with_arguments(), lookup_struct_elt_type(), m2_enum(), m2_is_long_set(), m2_is_long_set_of_type(), m2_is_unbounded_array(), m2_long_set(), m2_print_bounds(), m2_print_long_set(), m2_procedure(), m2_record_fields(), m32c_push_dummy_call(), m68k_svr4_return_value(), m88k_8_byte_align_p(), mips_eabi_return_value(), mips_n32n64_fp_arg_chunk_p(), mips_n32n64_return_value(), mips_o32_return_value(), mips_type_needs_double_align(), mn10300_type_align(), mn10300_use_struct_convention(), nds32_check_calling_use_fpr(), nds32_push_dummy_call(), nds32_type_align(), need_access_label_p(), or1k_push_dummy_call(), parse_old_style_renaming(), parse_symbol(), parse_type(), pascal_object_print_value_fields(), pascal_print_func_args(), pascal_type_print_base(), patch_type(), ppc64_aggregate_candidate(), ppc64_sysv_abi_push_param(), print_array_type(), print_cplus_stuff(), print_enum_type(), print_field_values(), print_func_type(), print_record_field_types(), print_type_scalar(), print_unchecked_union_type(), print_variant_clauses(), process_enumeration_scope(), process_structure_scope(), quirk_gcc_member_function_pointer(), read_enum_type(), read_subroutine_type(), read_tag_ptr_to_member_type(), read_tilde_fields(), read_type(), recursive_dump_type(), resolve_dynamic_struct(), resolve_dynamic_union(), rust_composite_type(), rust_compute_range(), rust_evaluate_funcall(), rust_evaluate_subexp(), rust_get_disr_info(), rust_get_trait_object_pointer(), rust_print_struct_def(), rust_print_type(), rust_range_type_p(), rust_subscript(), rust_tuple_struct_type_p(), rust_type_alignment(), rust_underscore_fields(), rust_union_is_untagged(), rust_val_print(), rx_push_dummy_call(), s390_effective_inner_type(), s390_push_dummy_call(), score_type_needs_double_align(), search_struct_method(), sh_push_dummy_call_fpu(), sh_push_dummy_call_nofpu(), sh_treat_as_flt_p(), sh_use_struct_convention(), sh_use_struct_convention_nofpu(), sixg_string_p(), slot_alignment_is_next_even(), smash_to_method_type(), sparc64_16_byte_align_p(), sparc64_extract_floating_fields(), sparc64_store_floating_fields(), store_regs(), symbols_are_identical_enums(), template_to_static_fixed_type(), tic6x_push_dummy_call(), to_fixed_array_type(), to_record_with_fixed_variant_part(), types_equal(), typy_getitem(), typy_has_key(), typy_iterator_iternext(), typy_length(), v850_eight_byte_align_p(), v850_use_struct_convention(), val_print_struct(), val_print_type_code_flags(), value_struct_elt_bitpos(), value_struct_elt_for_reference(), value_val_atr(), and variant_field_index().

◆ TYPE_NFN_FIELDS

#define TYPE_NFN_FIELDS (   thistype)    TYPE_CPLUS_SPECIFIC(thistype)->nfn_fields

◆ TYPE_NO_RETURN

#define TYPE_NO_RETURN (   thistype)    TYPE_MAIN_TYPE(thistype)->type_specific.func_stuff->is_noreturn

◆ TYPE_NOSIGN

#define TYPE_NOSIGN (   t)    (TYPE_MAIN_TYPE (t)->flag_nosign)

No sign for this type. In C++, "char", "signed char", and "unsigned char" are distinct types; so we need an extra flag to indicate the absence of a sign!

Definition at line 211 of file gdbtypes.h.

Referenced by basic_type(), check_types_equal(), dwarf2_compute_name(), gdbtypes_post_init(), objfile_type(), rank_one_type(), read_base_type(), read_range_type(), recursive_dump_type(), and rs6000_builtin_type().

◆ TYPE_NOTTEXT

#define TYPE_NOTTEXT (   t)    (TYPE_INSTANCE_FLAGS (t) & TYPE_INSTANCE_FLAG_NOTTEXT)

Not textual. By default, GDB treats all single byte integers as characters (or elements of strings) unless this flag is set.

Definition at line 276 of file gdbtypes.h.

Referenced by c_textual_element_type(), check_types_equal(), and recursive_dump_type().

◆ TYPE_OBJFILE

#define TYPE_OBJFILE (   t)    (TYPE_OBJFILE_OWNED(t)? TYPE_OWNER(t).objfile : NULL)

◆ TYPE_OBJFILE_OWNED

#define TYPE_OBJFILE_OWNED (   t)    (TYPE_MAIN_TYPE (t)->flag_objfile_owned)

Type owner. If TYPE_OBJFILE_OWNED is true, the type is owned by the objfile retrieved as TYPE_OBJFILE. Otherweise, the type is owned by an architecture; TYPE_OBJFILE is NULL in this case.

Definition at line 289 of file gdbtypes.h.

Referenced by add_dyn_prop(), alloc_type(), alloc_type_arch(), alloc_type_copy(), alloc_type_instance(), convert_func(), convert_type_basic(), copy_type(), copy_type_recursive(), get_type_arch(), language_alloc_type_symbol(), recursive_dump_type(), and smash_type().

◆ TYPE_OWNER

#define TYPE_OWNER (   t)    TYPE_MAIN_TYPE(t)->owner

◆ TYPE_POINTER_TYPE

#define TYPE_POINTER_TYPE (   thistype)    (thistype)->pointer_type

Definition at line 1227 of file gdbtypes.h.

Referenced by make_pointer_type(), make_qualified_type(), recursive_dump_type(), and yyparse().

◆ TYPE_PROTOTYPED

#define TYPE_PROTOTYPED (   t)    (TYPE_MAIN_TYPE (t)->flag_prototyped)

This is a function type which appears to have a prototype. We need this for function calls in order to tell us if it's necessary to coerce the args, or to just do the standard conversions. This is used with a short field.

Definition at line 232 of file gdbtypes.h.

Referenced by c_type_print_args(), call_function_by_hand_dummy(), convert_func(), define_symbol(), fake_method::fake_method(), lookup_function_type_with_arguments(), m32c_push_dummy_call(), parse_symbol(), read_subroutine_type(), read_type(), recursive_dump_type(), and rx_push_dummy_call().

◆ TYPE_RANGE_DATA

#define TYPE_RANGE_DATA (   thistype)    TYPE_MAIN_TYPE(thistype)->flds_bnds.bounds

◆ TYPE_RAW_CPLUS_SPECIFIC

#define TYPE_RAW_CPLUS_SPECIFIC (   thistype)    TYPE_MAIN_TYPE(thistype)->type_specific.cplus_stuff

◆ TYPE_REFERENCE_TYPE

#define TYPE_REFERENCE_TYPE (   thistype)    (thistype)->reference_type

Definition at line 1228 of file gdbtypes.h.

Referenced by make_qualified_type(), make_reference_type(), and recursive_dump_type().

◆ TYPE_RESTRICT

#define TYPE_RESTRICT (   t)    ((TYPE_INSTANCE_FLAGS (t) & TYPE_INSTANCE_FLAG_RESTRICT) != 0)

Restrict type. If this is set, the corresponding type has a restrict modifier.

Definition at line 321 of file gdbtypes.h.

Referenced by c_type_print_modifier(), convert_qualified(), cp_type_print_method_args(), and recursive_dump_type().

◆ TYPE_RVALUE_REFERENCE_TYPE

#define TYPE_RVALUE_REFERENCE_TYPE (   thistype)    (thistype)->rvalue_reference_type

Definition at line 1229 of file gdbtypes.h.

Referenced by make_reference_type().

◆ TYPE_SAFE_NAME

#define TYPE_SAFE_NAME (   type)    (TYPE_NAME (type) ? TYPE_NAME (type) : _("<unnamed type>"))

A helper macro that returns the name of a type or "unnamed type" if the type has no name.

Definition at line 1483 of file gdbtypes.h.

Referenced by c_print_token(), gnuv3_rtti_type(), hash_typedef_field(), print_one_vtable(), update_search_result(), and yyparse().

◆ TYPE_SELF_TYPE

#define TYPE_SELF_TYPE (   thistype)    internal_type_self_type (thistype)

◆ TYPE_SPECIFIC_FIELD

#define TYPE_SPECIFIC_FIELD (   thistype)    TYPE_MAIN_TYPE(thistype)->type_specific_field

◆ TYPE_STUB

#define TYPE_STUB (   t)    (TYPE_MAIN_TYPE (t)->flag_stub)

◆ TYPE_STUB_SUPPORTED

#define TYPE_STUB_SUPPORTED (   t)    (TYPE_MAIN_TYPE (t)->flag_stub_supported)

This debug target supports TYPE_STUB(t). In the unsupported case we have to rely on NFIELDS to be zero etc., see TYPE_IS_OPAQUE(). TYPE_STUB(t) with !TYPE_STUB_SUPPORTED(t) may exist if we only guessed the TYPE_STUB(t) value (see dwarfread.c).

Definition at line 271 of file gdbtypes.h.

Referenced by read_structure_type(), and recursive_dump_type().

◆ TYPE_TAG_NAME

#define TYPE_TAG_NAME (   type)    TYPE_MAIN_TYPE(type)->tag_name

◆ TYPE_TAIL_CALL_LIST

#define TYPE_TAIL_CALL_LIST (   thistype)    TYPE_MAIN_TYPE(thistype)->type_specific.func_stuff->tail_call_list

◆ TYPE_TARGET_STUB

#define TYPE_TARGET_STUB (   t)    (TYPE_MAIN_TYPE (t)->flag_target_stub)

The target type of this type is a stub type, and this type needs to be updated if it gets un-stubbed in check_typedef. Used for arrays and ranges, in which TYPE_LENGTH of the array/range gets set based on the TYPE_LENGTH of the target type. Also, set for TYPE_CODE_TYPEDEF.

Definition at line 225 of file gdbtypes.h.

Referenced by check_typedef(), create_array_type_with_stride(), create_range_type(), fbsd_get_siginfo_type(), linux_get_siginfo_type_with_fields(), read_type(), read_typedef(), recursive_dump_type(), and upgrade_type().

◆ TYPE_TARGET_TYPE

#define TYPE_TARGET_TYPE (   thistype)    TYPE_MAIN_TYPE(thistype)->target_type

Definition at line 1226 of file gdbtypes.h.

Referenced by aarch64_push_dummy_call(), aarch64_type_align(), ada_array_arity(), ada_array_bound_from_type(), ada_array_element_type(), ada_array_length(), ada_coerce_to_simple_array(), ada_convert_actual(), ada_evaluate_subexp(), ada_get_base_type(), ada_index_type(), ada_is_array_type(), ada_is_dispatch_table_ptr_type(), ada_is_redundant_index_type_desc(), ada_is_simple_array_type(), ada_is_tag_type(), ada_is_variant_part(), ada_lookup_struct_elt_type(), ada_parent_type(), ada_print_scalar(), ada_print_symbol_signature(), ada_print_type(), ada_promote_array_of_integrals(), ada_tasks_inferior_data_sniffer(), ada_template_to_fixed_record_type_1(), ada_type_match(), ada_typedef_target_type(), ada_val_print_num(), ada_val_print_ref(), ada_val_print_string(), ada_value_print(), ada_value_ptr_subscript(), ada_value_slice(), ada_value_slice_from_ptr(), ada_value_struct_elt(), ada_variant_discrim_name(), ada_varobj_adjust_for_child_access(), ada_varobj_describe_simple_array_child(), ada_varobj_get_ptr_number_of_children(), ada_varobj_ind(), ada_varobj_simple_array_elt(), add_array_cv_type(), allocate_stub_method(), amd64_classify_aggregate(), arch_complex_type(), arch_pointer_type(), arm_push_dummy_call(), arm_type_align(), arm_vfp_cprc_sub_candidate(), avr_address_to_pointer(), avr_pointer_to_address(), binop_types_user_defined_p(), BP_MANIPULATION(), bpfinishpy_init(), c_describe_child(), c_get_string(), c_textual_element_type(), c_type_print_base_1(), c_type_print_base_struct_union(), c_type_print_varspec_prefix(), c_type_print_varspec_suffix(), c_val_print_array(), c_val_print_ptr(), c_value_of_variable(), c_value_print(), c_watch_location_expression(), calc_f77_array_dims(), call_function_by_hand_dummy(), can_dereference(), cast_into_complex(), check_stub_method(), check_typedef(), check_types_equal(), classify_type(), coerce_for_assign(), coerce_ref(), compile_object_load(), complete_expression(), constrained_packed_array_type(), convert_array(), convert_complex(), convert_func(), convert_pointer(), copy_type_recursive(), cp_is_vtbl_member(), cp_lookup_bare_symbol(), cp_print_static_field(), cp_type_print_method_args(), create_array_type_with_stride(), create_range_type(), create_value(), d_lookup_symbol(), desc_base_type(), desc_bounds(), desc_bounds_type(), desc_data_target_type(), do_ppc_sysv_return_value(), dwarf2_add_member_fn(), dwarf2_compute_name(), dynamic_array_type(), elf_gnu_ifunc_resolver_return_stop(), empty_array(), eval_call(), evaluate_funcall(), evaluate_subexp_c(), evaluate_subexp_for_address(), evaluate_subexp_for_sizeof(), evaluate_subexp_modula2(), evaluate_subexp_opencl(), evaluate_subexp_standard(), evaluate_subexp_with_coercion(), f77_get_dynamic_length_of_aggregate(), f77_print_array_1(), f_type_print_base(), f_type_print_varspec_prefix(), f_type_print_varspec_suffix(), f_val_print(), fbsd_get_siginfo_type(), fetch_const_value_from_synthetic_pointer(), find_function_addr(), find_function_return_type(), find_size_for_pointer_math(), finish_command_fsm_should_stop(), fixed_type_info(), frv_push_dummy_call(), gccgo_string_p(), gdbscm_type_target(), gdbscm_value_dynamic_type(), gdbscm_value_to_lazy_string(), gen_deref(), gen_fetch(), gen_ptrdiff(), gen_scale(), gen_traced_pop(), gen_usual_unary(), generate_vla_size(), generic_val_print_array(), generic_val_print_complex(), generic_val_print_ptr(), generic_val_print_ref(), get_base_type(), get_out_value_type(), get_regs_type(), get_target_type(), gnuv2_virtual_fn_field(), gnuv3_get_typeid(), gnuv3_method_ptr_to_value(), gnuv3_pass_by_reference(), go_print_type(), hppa64_push_dummy_call(), i386_16_byte_align_p(), ia64_push_dummy_call(), indirect_synthetic_pointer(), init_complex_type(), init_pointer_type(), inspect_type(), integer_type_p(), iq2000_address_to_pointer(), iq2000_pass_8bytetype_by_address(), iq2000_pointer_to_address(), is_dynamic_type_internal(), is_float_or_hfa_type_recurse(), is_hfa_or_hva(), is_pascal_string_type(), is_scalar_type_recursive(), linux_get_siginfo_type_with_fields(), lookup_opencl_vector_type(), lookup_struct_elt_type(), lookup_symbol_aux(), lsscm_elt_type(), lsscm_safe_lazy_string_to_value(), lval_func_check_synthetic_pointer(), lval_func_read(), lval_func_write(), m2_array(), m2_is_long_set_of_type(), m2_pointer(), m2_print_bounds(), m2_print_long_set(), m2_print_unbounded_array(), m2_procedure(), m2_range(), m2_ref(), m2_typedef(), m2_unbounded_array(), m2_val_print(), m32c_m16c_address_to_pointer(), m32c_m16c_pointer_to_address(), m32c_push_dummy_call(), make_function_type(), make_pointer_type(), make_reference_type(), make_symbol_overload_list_adl_namespace(), make_vector_type(), msp430_push_dummy_call(), nds32_type_align(), numeric_type_p(), objfile_type(), opencl_logical_not(), opencl_value_cast(), parse_procedure(), parse_type(), pascal_object_is_vtbl_member(), pascal_type_print_base(), pascal_type_print_func_varspec_suffix(), pascal_type_print_varspec_prefix(), pascal_type_print_varspec_suffix(), pascal_val_print(), pascal_value_print(), patch_opaque_types(), patch_type(), ppc64_aggregate_candidate(), ppc64_sysv_abi_push_dummy_call(), ppc64_sysv_abi_push_param(), ppc64_sysv_abi_return_value(), ppc_sysv_abi_push_dummy_call(), ppc_sysv_use_opencl_abi(), print_array_type(), print_func_type(), print_go_string(), print_optional_low_bound(), print_range(), print_range_type(), print_type_scalar(), print_unpacked_pointer(), print_variable_at_address(), print_variant_clauses(), process_coff_symbol(), ptrmath_type_p(), quirk_gcc_member_function_pointer(), rank_one_type(), read_enumeration_type(), read_fat_string_value(), read_tag_ptr_to_member_type(), read_type(), read_typedef(), readjust_indirect_value_type(), recursive_dump_type(), resolve_dynamic_array(), resolve_dynamic_range(), resolve_dynamic_struct(), resolve_dynamic_type_internal(), return_command(), return_match(), rl78_pointer_to_address(), rust_evaluate_funcall(), rust_print_type(), rust_subscript(), rust_type_alignment(), rust_val_print(), rust_val_print_str(), rust_watch_location_expression(), rx_push_dummy_call(), s390_push_dummy_call(), sh_is_renesas_calling_convention(), slot_alignment_is_next_even(), smash_to_memberptr_type(), smash_to_method_type(), smash_to_methodptr_type(), sparc32_struct_return_from_sym(), sparc64_16_byte_align_p(), sparc_arg_on_registers_p(), sparc_structure_return_p(), spu_return_value(), stpy_convert_to_value(), stpy_lazy_string_elt_type(), template_to_static_fixed_type(), tic6x_push_dummy_call(), to_fixed_array_type(), to_fixed_range_type(), to_fixed_variant_branch_type(), type_is_full_subrange_of_target_type(), typecmp(), types_equal(), typy_get_composite(), typy_target(), typy_template_argument(), tyscm_get_composite(), unop_user_defined_p(), v850_use_struct_convention(), val_print_array_elements(), val_print_packed_array_elements(), val_print_scalar_type_p(), valpy_get_dynamic_type(), valpy_lazy_string(), value_actual_type(), value_addr(), value_arg_coerce(), value_cast(), value_cast_pointers(), value_coerce_array(), value_complement(), value_concat(), value_dynamic_cast(), value_has_field(), value_in(), value_ind(), value_literal_complex(), value_neg(), value_of_dwarf_reg_entry(), value_one(), value_ptrdiff(), value_reinterpret_cast(), value_slice(), value_struct_elt_for_reference(), value_subscript_packed(), value_subscripted_rvalue(), value_vector_widen(), value_x_binop(), value_x_unop(), vb_match(), vector_binop(), vector_relop(), whatis_exp(), windows_get_tlb_type(), xstormy16_address_to_pointer(), xstormy16_pointer_to_address(), and yyparse().

◆ TYPE_TEMPLATE_ARGUMENT

#define TYPE_TEMPLATE_ARGUMENT (   thistype,
 
)    TYPE_CPLUS_SPECIFIC (thistype)->template_arguments[n]

◆ TYPE_TEMPLATE_ARGUMENTS

#define TYPE_TEMPLATE_ARGUMENTS (   thistype)    TYPE_CPLUS_SPECIFIC (thistype)->template_arguments

Definition at line 1420 of file gdbtypes.h.

Referenced by cp_lookup_symbol_imports_or_template(), and process_structure_scope().

◆ TYPE_TYPEDEF_FIELD

#define TYPE_TYPEDEF_FIELD (   thistype,
 
)    TYPE_CPLUS_SPECIFIC (thistype)->typedef_field[n]

Definition at line 1444 of file gdbtypes.h.

Referenced by process_structure_scope(), and recursively_update_typedef_hash().

◆ TYPE_TYPEDEF_FIELD_ARRAY

#define TYPE_TYPEDEF_FIELD_ARRAY (   thistype)    TYPE_CPLUS_SPECIFIC (thistype)->typedef_field

Definition at line 1442 of file gdbtypes.h.

Referenced by process_structure_scope().

◆ TYPE_TYPEDEF_FIELD_COUNT

#define TYPE_TYPEDEF_FIELD_COUNT (   thistype)    TYPE_CPLUS_SPECIFIC (thistype)->typedef_field_count

◆ TYPE_TYPEDEF_FIELD_NAME

#define TYPE_TYPEDEF_FIELD_NAME (   thistype,
 
)    TYPE_TYPEDEF_FIELD (thistype, n).name

Definition at line 1446 of file gdbtypes.h.

Referenced by c_type_print_base_struct_union().

◆ TYPE_TYPEDEF_FIELD_PRIVATE

#define TYPE_TYPEDEF_FIELD_PRIVATE (   thistype,
 
)    TYPE_TYPEDEF_FIELD (thistype, n).is_private

Definition at line 1454 of file gdbtypes.h.

Referenced by c_type_print_base_struct_union(), and need_access_label_p().

◆ TYPE_TYPEDEF_FIELD_PROTECTED

#define TYPE_TYPEDEF_FIELD_PROTECTED (   thistype,
 
)    TYPE_TYPEDEF_FIELD (thistype, n).is_protected

Definition at line 1452 of file gdbtypes.h.

Referenced by c_type_print_base_struct_union(), and need_access_label_p().

◆ TYPE_TYPEDEF_FIELD_TYPE

#define TYPE_TYPEDEF_FIELD_TYPE (   thistype,
 
)    TYPE_TYPEDEF_FIELD (thistype, n).type

Definition at line 1448 of file gdbtypes.h.

Referenced by c_type_print_base_struct_union().

◆ TYPE_UNSIGNED

#define TYPE_UNSIGNED (   t)    (TYPE_MAIN_TYPE (t)->flag_unsigned)

Unsigned integer type. If this is not set for a TYPE_CODE_INT, the type is signed (unless TYPE_NOSIGN (below) is set).

Definition at line 205 of file gdbtypes.h.

Referenced by aarch64_push_dummy_call(), ada_is_modular_type(), ada_print_scalar(), ada_value_binop(), ada_value_print(), adjust_type_signedness(), arch_boolean_type(), arch_character_type(), arch_flags_type(), arch_integer_type(), arch_pointer_type(), base_types_equal_p(), binop_promote(), check_types_equal(), coff_read_enum_type(), convert_enum(), convert_int(), create_range_type(), create_set_type(), create_value(), define_symbol(), evaluate_subexp_opencl(), dwarf_expr_context::execute_stack_op(), gdbscm_value_to_integer(), gdbscm_value_to_real(), gen_binop(), gen_bitfield_ref(), gen_conversion(), gen_extend(), gen_sign_extend(), generate_register_struct(), generic_val_print_char(), get_discrete_bounds(), get_signed_type_minmax(), get_unsigned_type_max(), has_negatives(), init_boolean_type(), init_character_type(), init_integer_type(), init_pointer_type(), lookup_opencl_vector_type(), m2_get_discrete_bounds(), tdesc_type_with_fields::make_gdb_type_enum(), make_pointer_type(), max_of_type(), min_of_type(), mips_n32n64_push_dummy_call(), parse_symbol(), print_scalar_formatted(), print_type_scalar(), rank_one_type(), read_enum_type(), read_enumeration_type(), read_subrange_type(), read_sun_builtin_type(), recursive_dump_type(), rust_chartype_p(), rust_u8_type_p(), rust_val_print(), s390_handle_arg(), s390_register_return_value(), scalar_binop(), type_wider_than(), unpack_bits_as_long(), unpack_long(), update_enumeration_type_from_children(), valpy_long(), value_args_as_target_float(), value_assign(), value_cast(), vector_binop(), vector_relop(), vlscm_convert_typed_number(), and vlscm_integer_fits_p().

◆ TYPE_VARARGS

#define TYPE_VARARGS (   t)    (TYPE_MAIN_TYPE (t)->flag_varargs)

◆ TYPE_VECTOR

#define TYPE_VECTOR (   t)    (TYPE_MAIN_TYPE (t)->flag_vector)

Identify a vector type. Gcc is handling this by adding an extra attribute to the array type. We slurp that in as a new flag of a type. This is used only in dwarf2read.c.

Definition at line 252 of file gdbtypes.h.

Referenced by aarch64_push_dummy_call(), aarch64_store_return_value(), aarch64_type_align(), arm_neon_double_type(), arm_neon_quad_type(), arm_return_in_memory(), arm_type_align(), arm_vfp_cprc_sub_candidate(), BP_MANIPULATION(), c_print_type_1(), c_type_print_varspec_suffix(), check_types_equal(), coerce_array(), convert_array(), default_print_one_register_info(), default_register_reggroup_p(), do_ppc_sysv_return_value(), evaluate_subexp_opencl(), evaluate_subexp_with_coercion(), i386_16_byte_align_p(), i386_darwin_arg_type_alignment(), i386_m128_p(), i386_mmx_type(), i386_ymm_type(), i386_zmm_type(), ia64_register_reggroup_p(), is_hfa_or_hva(), lookup_opencl_vector_type(), tdesc_type_with_fields::make_gdb_type_union(), make_vector_type(), mips_register_reggroup_p(), opencl_logical_not(), opencl_print_type(), opencl_relop(), opencl_value_cast(), ppc64_aggregate_candidate(), ppc64_elfv2_abi_homogeneous_aggregate(), ppc64_sysv_abi_push_dummy_call(), ppc64_sysv_abi_push_param(), ppc64_sysv_abi_return_value(), ppc64_sysv_abi_return_value_base(), ppc_linux_return_value(), ppc_sysv_abi_push_dummy_call(), ppcnbsd_return_value(), ptrmath_type_p(), recursive_dump_type(), rs6000_builtin_type_vec128(), rs6000_builtin_type_vec64(), rs6000_lynx178_return_value(), rs6000_return_value(), s390_function_arg_vector(), s390_return_value(), spu_builtin_type_vec128(), spu_return_value(), value_arg_coerce(), value_binop(), value_cast(), value_complement(), value_must_coerce_to_target(), value_neg(), value_one(), value_pos(), value_vector_widen(), vector_binop(), and vector_relop().

◆ TYPE_VOLATILE

#define TYPE_VOLATILE (   t)    ((TYPE_INSTANCE_FLAGS (t) & TYPE_INSTANCE_FLAG_VOLATILE) != 0)

◆ TYPE_VPTR_BASETYPE

#define TYPE_VPTR_BASETYPE (   thistype)    internal_type_vptr_basetype (thistype)

Definition at line 1309 of file gdbtypes.h.

Referenced by get_vptr_fieldno(), gnuv2_virtual_fn_field(), and print_cplus_stuff().

◆ TYPE_VPTR_FIELDNO

#define TYPE_VPTR_FIELDNO (   thistype)    internal_type_vptr_fieldno (thistype)

◆ TYPE_ZALLOC

#define TYPE_ZALLOC (   t,
  size 
)
Value:
? memset (obstack_alloc (&TYPE_OBJFILE (t)->objfile_obstack, size), \
0, size) \
#define TYPE_OBJFILE_OWNED(t)
Definition: gdbtypes.h:289
#define TYPE_OBJFILE(t)
Definition: gdbtypes.h:291
void * memset(T *s, int c, size_t n)=delete
void * xzalloc(size_t size)
Definition: common-utils.c:92
size_t size
Definition: go32-nat.c:242

Definition at line 1657 of file gdbtypes.h.

Referenced by arch_flags_type(), create_array_type_with_stride(), create_range_type(), create_set_type(), fake_method::fake_method(), lookup_function_type_with_arguments(), parse_type(), read_subroutine_type(), and rust_composite_type().

◆ VOFFSET_STATIC

#define VOFFSET_STATIC   1

Definition at line 885 of file gdbtypes.h.

Referenced by dwarf2_add_member_fn(), and read_member_functions().

Enumeration Type Documentation

◆ call_site_parameter_kind

Enumerator
CALL_SITE_PARAMETER_DWARF_REG 

Use field call_site_parameter.u.dwarf_reg.

CALL_SITE_PARAMETER_FB_OFFSET 

Use field call_site_parameter.u.fb_offset.

CALL_SITE_PARAMETER_PARAM_OFFSET 

Use field call_site_parameter.u.param_offset.

Definition at line 1091 of file gdbtypes.h.

◆ dynamic_prop_kind

Enumerator
PROP_UNDEFINED 
PROP_CONST 
PROP_ADDR_OFFSET 
PROP_LOCEXPR 
PROP_LOCLIST 

Definition at line 376 of file gdbtypes.h.

◆ dynamic_prop_node_kind

Define a type's dynamic property node kind.

Enumerator
DYN_PROP_DATA_LOCATION 
DYN_PROP_ALLOCATED 
DYN_PROP_ASSOCIATED 
DYN_PROP_BYTE_STRIDE 

Definition at line 418 of file gdbtypes.h.

◆ field_loc_kind

Determine which field of the union main_type.fields[x].loc is used.

Enumerator
FIELD_LOC_KIND_BITPOS 

bitpos

FIELD_LOC_KIND_ENUMVAL 

enumval

FIELD_LOC_KIND_PHYSADDR 

physaddr

FIELD_LOC_KIND_PHYSNAME 

physname

FIELD_LOC_KIND_DWARF_BLOCK 

dwarf_block

Definition at line 452 of file gdbtypes.h.

◆ type_code

enum type_code

Different kinds of data types are distinguished by the ‘code’ field.

Enumerator
TYPE_CODE_BITSTRING 

Deprecated

TYPE_CODE_UNDEF 

Not used; catches errors

TYPE_CODE_PTR 

Pointer type

TYPE_CODE_ARRAY 

Array type with lower & upper bounds.

Regardless of the language, GDB represents multidimensional array types the way C does: as arrays of arrays. So an instance of a GDB array type T can always be seen as a series of instances of TYPE_TARGET_TYPE (T) laid out sequentially in memory.

Row-major languages like C lay out multi-dimensional arrays so that incrementing the rightmost index in a subscripting expression results in the smallest change in the address of the element referred to. Column-major languages like Fortran lay them out so that incrementing the leftmost index results in the smallest change.

This means that, in column-major languages, working our way from type to target type corresponds to working through indices from right to left, not left to right.

TYPE_CODE_STRUCT 

C struct or Pascal record

TYPE_CODE_UNION 

C union or Pascal variant part

TYPE_CODE_ENUM 

Enumeration type

TYPE_CODE_FLAGS 

Bit flags type

TYPE_CODE_FUNC 

Function type

TYPE_CODE_INT 

Integer type

TYPE_CODE_FLT 

Floating type. This is NOT a complex type. Beware, there are parts of GDB which bogusly assume that TYPE_CODE_FLT can mean complex.

TYPE_CODE_VOID 

Void type. The length field specifies the length (probably always one) which is used in pointer arithmetic involving pointers to this type, but actually dereferencing such a pointer is invalid; a void type has no length and no actual representation in memory or registers. A pointer to a void type is a generic pointer.

TYPE_CODE_SET 

Pascal sets

TYPE_CODE_RANGE 

Range (integers within spec'd bounds).

TYPE_CODE_STRING 

A string type which is like an array of character but prints differently. It does not contain a length field as Pascal strings (for many Pascals, anyway) do; if we want to deal with such strings, we should use a new type code.

TYPE_CODE_ERROR 

Unknown type. The length field is valid if we were able to deduce that much about the type, or 0 if we don't even know that.

TYPE_CODE_METHOD 

Method type

TYPE_CODE_METHODPTR 

Pointer-to-member-function type. This describes how to access a particular member function of a class (possibly a virtual member function). The representation may vary between different C++ ABIs.

TYPE_CODE_MEMBERPTR 

Pointer-to-member type. This is the offset within a class to some particular data member. The only currently supported representation uses an unbiased offset, with -1 representing NULL; this is used by the Itanium C++ ABI (used by GCC on all platforms).

TYPE_CODE_REF 

C++ Reference types

TYPE_CODE_RVALUE_REF 

C++ rvalue reference types

TYPE_CODE_CHAR 

real character type

TYPE_CODE_BOOL 

Boolean type. 0 is false, 1 is true, and other values are non-boolean (e.g. FORTRAN "logical" used as unsigned int).

TYPE_CODE_COMPLEX 

Complex float

TYPE_CODE_TYPEDEF 
TYPE_CODE_NAMESPACE 

C++ namespace.

TYPE_CODE_DECFLOAT 

Decimal floating point.

TYPE_CODE_MODULE 

Fortran module.

TYPE_CODE_INTERNAL_FUNCTION 

Internal function type.

TYPE_CODE_XMETHOD 

Methods implemented in extension languages.

Definition at line 80 of file gdbtypes.h.

◆ type_instance_flag_value

Some bits for the type's instance_flags word. See the macros below for documentation on each bit.

Enumerator
TYPE_INSTANCE_FLAG_CONST 
TYPE_INSTANCE_FLAG_VOLATILE 
TYPE_INSTANCE_FLAG_CODE_SPACE 
TYPE_INSTANCE_FLAG_DATA_SPACE 
TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1 
TYPE_INSTANCE_FLAG_ADDRESS_CLASS_2 
TYPE_INSTANCE_FLAG_NOTTEXT 
TYPE_INSTANCE_FLAG_RESTRICT 
TYPE_INSTANCE_FLAG_ATOMIC 

Definition at line 187 of file gdbtypes.h.

◆ type_specific_kind

A discriminant to determine which field in the main_type.type_specific union is being used, if any.

For types such as TYPE_CODE_FLT, the use of this discriminant is really redundant, as we know from the type code which field is going to be used. As such, it would be possible to reduce the size of this enum in order to save a bit or two for other fields of struct main_type. But, since we still have extra room , and for the sake of clarity and consistency, we treat all fields of the union the same way.

Enumerator
TYPE_SPECIFIC_NONE 
TYPE_SPECIFIC_CPLUS_STUFF 
TYPE_SPECIFIC_GNAT_STUFF 
TYPE_SPECIFIC_FLOATFORMAT 
TYPE_SPECIFIC_FUNC 
TYPE_SPECIFIC_SELF_TYPE 

Definition at line 472 of file gdbtypes.h.

Function Documentation

◆ add_dyn_prop()

void add_dyn_prop ( enum dynamic_prop_node_kind  kind,
struct dynamic_prop  prop,
struct type type,
struct objfile objfile 
)

Given a dynamic property PROP of a given KIND, add this dynamic property to the given TYPE.

This function assumes that TYPE is objfile-owned, and that OBJFILE is the TYPE's objfile.

Definition at line 2345 of file gdbtypes.c.

References gdb_assert, dynamic_prop_list::next, dynamic_prop_list::prop, dynamic_prop_list::prop_kind, TYPE_DYN_PROP_LIST, and TYPE_OBJFILE_OWNED.

Referenced by create_array_type_with_stride(), and set_die_type().

◆ address_space_int_to_name()

const char* address_space_int_to_name ( struct gdbarch ,
int   
)

◆ address_space_name_to_int()

int address_space_name_to_int ( struct gdbarch ,
char *   
)

◆ alloc_type()

struct type* alloc_type ( struct objfile )

◆ alloc_type_arch()

struct type* alloc_type_arch ( struct gdbarch )

◆ alloc_type_copy()

struct type* alloc_type_copy ( const struct type )

◆ allocate_cplus_struct_type()

void allocate_cplus_struct_type ( struct type )

◆ allocate_gnat_aux_type()

void allocate_gnat_aux_type ( struct type )

◆ allocate_stub_method()

struct type* allocate_stub_method ( struct type )

Definition at line 848 of file gdbtypes.c.

References alloc_type_copy(), type, TYPE_CODE, TYPE_CODE_METHOD, TYPE_LENGTH, TYPE_STUB, and TYPE_TARGET_TYPE.

Referenced by read_type().

◆ append_composite_type_field()

void append_composite_type_field ( struct type t,
const char *  name,
struct type field 
)

◆ append_composite_type_field_aligned()

void append_composite_type_field_aligned ( struct type t,
const char *  name,
struct type field,
int  alignment 
)

◆ append_composite_type_field_raw()

struct field* append_composite_type_field_raw ( struct type t,
const char *  name,
struct type field 
)

◆ append_flags_type_field()

void append_flags_type_field ( struct type type,
int  start_bitpos,
int  nr_bits,
struct type field_type,
const char *  name 
)

◆ append_flags_type_flag()

void append_flags_type_flag ( struct type type,
int  bitpos,
const char *  name 
)

◆ arch_boolean_type()

struct type* arch_boolean_type ( struct gdbarch ,
int  ,
int  ,
const char *   
)

◆ arch_character_type()

struct type* arch_character_type ( struct gdbarch ,
int  ,
int  ,
const char *   
)

◆ arch_complex_type()

struct type* arch_complex_type ( struct gdbarch ,
const char *  ,
struct type  
)

◆ arch_composite_type()

struct type* arch_composite_type ( struct gdbarch gdbarch,
const char *  name,
enum type_code  code 
)

◆ arch_decfloat_type()

struct type* arch_decfloat_type ( struct gdbarch ,
int  ,
const char *   
)

Definition at line 5032 of file gdbtypes.c.

References arch_type(), bit, name, and TYPE_CODE_DECFLOAT.

Referenced by gdbtypes_post_init().

◆ arch_flags_type()

struct type* arch_flags_type ( struct gdbarch gdbarch,
const char *  name,
int  bit 
)

◆ arch_float_type()

struct type* arch_float_type ( struct gdbarch ,
int  ,
const char *  ,
const struct floatformat **   
)

◆ arch_integer_type()

struct type* arch_integer_type ( struct gdbarch ,
int  ,
int  ,
const char *   
)

◆ arch_pointer_type()

struct type* arch_pointer_type ( struct gdbarch ,
int  ,
const char *  ,
struct type  
)

◆ arch_type()

struct type* arch_type ( struct gdbarch ,
enum  type_code,
int  ,
const char *   
)

◆ builtin_type()

const struct builtin_type* builtin_type ( struct gdbarch gdbarch)

Return the type table for the specified architecture.

Definition at line 5217 of file gdbtypes.c.

References gdbarch_data(), and gdbtypes_data.

Referenced by aarch64_push_dummy_call(), aarch64_vnb_type(), aarch64_vnd_type(), aarch64_vnh_type(), aarch64_vnq_type(), aarch64_vns_type(), ada_evaluate_subexp(), ada_language_arch_info(), ada_scaling_type(), ada_tasks_inferior_data_sniffer(), ada_val_print_num(), address_from_register(), alpha_push_dummy_call(), alpha_register_type(), alpha_store_return_value(), amd64_x32_pseudo_register_type(), arm_neon_double_type(), arm_neon_quad_type(), arm_register_type(), assign_component(), avr_register_type(), bfin_register_type(), binop_promote(), BP_MANIPULATION(), bsd_uthread_read_memory_address(), build_gdb_vtable_type(), build_std_type_info_type(), c_language_arch_info(), call_function_by_hand_dummy(), call_site_to_target_addr(), compile_object_load(), compile_probe_arg(), convert_func(), convert_type_basic(), cplus_language_arch_info(), cris_register_type(), crisv32_register_type(), darwin_current_sos(), darwin_load_image_infos(), darwin_read_exec_load_addr_from_dyld(), darwin_solib_read_all_image_info_addr(), do_examine(), dtrace_process_dof_probe(), dwarf2_evaluate_loc_desc_full(), elf_gnu_ifunc_resolve_addr(), elf_gnu_ifunc_resolve_by_got(), elf_gnu_ifunc_resolver_return_stop(), elf_locate_base(), elf_rel_plt_read(), evaluate_subexp_for_sizeof(), evaluate_subexp_standard(), find_command(), float_type_from_length(), frv_register_type(), ft32_register_type(), gdbscm_arch_builtin_type(), gdbtypes_post_init(), gen_expr(), gen_expr_binop_rest(), gen_integral_promotions(), dwarf_expr_context::get_base_type(), get_running_thread_id(), get_signed_type(), get_unsigned_type(), gnuv3_baseclass_offset(), gnuv3_decode_method_ptr(), h8300_register_type(), handle_stap_probe(), hppa32_convert_from_func_ptr_addr(), hppa32_register_type(), hppa64_register_type(), hppa_skip_trampoline_code(), i386_bnd_type(), i386_mmx_type(), i386_mpx_get_bt_entry(), i386_mpx_info_bounds(), i386_mpx_set_bounds(), i386_pseudo_register_type(), i386_ymm_type(), i386_zmm_type(), ia64_register_type(), iq2000_register_type(), jit_read_code_entry(), jit_read_descriptor(), ld_so_xfer_auxv(), lm32_register_type(), lm_info_read(), locexpr_get_frame_base(), loclist_get_frame_base(), lookup_array_range_type(), lookup_child_selector(), lookup_objc_class(), m32r_register_type(), m68hc11_register_type(), m68k_register_type(), m88k_register_type(), tdesc_type_builtin::make_gdb_type(), tdesc_type_with_fields::make_gdb_type_struct(), mep_register_type(), mi_cmd_data_read_memory(), microblaze_register_type(), mips_print_fp_register(), mips_pseudo_register_type(), mips_register_type(), mn10300_register_type(), moxie_register_type(), msp430_register_type(), msp430x_register_type(), mt_copro_register_type(), mt_register_type(), nios2_register_type(), obsd_auxv_parse(), open_symbol_file_object(), pascal_language_arch_info(), ppscm_print_string_repr(), print_scalar_formatted(), print_string_repr(), printf_floating(), proc_watchpoint_address(), procfs_address_to_host_pointer(), procfs_can_use_hw_breakpoint(), read_base_type(), resolve(), resolve_msgsend(), resolve_msgsend_stret(), resolve_msgsend_super(), resolve_msgsend_super_stret(), rs6000_aix_extract_ld_info(), rs6000_builtin_type_vec128(), rs6000_builtin_type_vec64(), rs6000_pseudo_register_type(), rust_language_arch_info(), rx_register_type(), s390_pseudo_register_type(), safe_parse_type(), scan_dyntag(), score_register_type(), set_next_address(), sh64_do_fp_register(), sh64_register_type(), sh_default_register_type(), sh_sh2a_register_type(), sh_sh3e_register_type(), sh_sh4_register_type(), solib_svr4_r_brk(), solib_svr4_r_ldsomap(), solib_svr4_r_map(), sparc32_pseudo_register_type(), sparc32_register_type(), sparc64_pseudo_register_type(), sparc64_register_type(), spu_builtin_type_vec128(), spu_register_type(), stap_get_expected_argument_type(), stap_modify_semaphore(), tdesc_register_type(), tic6x_register_type(), tilegx_register_type(), unknown_language_arch_info(), unop_promote(), v850_register_type(), val_print_type_code_flags(), value_arg_coerce(), value_nsstring(), value_of_builtin_frame_fp_reg(), value_of_builtin_frame_pc_reg(), varobj_value_get_print_value(), vax_register_type(), vlscm_convert_bytevector(), vlscm_convert_number(), xstormy16_register_type(), xtensa_push_dummy_call(), and xtensa_register_type().

◆ can_dereference()

int can_dereference ( struct type )

Definition at line 3015 of file gdbtypes.c.

References check_typedef(), TYPE_CODE, TYPE_CODE_PTR, TYPE_CODE_VOID, and TYPE_TARGET_TYPE.

Referenced by print_value_flags().

◆ check_stub_method_group()

void check_stub_method_group ( struct type ,
int   
)

◆ check_typedef()

struct type* check_typedef ( struct type )

Definition at line 2421 of file gdbtypes.c.

References alloc_type_arch(), check_typedef(), currently_reading_symtab, gdb_assert, get_type_arch(), type::instance_flags, lookup_symbol(), lookup_transparent_type(), make_qualified_type(), name, opaque_type_resolution, STRUCT_DOMAIN, stub_noname_complaint(), block_symbol::symbol, SYMBOL_TYPE, type, TYPE_CODE, TYPE_CODE_RANGE, TYPE_CODE_TYPEDEF, TYPE_INSTANCE_FLAG_ADDRESS_CLASS_ALL, TYPE_INSTANCE_FLAG_CODE_SPACE, TYPE_INSTANCE_FLAG_DATA_SPACE, TYPE_INSTANCE_FLAGS, TYPE_IS_OPAQUE, TYPE_LENGTH, type_name_no_tag(), TYPE_OBJFILE, TYPE_STUB, TYPE_TARGET_STUB, and TYPE_TARGET_TYPE.

Referenced by aarch64_push_dummy_call(), aarch64_return_in_memory(), aarch64_store_return_value(), aarch64_type_align(), ada_array_bound(), ada_array_bound_from_type(), ada_array_length(), ada_check_typedef(), ada_evaluate_subexp(), ada_get_field_index(), ada_is_redundant_index_type_desc(), ada_tasks_inferior_data_sniffer(), ada_val_print_ref(), ada_value_ptr_subscript(), add_struct_fields(), adjust_value_for_child_access(), allocate_value_lazy(), alpha_push_dummy_call(), amd64_classify_aggregate(), arm_push_dummy_call(), arm_return_in_memory(), arm_type_align(), arm_vfp_abi_for_function(), arm_vfp_cprc_sub_candidate(), assign_aggregate(), assign_component(), avr_push_dummy_call(), bfin_push_dummy_call(), binop_promote(), binop_types_user_defined_p(), BP_MANIPULATION(), c_get_string(), c_print_type_1(), c_print_type_struct_field_offset(), c_print_type_union_field_offset(), c_print_typedef(), c_textual_element_type(), c_type_print_base_1(), c_val_print(), c_val_print_array(), c_val_print_ptr(), c_value_of_variable(), c_value_print(), c_watch_location_expression(), call_function_by_hand_dummy(), can_dereference(), can_use_hardware_watchpoint(), check_condition(), check_field(), check_parameter_typelist(), check_typedef(), check_types_equal(), classify_inner_name(), classify_type(), coerce_array(), coerce_pieced_ref(), coerce_ref(), coerce_ref_if_computed(), collection_list::collect_symbol(), compile_object_load(), complete_expression(), compute_vtable_size(), constrained_packed_array_type(), convert_char_literal(), convert_type(), cp_find_class_member(), cp_find_type_baseclass_by_name(), cp_lookup_bare_symbol(), cp_lookup_nested_symbol(), cp_lookup_nested_symbol_1(), cp_lookup_rtti_type(), cp_print_static_field(), cp_print_value(), cp_print_value_fields(), create_array_type_with_stride(), create_range_type(), create_value(), d_lookup_nested_symbol(), d_lookup_symbol(), d_val_print(), decode_constrained_packed_array_type(), default_read_var_value(), distance_to_ancestor(), do_ppc_sysv_return_value(), do_search_struct_field(), dynamic_array_type(), encode_actions_1(), entry_data_value_coerce_ref(), evaluate_funcall(), evaluate_struct_tuple(), evaluate_subexp_c(), evaluate_subexp_for_address(), evaluate_subexp_for_sizeof(), evaluate_subexp_modula2(), evaluate_subexp_opencl(), evaluate_subexp_standard(), evaluate_subexp_with_coercion(), f77_get_dynamic_length_of_aggregate(), f77_print_array_1(), f_type_print_base(), f_val_print(), fake_method::fake_method(), find_function_addr(), find_method(), find_method_list(), find_methods(), find_overload_match(), find_parallel_type_by_descriptive_type(), find_size_for_pointer_math(), find_symbol_in_baseclass(), fp_register_arg_p(), frv_push_dummy_call(), gccgo_string_p(), gdbpy_create_lazy_string_object(), gdbpy_get_xmethod_result_type(), gdbpy_invoke_xmethod(), gdbscm_type_sizeof(), gdbscm_type_strip_typedefs(), gdbscm_value_call(), gdbscm_value_dynamic_type(), gdbscm_value_referenced_value(), gdbscm_value_subscript(), gdbscm_value_to_bool(), gdbscm_value_to_bytevector(), gdbscm_value_to_integer(), gdbscm_value_to_lazy_string(), gdbscm_value_to_real(), gen_bitfield_ref(), gen_cast(), gen_deref(), gen_expr(), gen_expr_binop_rest(), gen_int_literal(), gen_struct_ref(), gen_struct_ref_recursive(), gen_trace_static_fields(), gen_traced_pop(), gen_usual_arithmetic(), gen_var_ref(), generate_register_struct(), generate_vla_size(), generic_val_print(), generic_val_print_array(), generic_val_print_ptr(), generic_val_print_ref(), get_discrete_bounds(), get_internalvar_integer(), get_out_value_type(), get_regs_type(), get_return_value(), get_signed_type_minmax(), get_symbol_field_type(), get_target_type(), get_type(), get_unsigned_type_max(), get_value_at(), get_vptr_fieldno(), gnuv2_baseclass_offset(), gnuv2_value_rtti_type(), gnuv2_virtual_fn_field(), gnuv3_dynamic_class(), gnuv3_get_typeid(), gnuv3_get_vtable(), gnuv3_method_ptr_to_value(), gnuv3_pass_by_reference(), gnuv3_print_vtable(), gnuv3_rtti_type(), gnuv3_virtual_fn_field(), go_classify_struct_type(), go_print_type(), go_val_print(), hash_typedef_field(), hppa32_push_dummy_call(), i386_16_byte_align_p(), i386_darwin_arg_type_alignment(), i386_reg_struct_return_p(), i386_return_value(), ia64_push_dummy_call(), indirect_pieced_value(), info_scope_command(), inspect_type(), internal_type_vptr_basetype(), internal_type_vptr_fieldno(), is_dynamic_type_internal(), is_float_or_hfa_type_recurse(), is_floating_type(), is_floating_value(), is_hfa_or_hva(), is_integral_type(), is_scalar_type(), is_scalar_type_recursive(), is_unique_ancestor_worker(), list_arg_or_local(), list_args_or_locals(), lookup_function_type_with_arguments(), lookup_struct_elt_type(), lookup_symbol_aux(), lsscm_elt_type(), lsscm_safe_lazy_string_to_value(), lval_func_check_synthetic_pointer(), lval_func_read(), lval_func_write(), m2_get_discrete_bounds(), m2_print_array_contents(), m2_print_long_set(), m2_print_type(), m2_print_typedef(), m2_print_unbounded_array(), m2_val_print(), m68k_svr4_return_value(), m88k_8_byte_align_p(), make_symbol_overload_list_adl_namespace(), mi_print_value_p(), mips_eabi_push_dummy_call(), mips_eabi_return_value(), mips_n32n64_fp_arg_chunk_p(), mips_n32n64_push_dummy_call(), mips_n32n64_return_value(), mips_o32_push_dummy_call(), mips_o64_push_dummy_call(), mn10300_type_align(), mn10300_use_struct_convention(), msp430_push_dummy_call(), nds32_check_calling_use_fpr(), nds32_type_align(), nios2_push_dummy_call(), opencl_component_ref(), opencl_logical_not(), opencl_print_type(), opencl_relop(), opencl_value_cast(), or1k_push_dummy_call(), pack_long(), pack_unsigned_long(), pascal_object_print_static_field(), pascal_object_print_value(), pascal_object_print_value_fields(), pascal_print_type(), pascal_print_typedef(), pascal_printstr(), pascal_type_print_base(), pascal_val_print(), ppc64_aggregate_candidate(), ppc64_sysv_abi_push_dummy_call(), ppc64_sysv_abi_push_param(), ppc64_sysv_abi_return_value(), ppc_sysv_abi_push_dummy_call(), ppc_sysv_use_opencl_abi(), print_formatted(), print_one_vtable(), print_symbol(), print_type_scalar(), print_unpacked_pointer(), print_variable_at_address(), print_variable_or_computed(), ptrmath_type_p(), py_print_type(), py_print_value(), rank_one_type(), read_frame_register_value(), read_one_struct_field(), read_subrange_type(), read_tag_ptr_to_member_type(), require_rvalue(), resolve_dynamic_array(), resolve_dynamic_struct(), resolve_dynamic_type(), resolve_dynamic_type_internal(), resolve_subexp(), return_command(), rs6000_lynx178_push_dummy_call(), rs6000_push_dummy_call(), rust_get_trait_object_pointer(), rust_print_type(), rust_print_typedef(), rust_subscript(), rust_type_alignment(), rust_val_print(), rust_watch_location_expression(), rx_push_dummy_call(), s390_effective_inner_type(), s390_handle_arg(), s390_push_dummy_call(), s390_return_value(), s390_value_from_register(), scalar_binop(), score_push_dummy_call(), search_struct_method(), set_internalvar(), set_type_vptr_basetype(), set_type_vptr_fieldno(), sh_is_renesas_calling_convention(), slot_alignment_is_next_even(), sparc32_struct_return_from_sym(), sparc64_16_byte_align_p(), sparc64_extract_floating_fields(), sparc64_store_floating_fields(), sparc_arg_on_registers_p(), sparc_structure_return_p(), spu_push_dummy_call(), spu_return_value(), store_regs(), stpy_convert_to_value(), stpy_lazy_string_elt_type(), tic6x_arg_type_alignment(), tic6x_push_dummy_call(), tic6x_return_value(), tlb_value_read(), type_name_no_tag_or_error(), typecmp(), types_equal(), typy_fields_items(), typy_get_composite(), typy_get_sizeof(), typy_strip_typedefs(), typy_template_argument(), tyscm_get_composite(), unop_promote(), unop_user_defined_p(), unpack_bits_as_long(), unpack_long(), update_watchpoint(), v850_eight_byte_align_p(), val_print(), val_print_array_elements(), val_print_packed_array_elements(), val_print_scalar_type_p(), valprint_check_validity(), valpy_binop_throw(), valpy_call(), valpy_float(), valpy_get_dynamic_type(), valpy_getitem(), valpy_lazy_string(), valpy_long(), valpy_nonzero(), valpy_referenced_value(), value_actual_type(), value_addr(), value_arg_coerce(), value_args_as_target_float(), value_assign(), value_binop(), value_cast(), value_cast_pointers(), value_cast_structs(), value_coerce_array(), value_coerce_to_target(), value_complement(), value_concat(), value_dynamic_cast(), value_equal(), value_equal_contents(), value_f90_subarray(), value_fetch_lazy(), value_find_oload_method_list(), value_from_contents_and_address(), value_from_pointer(), value_from_register(), value_has_field(), value_in(), value_ind(), value_less(), value_logical_not(), value_must_coerce_to_target(), value_neg(), value_of_dwarf_reg_entry(), value_one(), value_pos(), value_primitive_field(), value_ptradd(), value_ptrdiff(), value_ref(), value_reinterpret_cast(), value_rtti_indirect_type(), value_slice(), value_struct_element_index(), value_struct_elt(), value_struct_elt_bitpos(), value_struct_elt_for_reference(), value_subscript(), value_subscripted_rvalue(), value_vector_widen(), value_x_binop(), value_x_unop(), varobj_get_value_type(), vector_binop(), vector_relop(), vlscm_binop(), vlscm_convert_bytevector(), whatis_exp(), xtensa_push_dummy_call(), and yyparse().

◆ class_or_union_p()

int class_or_union_p ( const struct type )

Definition at line 3114 of file gdbtypes.c.

References TYPE_CODE, TYPE_CODE_STRUCT, and TYPE_CODE_UNION.

Referenced by call_function_by_hand_dummy(), and get_call_return_value().

◆ class_types_same_p()

int class_types_same_p ( const struct type ,
const struct type  
)

◆ compare_badness()

int compare_badness ( struct badness_vector ,
struct badness_vector  
)

Definition at line 3312 of file gdbtypes.c.

References compare_ranks(), badness_vector::length, and badness_vector::rank.

Referenced by find_oload_champ(), and find_overload_match().

◆ compare_ranks()

int compare_ranks ( struct rank  a,
struct rank  b 
)

Definition at line 3284 of file gdbtypes.c.

References rank::rank, and rank::subrank.

Referenced by classify_oload_match(), compare_badness(), and compare_parameters().

◆ copy_type()

struct type* copy_type ( const struct type type)

◆ copy_type_recursive()

struct type* copy_type_recursive ( struct objfile objfile,
struct type type,
htab_t  copied_types 
)

◆ create_array_type()

struct type* create_array_type ( struct type ,
struct type ,
struct type  
)

◆ create_array_type_with_stride()

struct type* create_array_type_with_stride ( struct type ,
struct type ,
struct type ,
struct dynamic_prop ,
unsigned  int 
)

◆ create_copied_types_hash()

htab_t create_copied_types_hash ( struct objfile objfile)

◆ create_range_type()

struct type* create_range_type ( struct type ,
struct type ,
const struct dynamic_prop ,
const struct dynamic_prop  
)

◆ create_set_type()

struct type* create_set_type ( struct type ,
struct type  
)

◆ create_static_range_type()

struct type* create_static_range_type ( struct type ,
struct type ,
LONGEST  ,
LONGEST   
)

◆ create_string_type()

struct type* create_string_type ( struct type ,
struct type ,
struct type  
)

Definition at line 1256 of file gdbtypes.c.

References create_array_type(), TYPE_CODE, and TYPE_CODE_STRING.

Referenced by read_tag_string_type().

◆ DEF_ENUM_FLAGS_TYPE()

DEF_ENUM_FLAGS_TYPE ( enum  type_instance_flag_value,
type_instance_flags   
)

◆ DEFINE_OFFSET_TYPE() [1/2]

DEFINE_OFFSET_TYPE ( cu_offset  ,
unsigned  int 
)

Offset relative to the start of its containing CU (compilation unit).

◆ DEFINE_OFFSET_TYPE() [2/2]

DEFINE_OFFSET_TYPE ( sect_offset  ,
unsigned  int 
)

Offset relative to the start of its .debug_info or .debug_types section.

◆ discrete_position()

int discrete_position ( struct type type,
LONGEST  val,
LONGEST pos 
)

◆ field_is_static()

int field_is_static ( struct field )

◆ floatformat_from_type()

const struct floatformat* floatformat_from_type ( const struct type type)

◆ gdb_mangle_name()

char* gdb_mangle_name ( struct type ,
int  ,
int   
)

◆ get_array_bounds()

int get_array_bounds ( struct type type,
LONGEST low_bound,
LONGEST high_bound 
)

◆ get_discrete_bounds()

int get_discrete_bounds ( struct type ,
LONGEST ,
LONGEST  
)

◆ get_dyn_prop()

struct dynamic_prop* get_dyn_prop ( enum dynamic_prop_node_kind  kind,
const struct type type 
)

Return the dynamic property of the requested KIND from TYPE's list of dynamic properties.

Definition at line 2329 of file gdbtypes.c.

References dynamic_prop_list::next, dynamic_prop_list::prop, dynamic_prop_list::prop_kind, and TYPE_DYN_PROP_LIST.

Referenced by ada_value_slice(), ada_value_slice_from_ptr(), array_type_has_dynamic_stride(), and resolve_dynamic_array().

◆ get_signed_type_minmax()

void get_signed_type_minmax ( struct type ,
LONGEST ,
LONGEST  
)

◆ get_target_type()

struct type* get_target_type ( struct type type)

This returns the target type (or NULL) of TYPE, also skipping past typedefs.

Definition at line 245 of file gdbtypes.c.

References check_typedef(), type, and TYPE_TARGET_TYPE.

Referenced by adjust_value_for_child_access(), c_describe_child(), c_number_of_children(), and varobj_get_value_type().

◆ get_type_arch()

struct gdbarch* get_type_arch ( const struct type )

Return the type's architecture. For types owned by an architecture, that architecture is returned. For types owned by an objfile, that objfile's architecture is returned.

Definition at line 234 of file gdbtypes.c.

References get_objfile_arch(), TYPE_OBJFILE_OWNED, and TYPE_OWNER.

Referenced by ada_scaling_type(), ada_val_print_num(), ada_val_print_string(), ada_value_assign(), ada_value_binop(), ada_value_primitive_packed_val(), append_flags_type_flag(), c_emit_char(), c_get_string(), c_printchar(), c_printstr(), c_type_print_modifier(), c_val_print_array(), c_val_print_int(), c_val_print_ptr(), c_val_print_struct(), check_stub_method(), check_typedef(), copy_type_recursive(), cp_print_class_member(), cp_print_value_fields(), decode_constrained_packed_array(), default_print_one_register_info(), default_read_var_value(), extract_typed_address(), f_get_encoding(), f_val_print(), find_function_addr(), float_type_from_length(), gdbpy_apply_val_pretty_printer(), gdbscm_apply_val_pretty_printer(), gdbscm_value_subscript(), generic_emit_char(), generic_printstr(), generic_val_print_bool(), generic_val_print_char(), generic_val_print_complex(), generic_val_print_enum(), generic_val_print_float(), generic_val_print_func(), generic_val_print_ptr(), get_value_arch(), gnuv3_baseclass_offset(), gnuv3_get_typeid(), gnuv3_get_typename_from_type_info(), gnuv3_make_method_ptr(), gnuv3_method_ptr_size(), gnuv3_method_ptr_to_value(), gnuv3_print_method_ptr(), gnuv3_print_vtable(), gnuv3_rtti_type(), gnuv3_virtual_fn_field(), lookup_array_range_type(), make_pointer_type(), make_reference_type(), match_endianness(), modify_field(), pack_long(), pack_unsigned_long(), pascal_printstr(), pascal_val_print(), print_formatted(), print_go_string(), print_ref_address(), print_scalar_formatted(), print_unpacked_pointer(), print_variable_at_address(), printf_floating(), printf_wide_c_string(), printstr(), rust_emitchar(), rust_val_print(), rw_pieced_value(), scalar_binop(), smash_to_memberptr_type(), store_typed_address(), target_float_same_format_p(), type_length_units(), ui_printf(), unpack_bits_as_long(), unpack_long(), unpack_value_bitfield(), update_watchpoint(), val_print_scalar_formatted(), val_print_string(), val_print_type_code_flags(), value_as_address(), value_assign(), value_assign_to_component(), value_bit_index(), value_cast(), value_pointer(), value_x_unop(), and varobj_value_get_print_value().

◆ get_unsigned_type_max()

void get_unsigned_type_max ( struct type ,
ULONGEST  
)

◆ get_vptr_fieldno()

int get_vptr_fieldno ( struct type ,
struct type **   
)

◆ init_boolean_type()

struct type* init_boolean_type ( struct objfile ,
int  ,
int  ,
const char *   
)

Definition at line 2934 of file gdbtypes.c.

References bit, init_type(), name, TYPE_CODE_BOOL, and TYPE_UNSIGNED.

Referenced by read_base_type(), read_sun_builtin_type(), and rs6000_builtin_type().

◆ init_character_type()

struct type* init_character_type ( struct objfile ,
int  ,
int  ,
const char *   
)

Definition at line 2917 of file gdbtypes.c.

References bit, init_type(), name, TYPE_CODE_CHAR, and TYPE_UNSIGNED.

Referenced by read_base_type(), and rs6000_builtin_type().

◆ init_complex_type()

struct type* init_complex_type ( struct objfile ,
const char *  ,
struct type  
)

◆ init_decfloat_type()

struct type* init_decfloat_type ( struct objfile ,
int  ,
const char *   
)

Definition at line 2971 of file gdbtypes.c.

References bit, init_type(), name, and TYPE_CODE_DECFLOAT.

Referenced by read_base_type().

◆ init_float_type()

struct type* init_float_type ( struct objfile ,
int  ,
const char *  ,
const struct floatformat **   
)

◆ init_integer_type()

struct type* init_integer_type ( struct objfile ,
int  ,
int  ,
const char *   
)

◆ init_pointer_type()

struct type* init_pointer_type ( struct objfile ,
int  ,
const char *  ,
struct type  
)

Definition at line 3000 of file gdbtypes.c.

References bit, init_type(), name, TYPE_CODE_PTR, TYPE_TARGET_TYPE, and TYPE_UNSIGNED.

Referenced by basic_type(), objfile_type(), and read_base_type().

◆ init_type()

struct type* init_type ( struct objfile ,
enum  type_code,
int  ,
const char *   
)

◆ init_vector_type()

struct type* init_vector_type ( struct type elt_type,
int  n 
)

◆ internal_type_self_type()

struct type* internal_type_self_type ( struct type )

◆ internal_type_vptr_basetype()

struct type* internal_type_vptr_basetype ( struct type )

◆ internal_type_vptr_fieldno()

int internal_type_vptr_fieldno ( struct type )

◆ is_ancestor()

int is_ancestor ( struct type ,
struct type  
)

Definition at line 3185 of file gdbtypes.c.

References distance_to_ancestor().

Referenced by value_dynamic_cast().

◆ is_dynamic_type()

int is_dynamic_type ( struct type type)

◆ is_floating_type()

int is_floating_type ( struct type )

◆ is_integral_type()

int is_integral_type ( struct type )

◆ is_public_ancestor()

int is_public_ancestor ( struct type ,
struct type  
)

Definition at line 3194 of file gdbtypes.c.

References distance_to_ancestor().

Referenced by value_dynamic_cast().

◆ is_scalar_type()

int is_scalar_type ( struct type type)

◆ is_scalar_type_recursive()

int is_scalar_type_recursive ( struct type )

◆ is_unique_ancestor()

int is_unique_ancestor ( struct type ,
struct value  
)

◆ lookup_array_range_type()

struct type* lookup_array_range_type ( struct type ,
LONGEST  ,
LONGEST   
)

◆ lookup_function_type()

struct type* lookup_function_type ( struct type )

◆ lookup_function_type_with_arguments()

struct type* lookup_function_type_with_arguments ( struct type ,
int  ,
struct type **   
)

◆ lookup_lvalue_reference_type()

struct type* lookup_lvalue_reference_type ( struct type )

◆ lookup_memberptr_type()

struct type* lookup_memberptr_type ( struct type ,
struct type  
)

◆ lookup_methodptr_type()

struct type* lookup_methodptr_type ( struct type )

◆ lookup_pointer_type()

struct type* lookup_pointer_type ( struct type )

Definition at line 381 of file gdbtypes.c.

References make_pointer_type().

Referenced by aarch64_push_dummy_call(), aarch64_stap_parse_special_token(), ada_evaluate_subexp(), ada_get_tsd_from_tag(), ada_language_arch_info(), ada_tag_value_at_base_address(), ada_type_of_array(), ada_val_print_ref(), ada_value_ptr_subscript(), ada_varobj_ind(), address_of_variable(), alpha_push_dummy_call(), amd64_dtrace_parse_probe_argument(), arm_stap_parse_special_token(), call_function_by_hand_dummy(), check_stub_method(), compile_object_run(), convert_ast_to_type(), decode_type(), default_read_var_value(), define_symbol(), desc_bounds(), do_module_cleanup(), evaluate_funcall(), evaluate_subexp_for_address(), evaluate_subexp_standard(), evaluate_subexp_with_coercion(), fbsd_get_siginfo_type(), find_function_in_inferior(), flush_ea_cache(), follow_types(), gdbpy_get_xmethod_arg_types(), gdbpy_get_xmethod_result_type(), gdbpy_invoke_xmethod(), gdbscm_type_pointer(), gdbscm_value_dynamic_type(), gdbtypes_post_init(), gen_address_of(), gen_usual_unary(), gnuv2_virtual_fn_field(), gnuv3_get_virtual_fn(), gnuv3_get_vtable(), gnuv3_method_ptr_to_value(), i386_stap_parse_special_token_three_arg_disp(), i386_stap_parse_special_token_triplet(), linux_get_siginfo_type_with_fields(), read_tag_pointer_type(), rust_get_trait_object_pointer(), rust_slice_type(), sparc32_store_arguments(), sparc64_store_arguments(), stap_parse_register_operand(), thin_data_pntr(), typy_lookup_type(), typy_pointer(), upgrade_type(), valpy_get_dynamic_type(), valpy_getitem(), value_addr(), value_arg_coerce(), value_coerce_array(), value_coerce_function(), value_fn_field(), value_nsstring(), value_reinterpret_cast(), value_rtti_indirect_type(), value_struct_elt_for_reference(), windows_get_tlb_type(), x_command(), and yyparse().

◆ lookup_reference_type()

struct type* lookup_reference_type ( struct type ,
enum  type_code 
)

◆ lookup_rvalue_reference_type()

struct type* lookup_rvalue_reference_type ( struct type )

Definition at line 478 of file gdbtypes.c.

References lookup_reference_type(), and TYPE_CODE_RVALUE_REF.

Referenced by follow_types(), typy_lookup_type(), and valpy_getitem().

◆ lookup_signed_typename()

struct type* lookup_signed_typename ( const struct language_defn ,
struct gdbarch ,
const char *   
)

Definition at line 1537 of file gdbtypes.c.

References lookup_typename(), and name.

Referenced by binop_promote(), and yyparse().

◆ lookup_string_range_type()

struct type* lookup_string_range_type ( struct type ,
LONGEST  ,
LONGEST   
)

Definition at line 1268 of file gdbtypes.c.

References lookup_array_range_type(), TYPE_CODE, and TYPE_CODE_STRING.

Referenced by value_string().

◆ lookup_struct_elt_type()

struct type* lookup_struct_elt_type ( struct type ,
const char *  ,
int   
)

◆ lookup_template_type()

struct type* lookup_template_type ( char *  ,
struct type ,
const struct block  
)

◆ lookup_typename()

struct type* lookup_typename ( const struct language_defn ,
struct gdbarch ,
const char *  ,
const struct block ,
int   
)

◆ lookup_unsigned_typename()

struct type* lookup_unsigned_typename ( const struct language_defn ,
struct gdbarch ,
const char *   
)

Definition at line 1526 of file gdbtypes.c.

References lookup_typename(), and name.

Referenced by binop_promote(), and yyparse().

◆ maintenance_print_type()

void maintenance_print_type ( const char *  ,
int   
)

Definition at line 653 of file typeprint.c.

References evaluate_type(), parse_expression(), recursive_dump_type(), type, and value_type().

Referenced by _initialize_maint_cmds().

◆ make_atomic_type()

struct type* make_atomic_type ( struct type )

Definition at line 760 of file gdbtypes.c.

References make_qualified_type(), TYPE_INSTANCE_FLAG_ATOMIC, and TYPE_INSTANCE_FLAGS.

Referenced by read_tag_atomic_type().

◆ make_cv_type()

struct type* make_cv_type ( int  ,
int  ,
struct type ,
struct type **   
)

◆ make_function_type()

struct type* make_function_type ( struct type ,
struct type **   
)

◆ make_pointer_type()

struct type* make_pointer_type ( struct type ,
struct type **   
)

◆ make_reference_type()

struct type* make_reference_type ( struct type ,
struct type **  ,
enum  type_code 
)

◆ make_restrict_type()

struct type* make_restrict_type ( struct type )

◆ make_type_with_address_space()

struct type* make_type_with_address_space ( struct type type,
int  space_identifier 
)

◆ make_unqualified_type()

struct type* make_unqualified_type ( struct type )

◆ make_vector_type()

void make_vector_type ( struct type array_type)

◆ objfile_type()

const struct objfile_type* objfile_type ( struct objfile objfile)

Return the type table for the specified objfile.

Definition at line 5363 of file gdbtypes.c.

References objfile_type::builtin_char, objfile_type::builtin_core_addr, objfile_type::builtin_double, objfile_type::builtin_error, objfile_type::builtin_float, objfile_type::builtin_int, objfile_type::builtin_long, objfile_type::builtin_long_double, objfile_type::builtin_long_long, objfile_type::builtin_short, objfile_type::builtin_signed_char, objfile_type::builtin_unsigned_char, objfile_type::builtin_unsigned_int, objfile_type::builtin_unsigned_long, objfile_type::builtin_unsigned_long_long, objfile_type::builtin_unsigned_short, objfile_type::builtin_void, gdbarch_addr_bit(), gdbarch_char_signed(), gdbarch_double_bit(), gdbarch_double_format(), gdbarch_float_bit(), gdbarch_float_format(), gdbarch_int_bit(), gdbarch_long_bit(), gdbarch_long_double_bit(), gdbarch_long_double_format(), gdbarch_long_long_bit(), gdbarch_short_bit(), get_objfile_arch(), init_float_type(), init_integer_type(), init_nodebug_var_type(), init_pointer_type(), init_type(), objfile_type::nodebug_data_symbol, objfile_type::nodebug_got_plt_symbol, objfile_type::nodebug_text_gnu_ifunc_symbol, objfile_type::nodebug_text_symbol, objfile_type::nodebug_tls_symbol, objfile_type::nodebug_unknown_symbol, objfile_type(), objfile_type_data, OBSTACK_CALLOC, TARGET_CHAR_BIT, TYPE_CODE_ERROR, TYPE_CODE_FUNC, TYPE_CODE_VOID, TYPE_GNU_IFUNC, TYPE_NOSIGN, and TYPE_TARGET_TYPE.

Referenced by add_data_symbol(), basic_type(), convert_func(), convert_symbol_bmsym(), convert_type_basic(), dbx_lookup_type(), decode_base_type(), decode_type(), define_symbol(), die_type(), error_type(), find_minsym_type_and_address(), flush_ea_cache(), new_symbol_full(), objfile_type(), parse_procedure(), parse_symbol(), process_xcoff_symbol(), psymtab_to_symtab_1(), read_array_type(), read_range_type(), read_subrange_type(), read_subroutine_type(), read_tag_string_type(), rs6000_builtin_type(), and upgrade_type().

◆ operator!=() [1/2]

static bool operator!= ( const dynamic_prop l,
const dynamic_prop r 
)
inlinestatic

Definition at line 412 of file gdbtypes.h.

◆ operator!=() [2/2]

static bool operator!= ( const range_bounds l,
const range_bounds r 
)
inlinestatic

Definition at line 579 of file gdbtypes.h.

◆ operator==() [1/2]

bool operator== ( const dynamic_prop l,
const dynamic_prop r 
)

◆ operator==() [2/2]

bool operator== ( const range_bounds l,
const range_bounds r 
)

Definition at line 887 of file gdbtypes.c.

References FIELD_EQ.

◆ print_scalar_formatted()

void print_scalar_formatted ( const gdb_byte ,
struct type ,
const struct value_print_options ,
int  ,
struct ui_file  
)

◆ rank_function()

struct badness_vector* rank_function ( struct type **  ,
int  ,
struct value **  ,
int   
)

◆ rank_one_type()

struct rank rank_one_type ( struct type ,
struct type ,
struct value  
)

◆ recursive_dump_type()

void recursive_dump_type ( struct type ,
int   
)

Definition at line 4380 of file gdbtypes.c.

References _, dont_print_type_obstack, gdb_print_host_address, gdb_stdout, HAVE_CPLUS_STRUCT, name, plongest(), print_cplus_stuff(), print_gnat_stuff(), printf_filtered(), printfi_filtered(), puts_filtered(), recursive_dump_type(), TYPE_ADDRESS_CLASS_1, TYPE_ADDRESS_CLASS_2, TYPE_ATOMIC, TYPE_CALLING_CONVENTION, TYPE_CHAIN, TYPE_CODE, TYPE_CODE_ARRAY, TYPE_CODE_BOOL, TYPE_CODE_CHAR, TYPE_CODE_COMPLEX, TYPE_CODE_ENUM, TYPE_CODE_ERROR, TYPE_CODE_FLAGS, TYPE_CODE_FLT, TYPE_CODE_FUNC, TYPE_CODE_INT, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD, TYPE_CODE_METHODPTR, TYPE_CODE_NAMESPACE, TYPE_CODE_PTR, TYPE_CODE_RANGE, TYPE_CODE_REF, TYPE_CODE_SET, TYPE_CODE_SPACE, TYPE_CODE_STRING, TYPE_CODE_STRUCT, TYPE_CODE_TYPEDEF, TYPE_CODE_UNDEF, TYPE_CODE_UNION, TYPE_CODE_VOID, TYPE_CONST, TYPE_CPLUS_SPECIFIC, TYPE_DATA_SPACE, TYPE_FIELD_BITPOS, TYPE_FIELD_BITSIZE, TYPE_FIELD_ENUMVAL, TYPE_FIELD_NAME, TYPE_FIELD_TYPE, TYPE_FIELDS, TYPE_FIXED_INSTANCE, TYPE_FLOATFORMAT, TYPE_GNAT_SPECIFIC, TYPE_HIGH_BOUND, TYPE_HIGH_BOUND_UNDEFINED, TYPE_INCOMPLETE, TYPE_INSTANCE_FLAGS, TYPE_LENGTH, TYPE_LOW_BOUND, TYPE_LOW_BOUND_UNDEFINED, TYPE_NAME, TYPE_NFIELDS, TYPE_NFN_FIELDS, TYPE_NOSIGN, TYPE_NOTTEXT, TYPE_OBJFILE_OWNED, TYPE_OWNER, TYPE_POINTER_TYPE, TYPE_PROTOTYPED, TYPE_REFERENCE_TYPE, TYPE_RESTRICT, TYPE_SELF_TYPE, TYPE_SPECIFIC_CPLUS_STUFF, TYPE_SPECIFIC_FIELD, TYPE_SPECIFIC_FLOATFORMAT, TYPE_SPECIFIC_FUNC, TYPE_SPECIFIC_GNAT_STUFF, TYPE_SPECIFIC_SELF_TYPE, TYPE_STUB, TYPE_STUB_SUPPORTED, TYPE_TAG_NAME, TYPE_TARGET_STUB, TYPE_TARGET_TYPE, TYPE_UNSIGNED, TYPE_VARARGS, TYPE_VECTOR, and TYPE_VOLATILE.

Referenced by dump_fn_fieldlists(), maintenance_print_type(), print_args(), print_cplus_stuff(), print_gnat_stuff(), and recursive_dump_type().

◆ remove_dyn_prop()

void remove_dyn_prop ( enum dynamic_prop_node_kind  prop_kind,
struct type type 
)

◆ replace_type()

void replace_type ( struct type ,
struct type  
)

◆ resolve_dynamic_type()

struct type* resolve_dynamic_type ( struct type type,
const gdb_byte valaddr,
CORE_ADDR  addr 
)

Resolve all dynamic values of a type e.g. array bounds to static values. ADDR specifies the location of the variable the type is bound to. If TYPE has no dynamic properties return TYPE; otherwise a new type with static properties is returned.

Definition at line 2317 of file gdbtypes.c.

References property_addr_info::addr, check_typedef(), resolve_dynamic_type_internal(), and property_addr_info::valaddr.

Referenced by ada_discrete_type_high_bound(), ada_discrete_type_low_bound(), ada_val_print_1(), ada_value_primitive_packed_val(), default_read_var_value(), value_from_contents_and_address(), and value_subscripted_rvalue().

◆ set_type_self_type()

void set_type_self_type ( struct type ,
struct type  
)

◆ set_type_vptr_basetype()

void set_type_vptr_basetype ( struct type ,
struct type  
)

◆ set_type_vptr_fieldno()

void set_type_vptr_fieldno ( struct type ,
int   
)

◆ smash_to_memberptr_type()

void smash_to_memberptr_type ( struct type ,
struct type ,
struct type  
)

◆ smash_to_method_type()

void smash_to_method_type ( struct type type,
struct type self_type,
struct type to_type,
struct field args,
int  nargs,
int  varargs 
)

◆ smash_to_methodptr_type()

void smash_to_methodptr_type ( struct type ,
struct type  
)

◆ sum_ranks()

struct rank sum_ranks ( struct rank  a,
struct rank  b 
)

Definition at line 3270 of file gdbtypes.c.

References rank::rank, and rank::subrank.

Referenced by rank_one_type().

◆ type_length_units()

unsigned int type_length_units ( struct type type)

◆ type_name_no_tag()

const char* type_name_no_tag ( const struct type )

◆ type_name_no_tag_or_error()

const char* type_name_no_tag_or_error ( struct type type)

◆ type_not_allocated()

int type_not_allocated ( const struct type type)

◆ type_not_associated()

int type_not_associated ( const struct type type)

◆ types_deeply_equal()

int types_deeply_equal ( struct type ,
struct type  
)

◆ types_equal()

int types_equal ( struct type ,
struct type  
)

Variable Documentation

◆ BASE_CONVERSION_BADNESS

const struct rank BASE_CONVERSION_BADNESS

Badness of converting derived to base class.

Definition at line 61 of file gdbtypes.c.

Referenced by rank_one_type().

◆ BASE_PTR_CONVERSION_BADNESS

const struct rank BASE_PTR_CONVERSION_BADNESS

Badness of converting a derived class pointer to a base class pointer.

Definition at line 54 of file gdbtypes.c.

Referenced by rank_one_type().

◆ BOOL_CONVERSION_BADNESS

const struct rank BOOL_CONVERSION_BADNESS

Badness of conversion to boolean.

Definition at line 60 of file gdbtypes.c.

Referenced by rank_one_type().

◆ cplus_struct_default

const struct cplus_struct_type cplus_struct_default

The default value of TYPE_CPLUS_SPECIFIC(T) points to this shared static structure.

Definition at line 2779 of file gdbtypes.c.

Referenced by allocate_cplus_struct_type().

◆ CV_CONVERSION_BADNESS

const struct rank CV_CONVERSION_BADNESS

Badness of cv-conversion. Subrank is a flag describing the conversions being done.

Definition at line 55 of file gdbtypes.c.

Referenced by rank_one_type().

◆ EXACT_MATCH_BADNESS

const struct rank EXACT_MATCH_BADNESS

Badness of an exact match.

Definition at line 50 of file gdbtypes.c.

Referenced by compare_parameters(), rank_function(), and rank_one_type().

◆ FLOAT_CONVERSION_BADNESS

const struct rank FLOAT_CONVERSION_BADNESS

Badness of floating conversion.

Definition at line 57 of file gdbtypes.c.

Referenced by rank_one_type().

◆ FLOAT_PROMOTION_BADNESS

const struct rank FLOAT_PROMOTION_BADNESS

Badness of floating promotion.

Definition at line 53 of file gdbtypes.c.

Referenced by rank_one_type().

◆ floatformats_arm_ext

const struct floatformat* floatformats_arm_ext[BFD_ENDIAN_UNKNOWN]

Definition at line 92 of file gdbtypes.c.

Referenced by arm_ext_type(), and tdesc_type_builtin::make_gdb_type().

◆ floatformats_i387_ext

const struct floatformat* floatformats_i387_ext[BFD_ENDIAN_UNKNOWN]

◆ floatformats_ia64_quad

const struct floatformat* floatformats_ia64_quad[BFD_ENDIAN_UNKNOWN]

◆ floatformats_ia64_spill

const struct floatformat* floatformats_ia64_spill[BFD_ENDIAN_UNKNOWN]

Definition at line 96 of file gdbtypes.c.

◆ floatformats_ibm_long_double

const struct floatformat* floatformats_ibm_long_double[BFD_ENDIAN_UNKNOWN]

◆ floatformats_ieee_double

const struct floatformat* floatformats_ieee_double[BFD_ENDIAN_UNKNOWN]

◆ floatformats_ieee_double_littlebyte_bigword

const struct floatformat* floatformats_ieee_double_littlebyte_bigword[BFD_ENDIAN_UNKNOWN]

◆ floatformats_ieee_half

const struct floatformat* floatformats_ieee_half[BFD_ENDIAN_UNKNOWN]

Definition at line 68 of file gdbtypes.c.

Referenced by build_opencl_types(), and verify_gdbarch().

◆ floatformats_ieee_single

const struct floatformat* floatformats_ieee_single[BFD_ENDIAN_UNKNOWN]

◆ floatformats_m68881_ext

const struct floatformat* floatformats_m68881_ext[BFD_ENDIAN_UNKNOWN]

Definition at line 88 of file gdbtypes.c.

Referenced by m68881_ext_type(), and m68k_gdbarch_init().

◆ floatformats_vax_d

const struct floatformat* floatformats_vax_d[BFD_ENDIAN_UNKNOWN]

Definition at line 108 of file gdbtypes.c.

Referenced by vax_gdbarch_init().

◆ floatformats_vax_f

const struct floatformat* floatformats_vax_f[BFD_ENDIAN_UNKNOWN]

Definition at line 104 of file gdbtypes.c.

Referenced by vax_gdbarch_init().

◆ gnat_aux_default

const struct gnat_aux_type gnat_aux_default

Definition at line 2795 of file gdbtypes.c.

Referenced by allocate_gnat_aux_type().

◆ INCOMPATIBLE_TYPE_BADNESS

const struct rank INCOMPATIBLE_TYPE_BADNESS

Badness if no conversion among types.

Definition at line 48 of file gdbtypes.c.

Referenced by classify_oload_match(), and rank_one_type().

◆ INT_FLOAT_CONVERSION_BADNESS

const struct rank INT_FLOAT_CONVERSION_BADNESS

Badness of integer<->floating conversions.

Definition at line 58 of file gdbtypes.c.

Referenced by rank_one_type().

◆ INTEGER_CONVERSION_BADNESS

const struct rank INTEGER_CONVERSION_BADNESS

Badness of integral conversion.

Definition at line 56 of file gdbtypes.c.

Referenced by rank_one_type().

◆ INTEGER_PROMOTION_BADNESS

const struct rank INTEGER_PROMOTION_BADNESS

Badness of integral promotion.

Definition at line 52 of file gdbtypes.c.

Referenced by rank_one_type().

◆ LENGTH_MISMATCH_BADNESS

const struct rank LENGTH_MISMATCH_BADNESS

Badness if parameter list length doesn't match arg list length.

Definition at line 45 of file gdbtypes.c.

Referenced by rank_function().

◆ NS_INTEGER_POINTER_CONVERSION_BADNESS

const struct rank NS_INTEGER_POINTER_CONVERSION_BADNESS

Badness of converting a (non-zero) integer constant to a pointer.

Definition at line 65 of file gdbtypes.c.

Referenced by rank_one_type().

◆ NS_POINTER_CONVERSION_BADNESS

const struct rank NS_POINTER_CONVERSION_BADNESS

Converting a pointer to an int is usually OK.

Definition at line 64 of file gdbtypes.c.

Referenced by classify_oload_match(), and rank_one_type().

◆ NULL_POINTER_CONVERSION

const struct rank NULL_POINTER_CONVERSION

Badness of converting integer 0 to NULL pointer.

◆ REFERENCE_CONVERSION_BADNESS

const struct rank REFERENCE_CONVERSION_BADNESS

Badness of converting from non-reference to reference. Subrank is the type of reference conversion being done.

Definition at line 62 of file gdbtypes.c.

Referenced by rank_one_type().

◆ TOO_FEW_PARAMS_BADNESS

const struct rank TOO_FEW_PARAMS_BADNESS

Dummy badness value for nonexistent parameter positions.

Definition at line 47 of file gdbtypes.c.

Referenced by rank_function().

◆ VOID_PTR_CONVERSION_BADNESS

const struct rank VOID_PTR_CONVERSION_BADNESS

Badness of conversion of pointer to void pointer.

Definition at line 59 of file gdbtypes.c.

Referenced by rank_one_type().