GDB (xrefs)
Classes | Macros | Enumerations | Functions | Variables
/tmp/gdb-7.10/gdb/gdbtypes.h File Reference
#include "hashtab.h"

Go to the source code of this file.

Classes

struct  cu_offset
 
struct  sect_offset
 
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  typedef_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_STATIC(t)   (TYPE_MAIN_TYPE (t)->flag_static)
 
#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)
 
#define TYPE_VOLATILE(t)   (TYPE_INSTANCE_FLAGS (t) & TYPE_INSTANCE_FLAG_VOLATILE)
 
#define TYPE_RESTRICT(t)   (TYPE_INSTANCE_FLAGS (t) & TYPE_INSTANCE_FLAG_RESTRICT)
 
#define TYPE_ATOMIC(t)   (TYPE_INSTANCE_FLAGS (t) & TYPE_INSTANCE_FLAG_ATOMIC)
 
#define TYPE_CODE_SPACE(t)   (TYPE_INSTANCE_FLAGS (t) & TYPE_INSTANCE_FLAG_CODE_SPACE)
 
#define TYPE_DATA_SPACE(t)   (TYPE_INSTANCE_FLAGS (t) & TYPE_INSTANCE_FLAG_DATA_SPACE)
 
#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_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_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 TYPE_CPLUS_REALLY_JAVA(thistype)   TYPE_CPLUS_SPECIFIC (thistype)->is_java
 
#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_PUBLIC(thisfn, n)   ((thisfn)[n].is_public)
 
#define TYPE_FN_FIELD_STATIC(thisfn, n)   ((thisfn)[n].is_static)
 
#define TYPE_FN_FIELD_FINAL(thisfn, n)   ((thisfn)[n].is_final)
 
#define TYPE_FN_FIELD_SYNCHRONIZED(thisfn, n)   ((thisfn)[n].is_synchronized)
 
#define TYPE_FN_FIELD_NATIVE(thisfn, n)   ((thisfn)[n].is_native)
 
#define TYPE_FN_FIELD_ARTIFICIAL(thisfn, n)   ((thisfn)[n].is_artificial)
 
#define TYPE_FN_FIELD_ABSTRACT(thisfn, n)   ((thisfn)[n].is_abstract)
 
#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_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 CHECK_TYPEDEF(TYPE)
 
#define LENGTH_MATCH(bv)   ((bv)->rank[0])
 

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_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_flag_value {
  TYPE_FLAG_UNSIGNED = (1 << 9), TYPE_FLAG_NOSIGN = (1 << 10), TYPE_FLAG_STUB = (1 << 11), TYPE_FLAG_TARGET_STUB = (1 << 12),
  TYPE_FLAG_STATIC = (1 << 13), TYPE_FLAG_PROTOTYPED = (1 << 14), TYPE_FLAG_INCOMPLETE = (1 << 15), TYPE_FLAG_VARARGS = (1 << 16),
  TYPE_FLAG_VECTOR = (1 << 17), TYPE_FLAG_FIXED_INSTANCE = (1 << 18), TYPE_FLAG_STUB_SUPPORTED = (1 << 19), TYPE_FLAG_GNU_IFUNC = (1 << 20),
  TYPE_FLAG_MIN = TYPE_FLAG_UNSIGNED
}
 
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 }
 
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

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 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)
 
struct typeinit_type (enum type_code, int, int, const char *, struct objfile *)
 
struct typearch_type (struct gdbarch *, enum type_code, int, char *)
 
struct typearch_integer_type (struct gdbarch *, int, int, char *)
 
struct typearch_character_type (struct gdbarch *, int, int, char *)
 
struct typearch_boolean_type (struct gdbarch *, int, int, char *)
 
struct typearch_float_type (struct gdbarch *, int, char *, const struct floatformat **)
 
struct typearch_complex_type (struct gdbarch *, char *, struct type *)
 
struct typearch_composite_type (struct gdbarch *gdbarch, char *name, enum type_code code)
 
void append_composite_type_field (struct type *t, char *name, struct type *field)
 
void append_composite_type_field_aligned (struct type *t, char *name, struct type *field, int alignment)
 
struct fieldappend_composite_type_field_raw (struct type *t, char *name, struct type *field)
 
struct typearch_flags_type (struct gdbarch *gdbarch, char *name, int length)
 
void append_flags_type_flag (struct type *type, int bitpos, 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 *)
 
struct typemake_reference_type (struct type *, struct type **)
 
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 *, 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)
 
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 void *, struct type *, const struct value_print_options *, int, struct ui_file *)
 
int can_dereference (struct type *)
 
int is_integral_type (struct type *)
 
int is_scalar_type_recursive (struct type *)
 
int class_or_union_p (const struct type *)
 
void maintenance_print_type (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 *)
 

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 NS_POINTER_CONVERSION_BADNESS
 
const struct rank NS_INTEGER_POINTER_CONVERSION_BADNESS
 

Macro Definition Documentation

#define ALLOCATE_CPLUS_STRUCT_TYPE (   type)    allocate_cplus_struct_type (type)
#define ALLOCATE_GNAT_AUX_TYPE (   type)    allocate_gnat_aux_type (type)

Definition at line 1213 of file gdbtypes.h.

Referenced by set_descriptive_type().

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

Definition at line 76 of file gdbtypes.h.

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

Definition at line 75 of file gdbtypes.h.

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

Definition at line 77 of file gdbtypes.h.

Referenced by print_bit_vector().

#define B_TYPE   unsigned char
#define BASETYPE_VIA_PUBLIC (   thistype,
  index 
)    ((!TYPE_FIELD_PRIVATE(thistype, index)) && (!TYPE_FIELD_PROTECTED(thistype, index)))
#define BASETYPE_VIA_VIRTUAL (   thistype,
  index 
)
#define CHECK_TYPEDEF (   TYPE)
Value:
do { \
(TYPE) = check_typedef (TYPE); \
} while (0)
struct type * check_typedef(struct type *)
Definition: gdbtypes.c:2217

Definition at line 1817 of file gdbtypes.h.

Referenced by aarch64_return_in_memory(), ada_array_length(), ada_check_typedef(), add_struct_fields(), arm_return_in_memory(), c_print_type(), c_print_typedef(), c_type_print_base(), c_val_print(), call_function_by_hand_dummy(), can_dereference(), check_field(), check_types_equal(), classify_type(), collect_one_symbol(), convert_type(), cp_find_type_baseclass_by_name(), cp_lookup_nested_symbol(), cp_lookup_nested_symbol_1(), cp_print_static_field(), cp_print_value_fields(), create_array_type_with_stride(), d_val_print(), decode_constrained_packed_array_type(), distance_to_ancestor(), do_search_struct_field(), evaluate_subexp_for_sizeof(), evaluate_subexp_standard(), f_type_print_base(), f_val_print(), find_method_list(), find_methods(), find_parallel_type_by_descriptive_type(), gccgo_string_p(), gdbscm_value_dynamic_type(), gdbscm_value_to_bool(), gdbscm_value_to_bytevector(), gdbscm_value_to_integer(), gdbscm_value_to_real(), gen_struct_ref_recursive(), gen_trace_static_fields(), generic_val_print(), get_discrete_bounds(), get_out_value_type(), get_return_value(), get_signed_type_minmax(), get_unsigned_type_max(), get_vptr_fieldno(), gnuv2_value_rtti_type(), gnuv3_dynamic_class(), gnuv3_get_vtable(), gnuv3_pass_by_reference(), go_classify_struct_type(), go_print_type(), go_val_print(), internal_type_vptr_basetype(), internal_type_vptr_fieldno(), is_integral_type(), is_object_type(), is_scalar_type(), is_scalar_type_recursive(), is_unique_ancestor_worker(), java_print_value_fields(), java_type_print_base(), java_val_print(), lookup_struct_elt_type(), lookup_symbol_aux(), 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(), opencl_print_type(), pascal_object_print_static_field(), pascal_object_print_value_fields(), pascal_print_type(), pascal_print_typedef(), pascal_type_print_base(), pascal_val_print(), print_type_scalar(), return_command(), search_struct_method(), set_type_vptr_basetype(), set_type_vptr_fieldno(), tic6x_return_value(), type_name_no_tag_or_error(), typy_fields_items(), typy_get_composite(), unpack_bits_as_long(), unpack_double(), val_print_scalar_type_p(), valprint_check_validity(), valpy_binop(), valpy_float(), valpy_get_dynamic_type(), valpy_long(), value_assign(), value_cast(), value_primitive_field(), value_vector_widen(), vlscm_binop(), and yyparse().

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

Definition at line 1364 of file gdbtypes.h.

Referenced by check_types_equal(), dwarf2_add_field(), and gdbscm_field_artificial_p().

#define FIELD_BITPOS (   thisfld)    (FIELD_BITPOS_LVAL (thisfld) + 0)
#define FIELD_BITPOS_LVAL (   thisfld)    ((thisfld).loc.bitpos)

Definition at line 1342 of file gdbtypes.h.

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

Definition at line 1348 of file gdbtypes.h.

Referenced by call_site_to_target_addr(), and check_types_equal().

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

Definition at line 1345 of file gdbtypes.h.

Referenced by check_types_equal(), and gdbscm_field_enumval().

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

