diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2023-08-31 11:46:27 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2023-08-31 13:16:14 -0400 |
commit | 3757d2d44f63b446469723e0a7a8c0dc2f695a6c (patch) | |
tree | d649580e7a3b2b92ab132bd623443695bcfc0bc0 /gdb/amd64-tdep.c | |
parent | 3be8c91910114853a64ab87fd1efaef220bb0205 (diff) | |
download | gdb-3757d2d44f63b446469723e0a7a8c0dc2f695a6c.zip gdb-3757d2d44f63b446469723e0a7a8c0dc2f695a6c.tar.gz gdb-3757d2d44f63b446469723e0a7a8c0dc2f695a6c.tar.bz2 |
gdb: remove TYPE_FIELD_BITSIZE
Replace with type::field + field::bitsize.
Change-Id: I2a24755a33683e4a2775a6d2a7b7a9ae7362e43a
Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/amd64-tdep.c')
-rw-r--r-- | gdb/amd64-tdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c index 2c41892..affb775 100644 --- a/gdb/amd64-tdep.c +++ b/gdb/amd64-tdep.c @@ -558,7 +558,7 @@ amd64_has_unaligned_fields (struct type *type) empty structures), and bitfields (these are handled by the caller). */ if (type->field (i).is_static () - || (TYPE_FIELD_BITSIZE (type, i) == 0 + || (type->field (i).bitsize () == 0 && subtype->length () == 0) || TYPE_FIELD_PACKED (type, i)) continue; @@ -594,7 +594,7 @@ amd64_classify_aggregate_field (struct type *type, int i, { struct type *subtype = check_typedef (type->field (i).type ()); enum amd64_reg_class subclass[2]; - int bitsize = TYPE_FIELD_BITSIZE (type, i); + int bitsize = type->field (i).bitsize (); if (bitsize == 0) bitsize = subtype->length () * 8; |