aboutsummaryrefslogtreecommitdiff
path: root/gdb
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
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')
-rw-r--r--gdb/ChangeLog2
-rw-r--r--gdb/x86-64-tdep.c4
2 files changed, 6 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index cba018f..f9d48bd 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
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);