Definition at line 1344 of file gdbtypes.h.

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

Definition at line 1341 of file gdbtypes.h.

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

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

Definition at line 1347 of file gdbtypes.h.

Referenced by call_site_to_target_addr(), and check_types_equal().

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

Definition at line 1346 of file gdbtypes.h.

Referenced by call_site_to_target_addr(), and check_types_equal().

#define FIELD_TYPE (   thisfld)    ((thisfld).type)
#define HAVE_CPLUS_STRUCT (   type)
#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 1216 of file gdbtypes.h.

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

#define INIT_CPLUS_SPECIFIC (   type)
#define INIT_FUNC_SPECIFIC (   type)
Value:
TYPE_MAIN_TYPE (type)->type_specific.func_stuff \
#define TYPE_SPECIFIC_FIELD(thistype)
Definition: gdbtypes.h:1308
#define TYPE_MAIN_TYPE(thistype)
Definition: gdbtypes.h:1226
Definition: gdbtypes.h:749
struct func_type * func_stuff
Definition: gdbtypes.h:605
#define TYPE_ZALLOC(t, size)
Definition: gdbtypes.h:1636

Definition at line 1219 of file gdbtypes.h.

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

#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:2593
#define TYPE_SPECIFIC_FIELD(thistype)
Definition: gdbtypes.h:1308
Definition: gdbtypes.h:749

Definition at line 1210 of file gdbtypes.h.

Referenced by copy_type_recursive(), and set_die_type().

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

Definition at line 1852 of file gdbtypes.h.

Referenced by rank_function().

#define NULL_TYPE   ((struct type *) 0)
#define SET_FIELD_BITPOS (   thisfld,
  bitpos 
)
#define SET_FIELD_DWARF_BLOCK (   thisfld,
  addr 
)
Value:
FIELD_DWARF_BLOCK (thisfld) = (addr))
#define FIELD_LOC_KIND(thisfld)
Definition: gdbtypes.h:1341

Definition at line 1361 of file gdbtypes.h.

Referenced by read_call_site_scope().

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

Definition at line 1352 of file gdbtypes.h.

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

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

Definition at line 1358 of file gdbtypes.h.

Referenced by copy_type_recursive(), java_link_class_type(), and read_call_site_scope().

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

Definition at line 1355 of file gdbtypes.h.

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

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

Definition at line 1392 of file gdbtypes.h.

Referenced by attach_fields_to_type().

#define SET_TYPE_FIELD_PRIVATE (   thistype,
 
)    B_SET (TYPE_CPLUS_SPECIFIC(thistype)->private_field_bits, (n))
#define SET_TYPE_FIELD_PROTECTED (   thistype,
 
)    B_SET (TYPE_CPLUS_SPECIFIC(thistype)->protected_field_bits, (n))
#define SET_TYPE_FIELD_VIRTUAL (   thistype,
 
)    B_SET (TYPE_CPLUS_SPECIFIC(thistype)->virtual_field_bits, (n))

Definition at line 1394 of file gdbtypes.h.

Referenced by dwarf2_attach_fields_to_type(), and read_baseclasses().

#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_FLAG_ADDRESS_CLASS_n flags may be used in target specific ways to represent these different types of address classes.

Definition at line 397 of file gdbtypes.h.

Referenced by recursive_dump_type(), and spu_pointer_to_address().

#define TYPE_ADDRESS_CLASS_2 (   t)
Value:

Definition at line 399 of file gdbtypes.h.

Referenced by recursive_dump_type().

#define TYPE_ADDRESS_CLASS_ALL (   t)
Value:
#define TYPE_INSTANCE_FLAGS(thistype)
Definition: gdbtypes.h:1225
#define TYPE_INSTANCE_FLAG_ADDRESS_CLASS_ALL
Definition: gdbtypes.h:401

Definition at line 403 of file gdbtypes.h.

Referenced by replace_type().

#define TYPE_ALLOC (   t,
  size 
)
Value:
? obstack_alloc (&TYPE_OBJFILE (t) -> objfile_obstack, size) \
#define TYPE_OBJFILE_OWNED(t)
Definition: gdbtypes.h:324
#define TYPE_OBJFILE(t)
Definition: gdbtypes.h:326
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 1631 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(), java_link_class_type(), 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().

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

Definition at line 1284 of file gdbtypes.h.

Referenced by f77_get_lowerbound(), and get_array_bounds().

#define TYPE_ARRAY_LOWER_BOUND_VALUE (   arraytype)    (TYPE_LOW_BOUND(TYPE_INDEX_TYPE((arraytype))))
#define TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED (   arraytype)    TYPE_HIGH_BOUND_UNDEFINED(TYPE_INDEX_TYPE(arraytype))
#define TYPE_ARRAY_UPPER_BOUND_VALUE (   arraytype)    (TYPE_HIGH_BOUND(TYPE_INDEX_TYPE((arraytype))))
#define TYPE_ATOMIC (   t)    (TYPE_INSTANCE_FLAGS (t) & TYPE_INSTANCE_FLAG_ATOMIC)

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

Definition at line 362 of file gdbtypes.h.

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

#define TYPE_BASECLASS (   thistype,
  index 
)    TYPE_FIELD_TYPE(thistype, index)
#define TYPE_BASECLASS_BITPOS (   thistype,
  index 
)    TYPE_FIELD_BITPOS(thistype,index)
#define TYPE_BASECLASS_NAME (   thistype,
  index 
)    TYPE_FIELD_NAME(thistype, index)
#define TYPE_CALLING_CONVENTION (   thistype)    TYPE_MAIN_TYPE(thistype)->type_specific.func_stuff->calling_convention
#define TYPE_CHAIN (   thistype)    (thistype)->chain
#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 1240 of file gdbtypes.h.

Referenced by aarch64_extract_return_value(), 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_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_primitive_packed_val(), 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(), alphafbsd_return_in_memory(), 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_flag(), arch_type(), 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(), avr_return_value(), base_types_equal_p(), binop_promote(), binop_types_user_defined_p(), bpfinishpy_init(), c_describe_child(), c_get_string(), c_is_path_expr_parent(), c_number_of_children(), c_print_type(), c_print_typedef(), c_textual_element_type(), c_type_print_base(), c_type_print_modifier(), 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(), coerce_ref(), coerce_ref_if_computed(), coff_read_enum_type(), coff_read_struct_type(), collect_one_symbol(), collect_symbol(), compare_parameters(), compile_object_load(), compile_object_run(), complain_about_struct_wipeout(), completion_list_add_fields(), compute_vtable_size(), constrained_packed_array_type(), 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_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_val_print(), decode_base_type(), decode_constrained_packed_array(), decode_constrained_packed_array_type(), decode_packed_array_bitsize(), default_make_symbol_completion_list_break_on_1(), 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(), dwarf_require_integral(), dynamic_array_type(), dynamic_template_type(), empty_record(), entry_data_value_coerce_ref(), enum_constant_from_type(), equiv_types(), evaluate_struct_tuple(), evaluate_subexp_c(), evaluate_subexp_for_address(), evaluate_subexp_for_sizeof(), evaluate_subexp_java(), evaluate_subexp_modula2(), evaluate_subexp_opencl(), evaluate_subexp_standard(), evaluate_subexp_with_coercion(), extract_typed_address(), f77_create_arrayprint_offset_tbl(), 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(), find_function_addr(), find_overload_match(), find_size_for_pointer_math(), finish_command_continuation(), 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_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_binop_rest(), 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(), get_base_type(), 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_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_register_to_value(), i387_value_to_register(), ia64_push_dummy_call(), ia64_register_reggroup_p(), ia64_struct_type_p(), ia64_use_struct_convention(), indirect_pieced_value(), info_mach_region_command(), init_type(), 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_hfa(), is_integral_type(), is_intlike(), is_nonfunction(), is_object_type(), is_pascal_string_type(), is_scalar_type(), is_scalar_type_recursive(), is_thick_pntr(), isvoid_internal_fn(), java_class_from_object(), java_link_class_type(), java_print_value_fields(), java_type_from_name(), java_type_print_base(), java_val_print(), java_value_print(), language_bool_type(), lesseq_defined_than(), linespec_parse_variable(), list_args_or_locals(), lm32_extract_return_value(), lm32_push_dummy_call(), 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(), 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_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_params(), make_pointer_type(), make_reference_type(), make_symbol_overload_list_adl_namespace(), make_vector_type(), 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(), new_symbol_full(), nios2_push_dummy_call(), numeric_type_p(), opencl_logical_not(), opencl_print_type(), opencl_relop(), opencl_value_cast(), 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_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_floating(), print_formatted(), print_func_type(), print_optional_low_bound(), print_range(), print_range_bound(), print_range_type(), 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_decfloat(), 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(), 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_die_type(), set_internalvar(), 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_struct_return_from_sym(), sparc64_complex_floating_p(), sparc64_extract_return_value(), sparc64_floating_p(), sparc64_integral_or_pointer_p(), sparc64_store_return_value(), sparc64_structure_or_union_p(), sparc_complex_floating_p(), sparc_floating_p(), sparc_integral_or_pointer_p(), sparc_structure_or_union_p(), spu_return_value(), spu_scalar_value_p(), store_regs(), store_typed_address(), struct_return_convention(), symbols_are_identical_enums(), 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_from_class(), type_is_full_subrange_of_target_type(), typecmp(), types_equal(), typy_fields(), typy_get_code(), typy_get_composite(), typy_range(), typy_template_argument(), tyscm_get_composite(), ui_printf(), unop_user_defined_p(), unpack_double(), 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(), valprint_check_validity(), valpy_binop(), 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_decimal(), 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_from_double(), 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_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(), varobj_get_value_type(), 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().

