aboutsummaryrefslogtreecommitdiff
path: root/gdb/valops.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2021-09-26 16:38:02 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2021-10-29 16:44:45 -0400
commit970db5186051c051d9c5bd1f7ed404902b96fa80 (patch)
treeec3f149b291e22c532b6b61367fd9b2abcdff0e4 /gdb/valops.c
parentb610c04548a39dbce6d51c33d7a8125e59066939 (diff)
downloadgdb-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/valops.c')
-rw-r--r--gdb/valops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/valops.c b/gdb/valops.c
index 0d02584..9787cdb 100644
--- a/gdb/valops.c
+++ b/gdb/valops.c
@@ -3343,7 +3343,7 @@ enum_constant_from_type (struct type *type, const char *name)
&& fname[len - name_len - 2] == ':'
&& fname[len - name_len - 1] == ':'
&& strcmp (&fname[len - name_len], name) == 0)
- return value_from_longest (type, TYPE_FIELD_ENUMVAL (type, i));
+ return value_from_longest (type, type->field (i).loc_enumval ());
}
error (_("no constant named \"%s\" in enum \"%s\""),