diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2021-09-26 16:38:02 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2021-10-29 16:44:45 -0400 |
commit | 970db5186051c051d9c5bd1f7ed404902b96fa80 (patch) | |
tree | ec3f149b291e22c532b6b61367fd9b2abcdff0e4 /gdb/p-typeprint.c | |
parent | b610c04548a39dbce6d51c33d7a8125e59066939 (diff) | |
download | gdb-970db5186051c051d9c5bd1f7ed404902b96fa80.zip gdb-970db5186051c051d9c5bd1f7ed404902b96fa80.tar.gz gdb-970db5186051c051d9c5bd1f7ed404902b96fa80.tar.bz2 |
gdb: remove TYPE_FIELD_ENUMVAL
Remove TYPE_FIELD_ENUMVAL, replace with type::field +
field::loc_enumval.
Change-Id: I2ada73e4635aad3363ce2eb22c1dc52698ee2072
Diffstat (limited to 'gdb/p-typeprint.c')
-rw-r--r-- | gdb/p-typeprint.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/p-typeprint.c b/gdb/p-typeprint.c index 48bfba8..b2d167f 100644 --- a/gdb/p-typeprint.c +++ b/gdb/p-typeprint.c @@ -711,12 +711,12 @@ pascal_language::type_print_base (struct type *type, struct ui_file *stream, int fprintf_filtered (stream, ", "); wrap_here (" "); fputs_filtered (type->field (i).name (), stream); - if (lastval != TYPE_FIELD_ENUMVAL (type, i)) + if (lastval != type->field (i).loc_enumval ()) { fprintf_filtered (stream, " := %s", - plongest (TYPE_FIELD_ENUMVAL (type, i))); - lastval = TYPE_FIELD_ENUMVAL (type, i); + plongest (type->field (i).loc_enumval ())); + lastval = type->field (i).loc_enumval (); } lastval++; } |