#define TYPE_CODE_SPACE (   t)    (TYPE_INSTANCE_FLAGS (t) & TYPE_INSTANCE_FLAG_CODE_SPACE)

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_FLAG_INST 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_FLAG_DATA 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 384 of file gdbtypes.h.

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

#define TYPE_CONST (   t)    (TYPE_INSTANCE_FLAGS (t) & TYPE_INSTANCE_FLAG_CONST)
#define TYPE_CPLUS_DYNAMIC (   thistype)    TYPE_CPLUS_SPECIFIC (thistype)->is_dynamic

Definition at line 1332 of file gdbtypes.h.

Referenced by dwarf2_add_member_fn(), and gnuv3_dynamic_class().

#define TYPE_CPLUS_REALLY_JAVA (   thistype)    TYPE_CPLUS_SPECIFIC (thistype)->is_java

Definition at line 1333 of file gdbtypes.h.

Referenced by gnuv3_baseclass_offset(), gnuv3_rtti_type(), and process_structure_scope().

#define TYPE_CPLUS_SPECIFIC (   thistype)
Value:
(!HAVE_CPLUS_STRUCT(thistype) \
const struct cplus_struct_type cplus_struct_default
Definition: gdbtypes.c:2577
#define TYPE_RAW_CPLUS_SPECIFIC(thistype)
Definition: gdbtypes.h:1319
#define HAVE_CPLUS_STRUCT(type)
Definition: gdbtypes.h:1202

Definition at line 1315 of file gdbtypes.h.

Referenced by recursive_dump_type().

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

Definition at line 1264 of file gdbtypes.h.

Referenced by value_from_contents_and_address().

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

Definition at line 1262 of file gdbtypes.h.

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

Definition at line 1266 of file gdbtypes.h.

Referenced by is_dynamic_type_internal(), and value_from_contents_and_address().

#define TYPE_DATA_SPACE (   t)    (TYPE_INSTANCE_FLAGS (t) & TYPE_INSTANCE_FLAG_DATA_SPACE)

Definition at line 387 of file gdbtypes.h.

Referenced by recursive_dump_type().

#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 334 of file gdbtypes.h.

Referenced by c_type_print_base(), determine_prefix(), enum_constant_from_type(), rank_one_type(), read_enumeration_type(), read_structure_type(), and type_aggregate_p().

#define TYPE_DESCRIPTIVE_TYPE (   thistype)    TYPE_GNAT_SPECIFIC(thistype)->descriptive_type
#define TYPE_DYN_PROP_ADDR (   dynprop)    dynprop->data.const_val

Definition at line 1274 of file gdbtypes.h.

Referenced by resolve_dynamic_type_internal().

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

Definition at line 1272 of file gdbtypes.h.

#define TYPE_DYN_PROP_KIND (   dynprop)    dynprop->kind

Definition at line 1276 of file gdbtypes.h.

Referenced by resolve_dynamic_type_internal().

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

Definition at line 1270 of file gdbtypes.h.

Referenced by add_dyn_prop(), copy_type(), copy_type_recursive(), and get_dyn_prop().

#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 1472 of file gdbtypes.h.

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

#define TYPE_FIELD (   thistype,
 
)    TYPE_MAIN_TYPE(thistype)->flds_bnds.fields[n]
#define TYPE_FIELD_ARTIFICIAL (   thistype,
 
)    FIELD_ARTIFICIAL(TYPE_FIELD(thistype,n))
#define TYPE_FIELD_BITPOS (   thistype,
 
)    FIELD_BITPOS (TYPE_FIELD (thistype, n))
#define TYPE_FIELD_BITSIZE (   thistype,
 
)    FIELD_BITSIZE(TYPE_FIELD(thistype,n))
#define TYPE_FIELD_DWARF_BLOCK (   thistype,
 
)    FIELD_DWARF_BLOCK (TYPE_FIELD (thistype, n))

Definition at line 1375 of file gdbtypes.h.

#define TYPE_FIELD_ENUMVAL (   thistype,
 
)    FIELD_ENUMVAL (TYPE_FIELD (thistype, n))
#define TYPE_FIELD_IGNORE (   thistype,
 
)
Value:
(TYPE_CPLUS_SPECIFIC(thistype)->ignore_field_bits == NULL ? 0 \
#define B_TST(a, x)
Definition: gdbtypes.h:77
B_TYPE * ignore_field_bits
Definition: gdbtypes.h:998
#define TYPE_CPLUS_SPECIFIC(thistype)
Definition: gdbtypes.h:1315

Definition at line 1402 of file gdbtypes.h.

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

#define TYPE_FIELD_IGNORE_BITS (   thistype)    TYPE_CPLUS_SPECIFIC(thistype)->ignore_field_bits
#define TYPE_FIELD_LOC_KIND (   thistype,
 
)    FIELD_LOC_KIND (TYPE_FIELD (thistype, n))
#define TYPE_FIELD_NAME (   thistype,
 
)    FIELD_NAME(TYPE_FIELD(thistype, n))

Definition at line 1369 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_flag(), c_describe_child(), c_is_path_expr_parent(), c_type_print_base(), 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(), 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(), is_dynamic_field(), is_object_type(), is_pascal_string_type(), java_link_class_type(), java_print_value_fields(), java_type_print_base(), 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(), store_regs(), template_to_static_fixed_type(), to_record_with_fixed_variant_part(), typy_getitem(), typy_has_key(), val_print_type_code_flags(), value_struct_elt_for_reference(), and vb_match().

#define TYPE_FIELD_PACKED (   thistype,
 
)    (FIELD_BITSIZE(TYPE_FIELD(thistype,n))!=0)
#define TYPE_FIELD_PRIVATE (   thistype,
 
)
Value:
(TYPE_CPLUS_SPECIFIC(thistype)->private_field_bits == NULL ? 0 \
B_TYPE * private_field_bits
Definition: gdbtypes.h:985
#define B_TST(a, x)
Definition: gdbtypes.h:77
#define TYPE_CPLUS_SPECIFIC(thistype)
Definition: gdbtypes.h:1315

Definition at line 1396 of file gdbtypes.h.

Referenced by c_type_print_base(), cplus_class_num_children(), java_type_print_base(), match_accessibility(), and pascal_type_print_base().

#define TYPE_FIELD_PRIVATE_BITS (   thistype)    TYPE_CPLUS_SPECIFIC(thistype)->private_field_bits
#define TYPE_FIELD_PROTECTED (   thistype,
 
)
Value:
(TYPE_CPLUS_SPECIFIC(thistype)->protected_field_bits == NULL ? 0 \
#define B_TST(a, x)
Definition: gdbtypes.h:77
#define TYPE_CPLUS_SPECIFIC(thistype)
Definition: gdbtypes.h:1315
B_TYPE * protected_field_bits
Definition: gdbtypes.h:993

Definition at line 1399 of file gdbtypes.h.

Referenced by c_type_print_base(), cp_type_print_derivation_info(), cplus_class_num_children(), java_type_print_base(), match_accessibility(), and pascal_type_print_base().

#define TYPE_FIELD_PROTECTED_BITS (   thistype)    TYPE_CPLUS_SPECIFIC(thistype)->protected_field_bits
#define TYPE_FIELD_STATIC_PHYSADDR (   thistype,
 
)    FIELD_STATIC_PHYSADDR (TYPE_FIELD (thistype, n))

Definition at line 1374 of file gdbtypes.h.

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

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

Definition at line 1373 of file gdbtypes.h.

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

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

Definition at line 1368 of file gdbtypes.h.

Referenced by aarch64_extract_return_value(), 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_search_struct_field(), ada_template_to_fixed_record_type_1(), ada_value_primitive_field(), ada_varobj_struct_elt(), add_struct_fields(), amd64_classify_aggregate(), arm_return_in_memory(), arm_type_align(), arm_vfp_cprc_sub_candidate(), c_describe_child(), c_get_string(), c_type_print_args(), c_type_print_base(), c_val_print(), 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_struct_tuple(), evaluate_subexp_modula2(), evaluate_subexp_standard(), f_type_print_base(), f_val_print(), 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(), is_pascal_string_type(), is_scalar_type_recursive(), java_link_class_type(), java_print_value_fields(), java_type_print_base(), 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(), make_params(), 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(), 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(), 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(), 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().

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

Definition at line 1405 of file gdbtypes.h.

#define TYPE_FIELD_VIRTUAL_BITS (   thistype)    TYPE_CPLUS_SPECIFIC(thistype)->virtual_field_bits
#define TYPE_FIELDS (   thistype)    TYPE_MAIN_TYPE(thistype)->flds_bnds.fields
#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 299 of file gdbtypes.h.

Referenced by ada_array_bound_from_type(), ada_template_to_fixed_record_type_1(), constrained_packed_array_type(), init_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().

