* gdbtypes.h (struct main_type): Move artificial flag out of
loc. New member of ``struct field'' named static_kind. Reduce overloaded meaning of bitsize. (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR) (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise. (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros. * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for new fields. (template_to_fixed_record_type, template_to_static_fixed_type) (to_record_with_fixed_variant_part): Likewise. * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise. * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise. * dwarfread.c (struct_type, enum_type): Likewise. * hpread.c (hpread_read_enum_type) (hpread_read_function_type, hpread_read_doc_function_type) (hpread_read_struct_type): Likewise. * mdebugread.c (parse_symbol): Likewise.
This commit is contained in:
parent
299aba957e
commit
01ad7f3617
8 changed files with 64 additions and 15 deletions
|
@ -1027,6 +1027,7 @@ struct_type (struct dieinfo *dip, char *thisdie, char *enddie,
|
|||
&objfile->type_obstack);
|
||||
FIELD_TYPE (list->field) = decode_die_type (&mbr);
|
||||
FIELD_BITPOS (list->field) = 8 * locval (&mbr);
|
||||
FIELD_STATIC_KIND (list->field) = 0;
|
||||
/* Handle bit fields. */
|
||||
FIELD_BITSIZE (list->field) = mbr.at_bit_size;
|
||||
if (BITS_BIG_ENDIAN)
|
||||
|
@ -1694,6 +1695,7 @@ enum_type (struct dieinfo *dip, struct objfile *objfile)
|
|||
list = new;
|
||||
FIELD_TYPE (list->field) = NULL;
|
||||
FIELD_BITSIZE (list->field) = 0;
|
||||
FIELD_STATIC_KIND (list->field) = 0;
|
||||
FIELD_BITPOS (list->field) =
|
||||
target_to_host (scan, TARGET_FT_LONG_SIZE (objfile), GET_SIGNED,
|
||||
objfile);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue