mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 12:03:41 +08:00
* x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
This commit is contained in:
parent
af23364752
commit
562c50c218
@ -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.
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user