#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 340 of file gdbtypes.h.

Referenced by generic_val_print(), and update_enumeration_type_from_children().

#define TYPE_FLOATFORMAT (   thistype)    TYPE_MAIN_TYPE(thistype)->type_specific.floatformat
#define TYPE_FN_FIELD (   thisfn,
 
)    (thisfn)[n]

Definition at line 1422 of file gdbtypes.h.

#define TYPE_FN_FIELD_ABSTRACT (   thisfn,
 
)    ((thisfn)[n].is_abstract)

Definition at line 1436 of file gdbtypes.h.

Referenced by java_type_print_base().

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

Definition at line 1425 of file gdbtypes.h.

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

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

Definition at line 1426 of file gdbtypes.h.

Referenced by dump_fn_fieldlists().

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

Definition at line 1438 of file gdbtypes.h.

Referenced by c_type_print_base(), gnuv3_pass_by_reference(), and java_type_print_base().

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

Definition at line 1439 of file gdbtypes.h.

Referenced by dump_fn_fieldlists(), and gnuv2_virtual_fn_field().

#define TYPE_FN_FIELD_FINAL (   thisfn,
 
)    ((thisfn)[n].is_final)

Definition at line 1432 of file gdbtypes.h.

Referenced by java_type_print_base().

#define TYPE_FN_FIELD_NATIVE (   thisfn,
 
)    ((thisfn)[n].is_native)

Definition at line 1434 of file gdbtypes.h.

Referenced by java_type_print_base().

#define TYPE_FN_FIELD_PHYSNAME (   thisfn,
 
)    (thisfn)[n].physname
#define TYPE_FN_FIELD_PRIVATE (   thisfn,
 
)    ((thisfn)[n].is_private)
#define TYPE_FN_FIELD_PROTECTED (   thisfn,
 
)    ((thisfn)[n].is_protected)
#define TYPE_FN_FIELD_PUBLIC (   thisfn,
 
)    ((thisfn)[n].is_public)

Definition at line 1430 of file gdbtypes.h.

Referenced by java_type_print_base().

#define TYPE_FN_FIELD_STATIC (   thisfn,
 
)    ((thisfn)[n].is_static)

Definition at line 1431 of file gdbtypes.h.

Referenced by java_type_print_base().

#define TYPE_FN_FIELD_STATIC_P (   thisfn,
 
)    ((thisfn)[n].voffset == VOFFSET_STATIC)
#define TYPE_FN_FIELD_STUB (   thisfn,
 
)    ((thisfn)[n].is_stub)
#define TYPE_FN_FIELD_SYNCHRONIZED (   thisfn,
 
)    ((thisfn)[n].is_synchronized)

Definition at line 1433 of file gdbtypes.h.

Referenced by java_type_print_base().

#define TYPE_FN_FIELD_TYPE (   thisfn,
 
)    (thisfn)[n].type
#define TYPE_FN_FIELD_VIRTUAL_P (   thisfn,
 
)    ((thisfn)[n].voffset > 1)
#define TYPE_FN_FIELD_VOFFSET (   thisfn,
 
)    ((thisfn)[n].voffset-2)
#define TYPE_FN_FIELD_VOLATILE (   thisfn,
 
)    ((thisfn)[n].is_volatile)

Definition at line 1427 of file gdbtypes.h.

Referenced by dump_fn_fieldlists().

#define TYPE_FN_FIELDLIST (   thistype,
 
)    TYPE_CPLUS_SPECIFIC(thistype)->fn_fieldlists[n]
#define TYPE_FN_FIELDLIST1 (   thistype,
 
)    TYPE_CPLUS_SPECIFIC(thistype)->fn_fieldlists[n].fn_fields
#define TYPE_FN_FIELDLIST_LENGTH (   thistype,
 
)    TYPE_CPLUS_SPECIFIC(thistype)->fn_fieldlists[n].length
#define TYPE_FN_FIELDLIST_NAME (   thistype,
 
)    TYPE_CPLUS_SPECIFIC(thistype)->fn_fieldlists[n].name
#define TYPE_FN_FIELDLISTS (   thistype)    TYPE_CPLUS_SPECIFIC(thistype)->fn_fieldlists
#define TYPE_GNAT_SPECIFIC (   thistype)    TYPE_MAIN_TYPE(thistype)->type_specific.gnat_stuff

Definition at line 1321 of file gdbtypes.h.

Referenced by allocate_gnat_aux_type(), and recursive_dump_type().

#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 318 of file gdbtypes.h.

Referenced by ada_evaluate_subexp(), convert_one_symbol(), evaluate_subexp_standard(), find_function_addr(), find_pc_partial_function_gnu_ifunc(), gcc_symbol_address(), and init_type().

#define TYPE_HIGH_BOUND (   range_type)    TYPE_RANGE_DATA(range_type)->high.data.const_val
#define TYPE_HIGH_BOUND_KIND (   range_type)    TYPE_RANGE_DATA(range_type)->high.kind
#define TYPE_HIGH_BOUND_UNDEFINED (   range_type)    (TYPE_RANGE_DATA(range_type)->high.kind == PROP_UNDEFINED)

Definition at line 1252 of file gdbtypes.h.

Referenced by ada_tasks_inferior_data_sniffer(), and recursive_dump_type().

#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 277 of file gdbtypes.h.

Referenced by init_type(), and recursive_dump_type().

#define TYPE_INDEX_TYPE (   type)    TYPE_FIELD_TYPE (type, 0)
#define TYPE_INSTANCE_FLAG_ADDRESS_CLASS_ALL   (TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1 | TYPE_INSTANCE_FLAG_ADDRESS_CLASS_2)
#define TYPE_INSTANCE_FLAGS (   thistype)    (thistype)->instance_flags
#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:1307
#define TYPE_STUB_SUPPORTED(t)
Definition: gdbtypes.h:306
#define TYPE_CODE(thistype)
Definition: gdbtypes.h:1240
#define HAVE_CPLUS_STRUCT(type)
Definition: gdbtypes.h:1202
#define TYPE_NFIELDS(thistype)
Definition: gdbtypes.h:1241
#define TYPE_STUB(t)
Definition: gdbtypes.h:245

Definition at line 1455 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().

#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 1237 of file gdbtypes.h.

Referenced by aarch64_extract_return_value(), 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_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(), alphafbsd_return_in_memory(), 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(), arch_complex_type(), arch_type(), arm_extract_return_value(), arm_push_dummy_call(), arm_return_in_memory(), arm_return_value(), arm_store_return_value(), arm_type_align(), arm_vfp_cprc_sub_candidate(), avr_address_to_pointer(), avr_pointer_to_address(), avr_push_dummy_call(), avr_return_value(), base_types_equal_p(), bfin_extract_return_value(), bfin_push_dummy_call(), bfin_return_value(), bfin_store_return_value(), binop_promote(), build_gdb_vtable_type(), build_std_type_info_type(), c_get_string(), c_number_of_children(), c_textual_element_type(), c_val_print(), call_function_by_hand_dummy(), can_use_hardware_watchpoint(), cast_into_complex(), check_condition(), check_typedef(), check_types_equal(), coerce_for_assign(), coerce_unspec_val_to_type(), coff_read_enum_type(), coff_read_struct_type(), collect_symbol(), compile_object_load(), constrained_packed_array_type(), convert_enum(), convert_float(), convert_int(), convert_struct_or_union(), convert_typed_floating(), 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_read_exec_load_addr(), decimal_from_integral(), 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_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(), dwarf_expr_fetch_address(), dwarf_get_base_type(), 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_java(), evaluate_subexp_opencl(), evaluate_subexp_standard(), execute_stack_op(), f77_create_arrayprint_offset_tbl(), f77_get_dynamic_length_of_aggregate(), f_get_encoding(), f_printstr(), f_val_print(), fat_pntr_bounds_bitsize(), fat_pntr_data_bitsize(), find_function_addr(), find_size_for_pointer_math(), float_type_from_length(), floatformat_from_type(), frame_register_unwind(), frame_unwind_got_optimized(), frv_extract_return_value(), frv_push_dummy_call(), frv_store_return_value(), ft32_extract_return_value(), 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(), get_decimal_float_return_value(), get_discrete_bounds(), get_java_object_header_size(), get_java_utf8_name(), 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_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(), i387_register_to_value(), ia64_extract_return_value(), ia64_push_dummy_call(), ia64_store_return_value(), ia64_use_struct_convention(), indirect_pieced_value(), init_array_element(), 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(), is_pascal_string_type(), java_class_from_object(), java_link_class_type(), java_val_print(), java_value_print(), jit_read_code_entry(), jit_read_descriptor(), ld_so_xfer_auxv(), linux_get_siginfo_data(), linux_get_siginfo_type(), linux_make_mappings_callback(), linux_make_mappings_corefile_notes(), list_arg_or_local(), lm32_extract_return_value(), lm32_push_dummy_call(), 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_register_to_value(), 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(), make_params(), make_pointer_type(), make_qualified_type(), make_reference_type(), 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(), 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(), 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_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_decimal_floating(), print_floating(), print_formatted(), print_frame_args(), print_scalar_formatted(), print_symbol(), print_unpacked_pointer(), printf_decfloat(), printf_wide_c_string(), process_coff_symbol(), 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_frame_register_value(), read_known_tasks_array(), read_known_tasks_list(), read_memory_typed_address(), read_one_struct_field(), read_pieced_value(), 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(), regcache_cooked_read_value(), 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(), 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(), scope_info(), score_push_dummy_call(), score_return_value(), score_type_needs_double_align(), search_struct_method(), 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_complex_floating_p(), sparc_floating_p(), sparc_integral_or_pointer_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(), store_typed_floating(), tdesc_gdb_type(), 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_record_with_fixed_variant_part(), type_wider_than(), typy_get_sizeof(), ui_printf(), unop_promote(), unpack_bits_as_long(), unpack_double(), 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_array_elements(), val_print_packed_array_elements(), val_print_scalar_formatted(), val_print_string(), val_print_type_code_int(), valprint_check_validity(), valpy_nonzero(), valpy_string(), value_arg_coerce(), value_args_as_decimal(), value_array(), 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_decfloat(), value_from_register(), value_full_object(), value_literal_complex(), value_logical_not(), value_neg(), value_non_lval(), value_of_dwarf_reg_entry(), value_one(), value_pointer(), value_pos(), value_primitive_field(), value_ptrdiff(), value_repeat(), value_slice(), value_strcmp(), value_string(), value_subscripted_rvalue(), 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(), write_pieced_value(), 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().

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

