X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fctfread.c;h=57a376329385eb6763c4288ea14b4b3dc96db929;hb=refs%2Fheads%2Fconcurrent-displaced-stepping-2020-04-01;hp=31f927e3bc9fe86bf5f358b4f0eb1136f717bba8;hpb=5e33d5f4e1a5f2c3556ee31715ddc030d039b597;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/ctfread.c b/gdb/ctfread.c index 31f927e3bc..57a3763293 100644 --- a/gdb/ctfread.c +++ b/gdb/ctfread.c @@ -309,14 +309,14 @@ attach_fields_to_type (struct ctf_field_info *fip, struct type *type) /* Record the field count, allocate space for the array of fields. */ type->set_num_fields (nfields); - TYPE_FIELDS (type) - = (struct field *) TYPE_ZALLOC (type, sizeof (struct field) * nfields); + type->set_fields + ((struct field *) TYPE_ZALLOC (type, sizeof (struct field) * nfields)); /* Copy the saved-up fields into the field vector. */ for (int i = 0; i < nfields; ++i) { struct ctf_nextfield &field = fip->fields[i]; - TYPE_FIELD (type, i) = field.field; + type->field (i) = field.field; } } @@ -1143,8 +1143,8 @@ add_stt_func (struct ctf_context *ccp, unsigned long idx) /* If argc is 0, it has a "void" type. */ if (argc != 0) - TYPE_FIELDS (ftype) - = (struct field *) TYPE_ZALLOC (ftype, argc * sizeof (struct field)); + ftype->set_fields + ((struct field *) TYPE_ZALLOC (ftype, argc * sizeof (struct field))); /* TYPE_FIELD_TYPE must never be NULL. Fill it with void_type, if failed to find the argument type. */