From 562c50c21805565c3fc31631a05fc72ee6a328d2 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Sat, 10 Jan 2004 13:21:06 +0000 Subject: [PATCH] * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields. --- gdb/ChangeLog | 2 ++ gdb/x86-64-tdep.c | 4 ++++ 2 files changed, 6 insertions(+) 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 + * 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); -- 2.7.4