Definition at line 1256 of file gdbtypes.h.

Referenced by convert_array().

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

Definition at line 1250 of file gdbtypes.h.

Referenced by ada_tasks_inferior_data_sniffer(), and recursive_dump_type().

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

Definition at line 1327 of file gdbtypes.h.

Referenced by add_struct_fields(), amd64_non_pod_p(), c_type_print_base(), 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_object_type(), is_unique_ancestor_worker(), java_link_class_type(), java_print_value_fields(), java_type_print_base(), java_type_print_derivation_info(), 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(), 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(), search_struct_method(), value_primitive_field(), value_struct_elt_bitpos(), and value_struct_elt_for_reference().

#define TYPE_N_TEMPLATE_ARGUMENTS (   thistype)    TYPE_CPLUS_SPECIFIC (thistype)->n_template_arguments
#define TYPE_NAME (   thistype)    TYPE_MAIN_TYPE(thistype)->name

Definition at line 1227 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(), c_print_typedef(), c_textual_element_type(), c_type_print_base(), c_type_print_varspec_prefix(), c_type_print_varspec_suffix(), c_value_print(), 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(), decode_base_type(), define_symbol(), empty_record(), evaluate_subexp_java(), evaluate_subexp_modula2(), evaluate_subexp_standard(), f_print_type(), f_type_print_base(), f_type_print_varspec_prefix(), f_type_print_varspec_suffix(), 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(), java_print_value_fields(), java_type_print_base(), java_val_print(), language_alloc_type_symbol(), language_lookup_primitive_type_1(), linux_get_siginfo_type(), lookup_template_type(), m2_long_set(), m2_print_typedef(), m2_type_name(), m2_typedef(), 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_base_type(), read_module_type(), read_namespace(), read_namespace_type(), read_structure_type(), read_subrange_type(), read_tilde_fields(), read_type(), read_typedef(), read_unspecified_type(), recursive_dump_type(), regcache_dump(), rs6000_builtin_type_vec128(), rs6000_builtin_type_vec64(), spu_builtin_type_vec128(), static_unwrap_type(), tdesc_gdb_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(), value_args_as_decimal(), value_cast(), value_cast_structs(), value_full_object(), vb_match(), windows_get_tlb_type(), and yyparse().

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

Definition at line 1241 of file gdbtypes.h.

Referenced by aarch64_extract_return_value(), 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_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(), alphafbsd_return_in_memory(), amd64_classify_aggregate(), append_composite_type_field_aligned(), append_composite_type_field_raw(), append_flags_type_flag(), arch_flags_type(), arm_return_in_memory(), arm_type_align(), arm_vfp_cprc_sub_candidate(), attach_fields_to_type(), 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(), 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_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_struct_tuple(), evaluate_subexp_standard(), f_type_print_base(), f_val_print(), 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(), 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(), is_object_type(), is_pascal_string_type(), is_scalar_type_recursive(), java_link_class_type(), java_print_value_fields(), java_type_print_base(), 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(), make_params(), 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(), 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(), 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_type_code_flags(), value_struct_elt_bitpos(), value_struct_elt_for_reference(), value_val_atr(), and variant_field_index().

#define TYPE_NFN_FIELDS (   thistype)    TYPE_CPLUS_SPECIFIC(thistype)->nfn_fields
#define TYPE_NO_RETURN (   thistype)    TYPE_MAIN_TYPE(thistype)->type_specific.func_stuff->is_noreturn
#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 239 of file gdbtypes.h.

Referenced by arch_integer_type(), check_types_equal(), dwarf2_compute_name(), init_type(), rank_one_type(), read_base_type(), and recursive_dump_type().

#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 311 of file gdbtypes.h.

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

#define TYPE_OBJFILE (   t)    (TYPE_OBJFILE_OWNED(t)? TYPE_OWNER(t).objfile : NULL)
#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 324 of file gdbtypes.h.

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

#define TYPE_OWNER (   t)    TYPE_MAIN_TYPE(t)->owner
#define TYPE_POINTER_TYPE (   thistype)    (thistype)->pointer_type

Definition at line 1230 of file gdbtypes.h.

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

#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 267 of file gdbtypes.h.

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

#define TYPE_RANGE_DATA (   thistype)    TYPE_MAIN_TYPE(thistype)->flds_bnds.bounds
#define TYPE_RAW_CPLUS_SPECIFIC (   thistype)    TYPE_MAIN_TYPE(thistype)->type_specific.cplus_stuff
#define TYPE_REFERENCE_TYPE (   thistype)    (thistype)->reference_type

Definition at line 1231 of file gdbtypes.h.

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

#define TYPE_RESTRICT (   t)    (TYPE_INSTANCE_FLAGS (t) & TYPE_INSTANCE_FLAG_RESTRICT)

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

Definition at line 356 of file gdbtypes.h.

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

#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 1466 of file gdbtypes.h.

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

#define TYPE_SELF_TYPE (   thistype)    internal_type_self_type (thistype)
#define TYPE_SPECIFIC_FIELD (   thistype)    TYPE_MAIN_TYPE(thistype)->type_specific_field
#define TYPE_STATIC (   t)    (TYPE_MAIN_TYPE (t)->flag_static)

Static type. If this is set, the corresponding type had a static modifier. Note: This may be unnecessary, since static data members are indicated by other means (bitpos == -1).

Definition at line 260 of file gdbtypes.h.

Referenced by init_type(), and recursive_dump_type().

#define TYPE_STUB (   t)    (TYPE_MAIN_TYPE (t)->flag_stub)
#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 306 of file gdbtypes.h.

Referenced by init_type(), read_structure_type(), and recursive_dump_type().

#define TYPE_TAG_NAME (   type)    TYPE_MAIN_TYPE(type)->tag_name
#define TYPE_TAIL_CALL_LIST (   thistype)    TYPE_MAIN_TYPE(thistype)->type_specific.func_stuff->tail_call_list
#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 253 of file gdbtypes.h.

Referenced by check_typedef(), create_array_type_with_stride(), create_range_type(), init_type(), linux_get_siginfo_type(), read_type(), recursive_dump_type(), and upgrade_type().

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

Definition at line 1229 of file gdbtypes.h.

Referenced by aarch64_extract_return_value(), 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_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(), arm_push_dummy_call(), arm_type_align(), arm_vfp_cprc_sub_candidate(), avr_address_to_pointer(), avr_gdbarch_init(), avr_pointer_to_address(), basic_type(), binop_types_user_defined_p(), bpfinishpy_init(), c_describe_child(), c_get_string(), c_textual_element_type(), c_type_print_base(), 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(), can_dereference(), cast_into_complex(), check_stub_method(), check_typedef(), check_types_equal(), classify_type(), coerce_for_assign(), coerce_ref(), compile_object_load(), 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(), 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(), evaluate_subexp_c(), evaluate_subexp_for_address(), evaluate_subexp_for_sizeof(), evaluate_subexp_java(), evaluate_subexp_modula2(), evaluate_subexp_opencl(), evaluate_subexp_standard(), evaluate_subexp_with_coercion(), f77_create_arrayprint_offset_tbl(), 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(), find_function_addr(), find_function_return_type(), find_size_for_pointer_math(), finish_command_continuation(), fixed_type_info(), frv_push_dummy_call(), gccgo_string_p(), gdbscm_type_target(), gdbscm_value_dynamic_type(), gen_deref(), gen_fetch(), gen_ptrdiff(), gen_scale(), gen_traced_pop(), gen_usual_unary(), generate_vla_size(), generic_val_print(), 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_pieced_value(), 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(), is_object_type(), is_pascal_string_type(), is_scalar_type_recursive(), java_class_from_object(), java_link_class_type(), java_type_print_base(), java_val_print(), java_value_print(), linux_get_siginfo_type(), lookup_opencl_vector_type(), lookup_struct_elt_type(), lookup_symbol_aux(), 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_types(), make_vector_type(), msp430_push_dummy_call(), 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_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_base_type(), read_enumeration_type(), read_fat_string_value(), read_range_type(), read_sun_floating_type(), 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_gdbarch_init(), rl78_pointer_to_address(), rs6000_builtin_type(), 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(), spu_return_value(), template_to_static_fixed_type(), tic6x_push_dummy_call(), to_fixed_array_type(), to_fixed_range_type(), to_fixed_variant_branch_type(), type_from_class(), 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(), 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(), watch_command_1(), whatis_exp(), windows_get_tlb_type(), xstormy16_address_to_pointer(), xstormy16_pointer_to_address(), and yyparse().

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

