diff options
author | Tom Tromey <tom@tromey.com> | 2023-04-22 12:41:43 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-05-01 09:20:37 -0600 |
commit | c819a3380fc1b110b88bc6ab5ef9323dbe7d4753 (patch) | |
tree | 05450117dff9b07e36d3ddb7bddf2fd88651c543 /gdb/amd64-tdep.c | |
parent | 077a1f08485e88f3b234af1dbb8b907b16045e6a (diff) | |
download | gdb-c819a3380fc1b110b88bc6ab5ef9323dbe7d4753.zip gdb-c819a3380fc1b110b88bc6ab5ef9323dbe7d4753.tar.gz gdb-c819a3380fc1b110b88bc6ab5ef9323dbe7d4753.tar.bz2 |
Replace field_is_static with a method
This changes field_is_static to be a method on struct field, and
updates all the callers. Most of this patch was written by script.
Regression tested on x86-64 Fedora 36.
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 8d34525..d37497a 100644 --- a/gdb/amd64-tdep.c +++ b/gdb/amd64-tdep.c @@ -557,7 +557,7 @@ amd64_has_unaligned_fields (struct type *type) /* Ignore static fields, empty fields (for example nested empty structures), and bitfields (these are handled by the caller). */ - if (field_is_static (&type->field (i)) + if (type->field (i).is_static () || (TYPE_FIELD_BITSIZE (type, i) == 0 && subtype->length () == 0) || TYPE_FIELD_PACKED (type, i)) @@ -601,7 +601,7 @@ amd64_classify_aggregate_field (struct type *type, int i, /* Ignore static fields, or empty fields, for example nested empty structures.*/ - if (field_is_static (&type->field (i)) || bitsize == 0) + if (type->field (i).is_static () || bitsize == 0) return; int bitpos = bitoffset + type->field (i).loc_bitpos (); |