X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Famd64-tdep.c;h=f96a9868259ef521d4041b81d2312bdb097f6beb;hb=ceacbf6edf2c72aaa16280205a9bfc8513e9ed27;hp=24f0614b235b55110d1616179d22f0779cb877e4;hpb=26f16254544873f4d7450f6fbbc8f34bf3d2e359;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c index 24f0614b23..f96a986825 100644 --- a/gdb/amd64-tdep.c +++ b/gdb/amd64-tdep.c @@ -558,7 +558,7 @@ amd64_has_unaligned_fields (struct type *type) /* Ignore static fields, empty fields (for example nested empty structures), and bitfields (these are handled by the caller). */ - if (field_is_static (&TYPE_FIELD (type, i)) + if (field_is_static (&type->field (i)) || (TYPE_FIELD_BITSIZE (type, i) == 0 && TYPE_LENGTH (subtype) == 0) || TYPE_FIELD_PACKED (type, i)) @@ -600,7 +600,7 @@ amd64_classify_aggregate_field (struct type *type, int i, /* Ignore static fields, or empty fields, for example nested empty structures.*/ - if (field_is_static (&TYPE_FIELD (type, i)) || bitsize == 0) + if (field_is_static (&type->field (i)) || bitsize == 0) return; if (subtype->code () == TYPE_CODE_STRUCT