diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2021-08-30 11:49:49 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2021-09-30 22:05:57 -0400 |
commit | 33d16dd987d16fe1eb289853e5a444192bb31d9e (patch) | |
tree | 06c5ec20fad9309ab4dace3b6c659fa518d272af /gdb/ada-valprint.c | |
parent | d3fd12dfc52cf4cbb910830e3ff60dca111f7468 (diff) | |
download | gdb-33d16dd987d16fe1eb289853e5a444192bb31d9e.zip gdb-33d16dd987d16fe1eb289853e5a444192bb31d9e.tar.gz gdb-33d16dd987d16fe1eb289853e5a444192bb31d9e.tar.bz2 |
gdb: remove TYPE_FIELD_NAME and FIELD_NAME macros
Remove the `TYPE_FIELD_NAME` and `FIELD_NAME` macros, changing all the
call sites to use field::name directly.
Change-Id: I6900ae4e1ffab1396e24fb3298e94bf123826ca6
Diffstat (limited to 'gdb/ada-valprint.c')
-rw-r--r-- | gdb/ada-valprint.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/ada-valprint.c b/gdb/ada-valprint.c index d516a4d..979487f 100644 --- a/gdb/ada-valprint.c +++ b/gdb/ada-valprint.c @@ -388,7 +388,7 @@ ada_print_scalar (struct type *type, LONGEST val, struct ui_file *stream) } if (i < len) { - fputs_styled (ada_enum_name (TYPE_FIELD_NAME (type, i)), + fputs_styled (ada_enum_name (type->field (i).name ()), variable_name_style.style (), stream); } else @@ -619,8 +619,8 @@ print_field_values (struct value *value, struct value *outer_value, annotate_field_begin (type->field (i).type ()); fprintf_filtered (stream, "%.*s", - ada_name_prefix_len (TYPE_FIELD_NAME (type, i)), - TYPE_FIELD_NAME (type, i)); + ada_name_prefix_len (type->field (i).name ()), + type->field (i).name ()); annotate_field_name_end (); fputs_filtered (" => ", stream); annotate_field_value (); @@ -841,7 +841,7 @@ ada_val_print_enum (struct value *value, struct ui_file *stream, int recurse, if (i < len) { - const char *name = ada_enum_name (TYPE_FIELD_NAME (type, i)); + const char *name = ada_enum_name (type->field (i).name ()); if (name[0] == '\'') fprintf_filtered (stream, "%ld %ps", (long) val, |