Definition at line 1417 of file gdbtypes.h.

Referenced by cp_lookup_symbol_imports_or_template(), and process_structure_scope().

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

Definition at line 1446 of file gdbtypes.h.

Referenced by process_structure_scope(), and recursively_update_typedef_hash().

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

Definition at line 1444 of file gdbtypes.h.

Referenced by process_structure_scope().

#define TYPE_TYPEDEF_FIELD_COUNT (   thistype)    TYPE_CPLUS_SPECIFIC (thistype)->typedef_field_count
#define TYPE_TYPEDEF_FIELD_NAME (   thistype,
 
)    TYPE_TYPEDEF_FIELD (thistype, n).name

Definition at line 1448 of file gdbtypes.h.

Referenced by c_type_print_base().

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

Definition at line 1450 of file gdbtypes.h.

Referenced by c_type_print_base().

#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_FLAG_NOSIGN (below) is set).

Definition at line 233 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(), avr_gdbarch_init(), 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(), decimal_from_integral(), define_symbol(), evaluate_subexp_opencl(), execute_stack_op(), gdbscm_value_to_integer(), gen_binop(), gen_bitfield_ref(), gen_conversion(), gen_extend(), gen_sign_extend(), generate_register_struct(), generic_val_print(), get_discrete_bounds(), get_signed_type_minmax(), get_unsigned_type_max(), has_negatives(), init_type(), lookup_opencl_vector_type(), m2_get_discrete_bounds(), make_pointer_type(), make_types(), 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(), recursive_dump_type(), rl78_gdbarch_init(), s390_handle_arg(), s390_register_return_value(), scalar_binop(), type_wider_than(), unpack_bits_as_long(), unpack_double(), unpack_long(), update_enumeration_type_from_children(), val_print_type_code_int(), value_assign(), vector_binop(), vector_relop(), vlscm_convert_typed_number(), and vlscm_integer_fits_p().

#define TYPE_VARARGS (   t)    (TYPE_MAIN_TYPE (t)->flag_varargs)
#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 287 of file gdbtypes.h.

Referenced by arm_neon_double_type(), arm_neon_quad_type(), c_print_type(), 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(), init_type(), lookup_opencl_vector_type(), 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(), tdesc_gdb_type(), 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().

#define TYPE_VOLATILE (   t)    (TYPE_INSTANCE_FLAGS (t) & TYPE_INSTANCE_FLAG_VOLATILE)
#define TYPE_VPTR_BASETYPE (   thistype)    internal_type_vptr_basetype (thistype)

Definition at line 1305 of file gdbtypes.h.

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

#define TYPE_VPTR_FIELDNO (   thistype)    internal_type_vptr_fieldno (thistype)
#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:324
#define TYPE_OBJFILE(t)
Definition: gdbtypes.h:326
void * xzalloc(size_t size)
Definition: common-utils.c:91
size_t size
Definition: go32-nat.c:242

Definition at line 1636 of file gdbtypes.h.

Referenced by arch_flags_type(), create_array_type_with_stride(), create_range_type(), create_set_type(), lookup_function_type_with_arguments(), make_params(), parse_type(), and read_subroutine_type().

#define VOFFSET_STATIC   1

Definition at line 895 of file gdbtypes.h.

Referenced by dwarf2_add_member_fn(), and read_member_functions().

Enumeration Type Documentation

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 1092 of file gdbtypes.h.

Enumerator
PROP_UNDEFINED 
PROP_CONST 
PROP_ADDR_OFFSET 
PROP_LOCEXPR 
PROP_LOCLIST 

Definition at line 406 of file gdbtypes.h.

Define a type's dynamic property node kind.

Enumerator
DYN_PROP_DATA_LOCATION 

Definition at line 438 of file gdbtypes.h.

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 461 of file gdbtypes.h.

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_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 85 of file gdbtypes.h.

Some constants representing each bit field in the main_type. See the bit-field-specific macros, below, for documentation of each constant in this enum. These enum values are only used with init_type. Note that the values are chosen not to conflict with type_instance_flag_value; this lets init_type error-check its input.

Enumerator
TYPE_FLAG_UNSIGNED 
TYPE_FLAG_NOSIGN 
TYPE_FLAG_STUB 
TYPE_FLAG_TARGET_STUB 
TYPE_FLAG_STATIC 
TYPE_FLAG_PROTOTYPED 
TYPE_FLAG_INCOMPLETE 
TYPE_FLAG_VARARGS 
TYPE_FLAG_VECTOR 
TYPE_FLAG_FIXED_INSTANCE 
TYPE_FLAG_STUB_SUPPORTED 
TYPE_FLAG_GNU_IFUNC 
TYPE_FLAG_MIN 

Used for error-checking.

Definition at line 194 of file gdbtypes.h.

Some bits for the type's instance_flags word. See the macros below for documentation on each bit. Note that if you add a value here, you must update the enum type_flag_value as well.

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 217 of file gdbtypes.h.

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 481 of file gdbtypes.h.

Function Documentation

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 2171 of file gdbtypes.c.

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

Referenced by set_die_type().

const char* address_space_int_to_name ( struct gdbarch ,
int   
)
int address_space_name_to_int ( struct gdbarch ,
char *   
)
struct type* alloc_type ( struct objfile )
struct type* alloc_type_arch ( struct gdbarch )
struct type* alloc_type_copy ( const struct type )
void allocate_cplus_struct_type ( struct type )
void allocate_gnat_aux_type ( struct type )
struct type* allocate_stub_method ( struct type )

Definition at line 808 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().

void append_composite_type_field ( struct type t,
char *  name,
struct type field 
)
void append_composite_type_field_aligned ( struct type t,
char *  name,
struct type field,
int  alignment 
)
struct field* append_composite_type_field_raw ( struct type t,
char *  name,
struct type field 
)
void append_flags_type_flag ( struct type type,
int  bitpos,
char *  name 
)
struct type* arch_boolean_type ( struct gdbarch ,
int  ,
int  ,
char *   
)
struct type* arch_character_type ( struct gdbarch ,
int  ,
int  ,
char *   
)
struct type* arch_complex_type ( struct gdbarch ,
char *  ,
struct type  
)
struct type* arch_composite_type ( struct gdbarch gdbarch,
char *  name,
enum type_code  code 
)
struct type* arch_flags_type ( struct gdbarch gdbarch,
char *  name,
int  length 
)
struct type* arch_float_type ( struct gdbarch ,
int  ,
char *  ,
const struct floatformat **   
)
struct type* arch_integer_type ( struct gdbarch ,
int  ,
int  ,
char *   
)
struct type* arch_type ( struct gdbarch ,
enum  type_code,
int  ,
char *   
)
const struct builtin_type* builtin_type ( struct gdbarch gdbarch)

Return the type table for the specified architecture.

Definition at line 4766 of file gdbtypes.c.

References gdbarch_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_tag_value_at_base_address(), 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(), 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(), cplus_language_arch_info(), cris_register_type(), crisv32_register_type(), darwin_current_sos(), darwin_load_image_infos(), darwin_read_exec_load_addr(), do_examine(), dtrace_process_dof_probe(), dwarf_get_base_type(), 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(), 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_push_dummy_call(), lm32_register_type(), lm_addr(), lm_info_read(), lookup_array_range_type(), lookup_child_selector(), lookup_objc_class(), m32r_register_type(), m68hc11_register_type(), m68k_register_type(), m88k_register_type(), mep_register_type(), mi_cmd_data_read_memory(), microblaze_register_type(), 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(), parse_c_float(), parse_go_float(), pascal_language_arch_info(), ppscm_print_string_repr(), print_scalar_formatted(), print_string_repr(), printf_decfloat(), proc_watchpoint_address(), procfs_can_use_hw_breakpoint(), 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(), rx_register_type(), s390_pseudo_register_type(), safe_parse_type(), scan_dyntag(), score_register_type(), set_next_address(), 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_register_type(), sparc64_register_type(), spu_builtin_type_vec128(), spu_register_type(), stap_get_expected_argument_type(), stap_modify_semaphore(), tdesc_gdb_type(), tdesc_register_type(), tic6x_register_type(), tilegx_register_type(), unknown_language_arch_info(), unop_promote(), v850_register_type(), 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().

int can_dereference ( struct type )

Definition at line 2678 of file gdbtypes.c.

References CHECK_TYPEDEF, TYPE_CODE, TYPE_CODE_PTR, TYPE_CODE_VOID, and TYPE_TARGET_TYPE.

Referenced by print_value_flags().

void check_stub_method_group ( struct type ,
int   
)
struct type* check_typedef ( struct type )

