diff options
author | Mark Kettenis <kettenis@gnu.org> | 2004-01-10 13:21:06 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2004-01-10 13:21:06 +0000 |
commit | 562c50c21805565c3fc31631a05fc72ee6a328d2 (patch) | |
tree | 1a6bfffab78764ab87ca8167e9404f2937538259 /gdb/x86-64-tdep.c | |
parent | af2336475251b043c1dea6cdc557ee01dde2948b (diff) | |
download | gdb-562c50c21805565c3fc31631a05fc72ee6a328d2.zip gdb-562c50c21805565c3fc31631a05fc72ee6a328d2.tar.gz gdb-562c50c21805565c3fc31631a05fc72ee6a328d2.tar.bz2 |
* x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
Diffstat (limited to 'gdb/x86-64-tdep.c')
-rw-r--r-- | gdb/x86-64-tdep.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/x86-64-tdep.c b/gdb/x86-64-tdep.c index b96193f..c3bb166 100644 --- a/gdb/x86-64-tdep.c +++ b/gdb/x86-64-tdep.c @@ -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); |