* x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.

This commit is contained in:
Mark Kettenis 2004-01-10 13:21:06 +00:00
parent af23364752
commit 562c50c218
2 changed files with 6 additions and 0 deletions

View File

@ -1,5 +1,7 @@
2004-01-10 Mark Kettenis <kettenis@gnu.org>
* x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
* x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
register numbers in comments.
* x86-64-tdep.h: Update copyright year.

View File

@ -318,6 +318,10 @@ amd64_classify_aggregate (struct type *type, enum amd64_reg_class class[2])
int pos = TYPE_FIELD_BITPOS (type, i) / 64;
enum amd64_reg_class subclass[2];
/* Ignore static fields. */
if (TYPE_FIELD_STATIC (type, i))
continue;
gdb_assert (pos == 0 || pos == 1);
amd64_classify (subtype, subclass);