Definition at line 2217 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(), 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_extract_return_value(), aarch64_push_dummy_call(), aarch64_store_return_value(), aarch64_type_align(), ada_array_bound(), ada_array_bound_from_type(), ada_array_length(), 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(), 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(), avr_push_dummy_call(), bfin_push_dummy_call(), binop_promote(), binop_types_user_defined_p(), c_get_string(), c_textual_element_type(), c_type_print_base(), c_val_print(), c_value_of_variable(), c_value_print(), call_function_by_hand_dummy(), can_use_hardware_watchpoint(), check_condition(), check_parameter_typelist(), check_typedef(), classify_inner_name(), classify_type(), coerce_array(), coerce_ref(), coerce_ref_if_computed(), collect_symbol(), compile_object_load(), compute_vtable_size(), constrained_packed_array_type(), convert_char_literal(), cp_find_class_member(), cp_find_type_baseclass_by_name(), cp_lookup_bare_symbol(), cp_lookup_rtti_type(), cp_print_value(), create_range_type(), create_value(), decimal_from_integral(), default_read_var_value(), do_ppc_sysv_return_value(), do_search_struct_field(), dynamic_array_type(), encode_actions_1(), entry_data_value_coerce_ref(), evaluate_struct_tuple(), evaluate_subexp_c(), evaluate_subexp_for_address(), evaluate_subexp_for_sizeof(), evaluate_subexp_java(), evaluate_subexp_modula2(), evaluate_subexp_opencl(), evaluate_subexp_standard(), evaluate_subexp_with_coercion(), f77_get_dynamic_length_of_aggregate(), f_val_print(), find_function_addr(), find_method(), find_overload_match(), find_size_for_pointer_math(), fp_register_arg_p(), frv_push_dummy_call(), gdbpy_get_xmethod_result_type(), gdbpy_invoke_xmethod(), gdbscm_type_sizeof(), gdbscm_type_strip_typedefs(), gdbscm_value_call(), gdbscm_value_referenced_value(), gdbscm_value_subscript(), 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(), get_internalvar_integer(), get_regs_type(), get_symbol_field_type(), get_target_type(), get_type(), get_value_at(), get_vptr_fieldno(), gnuv2_baseclass_offset(), gnuv2_virtual_fn_field(), gnuv3_get_typeid(), gnuv3_method_ptr_to_value(), gnuv3_pass_by_reference(), gnuv3_print_vtable(), gnuv3_rtti_type(), gnuv3_virtual_fn_field(), 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(), inspect_type(), is_dynamic_type_internal(), is_float_or_hfa_type_recurse(), is_hfa(), is_object_type(), is_scalar_type_recursive(), is_unique_ancestor_worker(), java_print_value_fields(), java_val_print(), list_arg_or_local(), list_args_or_locals(), lm32_push_dummy_call(), lookup_function_type_with_arguments(), lval_func_check_synthetic_pointer(), lval_func_read(), lval_func_write(), m2_val_print(), m68k_svr4_return_value(), m88k_8_byte_align_p(), make_params(), 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(), nios2_push_dummy_call(), opencl_component_ref(), opencl_logical_not(), opencl_relop(), opencl_value_cast(), pack_long(), pack_unsigned_long(), pascal_object_print_value(), pascal_printstr(), 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_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(), rs6000_lynx178_push_dummy_call(), rs6000_push_dummy_call(), rx_push_dummy_call(), s390_effective_inner_type(), s390_handle_arg(), s390_push_dummy_call(), s390_return_value(), s390_value_from_register(), scalar_binop(), scope_info(), score_push_dummy_call(), search_struct_method(), set_internalvar(), 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(), spu_push_dummy_call(), spu_return_value(), store_regs(), tic6x_arg_type_alignment(), tic6x_push_dummy_call(), tlb_value_read(), type_from_class(), typecmp(), types_equal(), typy_get_sizeof(), typy_strip_typedefs(), typy_template_argument(), tyscm_get_composite(), unop_promote(), unop_user_defined_p(), unpack_long(), update_watchpoint(), v850_eight_byte_align_p(), val_print(), val_print_array_elements(), val_print_packed_array_elements(), valpy_call(), valpy_getitem(), valpy_nonzero(), valpy_referenced_value(), value_actual_type(), value_addr(), value_arg_coerce(), value_args_as_decimal(), 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_double(), 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_convert_bytevector(), watch_command_1(), xtensa_push_dummy_call(), and yyparse().

int class_or_union_p ( const struct type )

Definition at line 2767 of file gdbtypes.c.

References TYPE_CODE, TYPE_CODE_STRUCT, and TYPE_CODE_UNION.

Referenced by call_function_by_hand_dummy().

int class_types_same_p ( const struct type ,
const struct type  
)
int compare_badness ( struct badness_vector ,
struct badness_vector  
)

Definition at line 2965 of file gdbtypes.c.

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

Referenced by find_oload_champ(), and find_overload_match().

int compare_ranks ( struct rank  a,
struct rank  b 
)

Definition at line 2937 of file gdbtypes.c.

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

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

struct type* copy_type ( const struct type type)
struct type* copy_type_recursive ( struct objfile objfile,
struct type type,
htab_t  copied_types 
)
struct type* create_array_type ( struct type ,
struct type ,
struct type  
)
struct type* create_array_type_with_stride ( struct type ,
struct type ,
struct type ,
unsigned  int 
)
htab_t create_copied_types_hash ( struct objfile objfile)
struct type* create_range_type ( struct type ,
struct type ,
const struct dynamic_prop ,
const struct dynamic_prop  
)
struct type* create_set_type ( struct type ,
struct type  
)
struct type* create_static_range_type ( struct type ,
struct type ,
LONGEST  ,
LONGEST   
)
struct type* create_string_type ( struct type ,
struct type ,
struct type  
)

Definition at line 1152 of file gdbtypes.c.

References create_array_type(), TYPE_CODE, and TYPE_CODE_STRING.

Referenced by read_tag_string_type().

int discrete_position ( struct type type,
LONGEST  val,
LONGEST pos 
)
int field_is_static ( struct field )
char* gdb_mangle_name ( struct type ,
int  ,
int   
)
int get_array_bounds ( struct type type,
LONGEST low_bound,
LONGEST high_bound 
)
int get_discrete_bounds ( struct type ,
LONGEST ,
LONGEST  
)
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 2155 of file gdbtypes.c.

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

void get_signed_type_minmax ( struct type ,
LONGEST ,
LONGEST  
)
struct type* get_target_type ( struct type type)

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

Definition at line 243 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().

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 232 of file gdbtypes.c.

References get_objfile_arch(), TYPE_OBJFILE_OWNED, and TYPE_OWNER.

Referenced by ada_val_print_num(), ada_val_print_string(), ada_value_assign(), ada_value_binop(), ada_value_primitive_packed_val(), add_class_symbol(), c_emit_char(), c_get_string(), c_printchar(), c_printstr(), c_type_print_modifier(), c_val_print(), 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(), floatformat_from_type(), gdbpy_apply_val_pretty_printer(), gdbscm_apply_val_pretty_printer(), gdbscm_value_subscript(), generic_emit_char(), generic_printstr(), generic_val_print(), 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(), java_get_encoding(), java_val_print(), java_value_print(), lookup_array_range_type(), m2_val_print(), make_pointer_type(), make_reference_type(), modify_field(), pack_long(), pack_unsigned_long(), pascal_printstr(), pascal_val_print(), print_decimal_floating(), print_formatted(), print_go_string(), print_scalar_formatted(), print_unpacked_pointer(), print_variable_at_address(), printf_decfloat(), printf_wide_c_string(), printstr(), read_pieced_value(), scalar_binop(), smash_to_memberptr_type(), store_typed_address(), ui_printf(), unpack_bits_as_long(), unpack_double(), unpack_long(), unpack_value_bitfield(), update_watchpoint(), val_print_string(), val_print_type_code_int(), valpy_nonzero(), value_args_as_decimal(), value_as_address(), value_assign(), value_assign_to_component(), value_bit_index(), value_cast(), value_logical_not(), value_neg(), value_one(), value_pointer(), value_x_unop(), varobj_value_get_print_value(), and write_pieced_value().

void get_unsigned_type_max ( struct type ,
ULONGEST  
)
int get_vptr_fieldno ( struct type ,
struct type **   
)
struct type* init_type ( enum  type_code,
int  ,
int  ,
const char *  ,
struct objfile  
)
struct type* init_vector_type ( struct type elt_type,
int  n 
)
struct type* internal_type_self_type ( struct type )
struct type* internal_type_vptr_basetype ( struct type )
int internal_type_vptr_fieldno ( struct type )
int is_ancestor ( struct type ,
struct type  
)

Definition at line 2838 of file gdbtypes.c.

References distance_to_ancestor().

Referenced by value_dynamic_cast().

int is_dynamic_type ( struct type type)
int is_integral_type ( struct type )
int is_public_ancestor ( struct type ,
struct type  
)

Definition at line 2847 of file gdbtypes.c.

References distance_to_ancestor().

Referenced by value_dynamic_cast().

