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/p-typeprint.c | |
parent | 077a1f08485e88f3b234af1dbb8b907b16045e6a (diff) | |
download | binutils-gdb-c819a3380fc1b110b88bc6ab5ef9323dbe7d4753.tar.gz |
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/p-typeprint.c')
-rw-r--r-- | gdb/p-typeprint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/p-typeprint.c b/gdb/p-typeprint.c index 7458aa6c095..563f619425b 100644 --- a/gdb/p-typeprint.c +++ b/gdb/p-typeprint.c @@ -516,12 +516,12 @@ pascal_language::type_print_base (struct type *type, struct ui_file *stream, int } print_spaces (level + 4, stream); - if (field_is_static (&type->field (i))) + if (type->field (i).is_static ()) gdb_printf (stream, "static "); print_type (type->field (i).type (), type->field (i).name (), stream, show - 1, level + 4, flags); - if (!field_is_static (&type->field (i)) + if (!type->field (i).is_static () && TYPE_FIELD_PACKED (type, i)) { /* It is a bitfield. This code does not attempt |