aboutsummaryrefslogtreecommitdiff
path: root/gdb/x86-64-tdep.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2004-01-10 13:21:06 +0000
committerMark Kettenis <kettenis@gnu.org>2004-01-10 13:21:06 +0000
commit562c50c21805565c3fc31631a05fc72ee6a328d2 (patch)
tree1a6bfffab78764ab87ca8167e9404f2937538259 /gdb/x86-64-tdep.c
parentaf2336475251b043c1dea6cdc557ee01dde2948b (diff)
downloadgdb-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.c4
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);