int is_scalar_type_recursive ( struct type )
int is_unique_ancestor ( struct type ,
struct value  
)
struct type* lookup_array_range_type ( struct type ,
LONGEST  ,
LONGEST   
)
struct type* lookup_function_type ( struct type )
struct type* lookup_function_type_with_arguments ( struct type ,
int  ,
struct type **   
)
struct type* lookup_memberptr_type ( struct type ,
struct type  
)
struct type* lookup_methodptr_type ( struct type )
struct type* lookup_pointer_type ( struct type )

Definition at line 368 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(), decode_type(), default_read_var_value(), define_symbol(), desc_bounds(), do_module_cleanup(), evaluate_subexp_for_address(), evaluate_subexp_java(), evaluate_subexp_standard(), evaluate_subexp_with_coercion(), 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(), java_link_class_type(), java_value_print(), linux_get_siginfo_type(), read_tag_pointer_type(), sparc32_store_arguments(), sparc64_store_arguments(), stap_parse_register_operand(), thin_data_pntr(), type_from_class(), 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().

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

Definition at line 1433 of file gdbtypes.c.

References lookup_typename().

Referenced by binop_promote(), and yyparse().

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

Definition at line 1164 of file gdbtypes.c.

References lookup_array_range_type(), TYPE_CODE, and TYPE_CODE_STRING.

Referenced by value_string().

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

Definition at line 1519 of file gdbtypes.c.

References _, error(), lookup_symbol(), SYMBOL_TYPE, TYPE_CODE, TYPE_CODE_STRUCT, TYPE_NAME, and VAR_DOMAIN.

Referenced by yyparse().

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

Definition at line 1422 of file gdbtypes.c.

References lookup_typename().

Referenced by binop_promote(), and yyparse().

void maintenance_print_type ( char *  ,
int   
)
struct type* make_atomic_type ( struct type )

Definition at line 720 of file gdbtypes.c.

References make_qualified_type(), TYPE_INSTANCE_FLAG_ATOMIC, and TYPE_INSTANCE_FLAGS.

Referenced by read_tag_atomic_type().

struct type* make_cv_type ( int  ,
int  ,
struct type ,
struct type **   
)
struct type* make_function_type ( struct type ,
struct type **   
)
struct type* make_pointer_type ( struct type ,
struct type **   
)
struct type* make_reference_type ( struct type ,
struct type **   
)
struct type* make_restrict_type ( struct type )
struct type* make_type_with_address_space ( struct type type,
int  space_identifier 
)
struct type* make_unqualified_type ( struct type )
void make_vector_type ( struct type array_type)
const struct objfile_type* objfile_type ( struct objfile objfile)

Return the type table for the specified objfile.

Definition at line 4909 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(), HOST_CHAR_BIT, 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::objfile_obstack, objfile_type(), OBSTACK_CALLOC, TARGET_CHAR_BIT, TYPE_CODE_ERROR, TYPE_CODE_FLT, TYPE_CODE_FUNC, TYPE_CODE_INT, TYPE_CODE_PTR, TYPE_CODE_VOID, TYPE_FLAG_GNU_IFUNC, TYPE_FLAG_NOSIGN, TYPE_FLAG_UNSIGNED, TYPE_FLOATFORMAT, and TYPE_TARGET_TYPE.

Referenced by basic_type(), convert_symbol_bmsym(), dbx_lookup_type(), decode_base_type(), decode_type(), define_symbol(), die_type(), error_type(), 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().

void print_scalar_formatted ( const void *  ,
struct type ,
const struct value_print_options ,
int  ,
struct ui_file  
)
struct badness_vector* rank_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   
)

Definition at line 3953 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_STATIC, 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().

void replace_type ( struct type ,
struct 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 2143 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(), default_read_var_value(), and value_from_contents_and_address().

void set_type_self_type ( struct type ,
struct type  
)
void set_type_vptr_basetype ( struct type ,
struct type  
)
void set_type_vptr_fieldno ( struct type ,
int   
)
void smash_to_memberptr_type ( struct type ,
struct 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_methodptr_type ( struct type ,
struct type  
)
struct rank sum_ranks ( struct rank  a,
struct rank  b 
)

Definition at line 2923 of file gdbtypes.c.

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

Referenced by rank_one_type().

const char* type_name_no_tag ( const struct type )
const char* type_name_no_tag_or_error ( struct type type)
int types_deeply_equal ( struct type ,
struct type  
)
int types_equal ( struct type ,
struct type  
)

Variable Documentation

const struct rank BASE_CONVERSION_BADNESS

Badness of converting derived to base class.

Definition at line 59 of file gdbtypes.c.

const struct rank BASE_PTR_CONVERSION_BADNESS

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

Definition at line 53 of file gdbtypes.c.

const struct rank BOOL_CONVERSION_BADNESS

Badness of conversion to boolean.

Definition at line 58 of file gdbtypes.c.

Referenced by rank_one_type().

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 2577 of file gdbtypes.c.

const struct rank EXACT_MATCH_BADNESS

Badness of an exact match.

Definition at line 49 of file gdbtypes.c.

Referenced by compare_parameters(), and rank_one_type().

const struct rank FLOAT_CONVERSION_BADNESS

Badness of floating conversion.

Definition at line 55 of file gdbtypes.c.

Referenced by rank_one_type().

const struct rank FLOAT_PROMOTION_BADNESS

Badness of floating promotion.

Definition at line 52 of file gdbtypes.c.

Referenced by rank_one_type().

const struct floatformat* floatformats_arm_ext[BFD_ENDIAN_UNKNOWN]

Definition at line 90 of file gdbtypes.c.

Referenced by arm_ext_type(), and tdesc_gdb_type().

const struct floatformat* floatformats_i387_ext[BFD_ENDIAN_UNKNOWN]

Definition at line 82 of file gdbtypes.c.

Referenced by i386_gdbarch_init(), ia64_gdbarch_init(), and tdesc_gdb_type().

const struct floatformat* floatformats_ia64_quad[BFD_ENDIAN_UNKNOWN]
const struct floatformat* floatformats_ia64_spill[BFD_ENDIAN_UNKNOWN]

Definition at line 94 of file gdbtypes.c.

const struct floatformat* floatformats_ibm_long_double[BFD_ENDIAN_UNKNOWN]
const struct floatformat* floatformats_ieee_double[BFD_ENDIAN_UNKNOWN]
const struct floatformat* floatformats_ieee_double_littlebyte_bigword[BFD_ENDIAN_UNKNOWN]

Definition at line 78 of file gdbtypes.c.

Referenced by arm_gdbarch_init().

const struct floatformat* floatformats_ieee_half[BFD_ENDIAN_UNKNOWN]

Definition at line 66 of file gdbtypes.c.

Referenced by build_opencl_types(), and verify_gdbarch().

const struct floatformat* floatformats_ieee_single[BFD_ENDIAN_UNKNOWN]
const struct floatformat* floatformats_m68881_ext[BFD_ENDIAN_UNKNOWN]

Definition at line 86 of file gdbtypes.c.

Referenced by m68881_ext_type(), and m68k_gdbarch_init().

const struct floatformat* floatformats_vax_d[BFD_ENDIAN_UNKNOWN]

Definition at line 106 of file gdbtypes.c.

Referenced by vax_gdbarch_init().

const struct floatformat* floatformats_vax_f[BFD_ENDIAN_UNKNOWN]

Definition at line 102 of file gdbtypes.c.

Referenced by vax_gdbarch_init().

const struct gnat_aux_type gnat_aux_default

Definition at line 2593 of file gdbtypes.c.

const struct rank INCOMPATIBLE_TYPE_BADNESS

Badness if no conversion among types.

Definition at line 47 of file gdbtypes.c.

Referenced by classify_oload_match(), and rank_one_type().

const struct rank INT_FLOAT_CONVERSION_BADNESS

Badness of integer<->floating conversions.

Definition at line 56 of file gdbtypes.c.

Referenced by rank_one_type().

const struct rank INTEGER_CONVERSION_BADNESS

Badness of integral conversion.

Definition at line 54 of file gdbtypes.c.

Referenced by rank_one_type().

const struct rank INTEGER_PROMOTION_BADNESS

Badness of integral promotion.

Definition at line 51 of file gdbtypes.c.

Referenced by rank_one_type().

const struct rank LENGTH_MISMATCH_BADNESS

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

Definition at line 44 of file gdbtypes.c.

const struct rank NS_INTEGER_POINTER_CONVERSION_BADNESS

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

Definition at line 63 of file gdbtypes.c.

Referenced by rank_one_type().

const struct rank NS_POINTER_CONVERSION_BADNESS

Converting a pointer to an int is usually OK.

Definition at line 62 of file gdbtypes.c.

Referenced by classify_oload_match(), and rank_one_type().

const struct rank NULL_POINTER_CONVERSION

Badness of converting integer 0 to NULL pointer.

const struct rank REFERENCE_CONVERSION_BADNESS

Badness of converting from non-reference to reference.

Definition at line 60 of file gdbtypes.c.

const struct rank TOO_FEW_PARAMS_BADNESS

Dummy badness value for nonexistent parameter positions.

Definition at line 46 of file gdbtypes.c.

const struct rank VOID_PTR_CONVERSION_BADNESS

Badness of conversion of pointer to void pointer.

Definition at line 57 of file gdbtypes.c.

Referenced by rank_one_type().