From 2ad53ea10c14445d6074814bbdfe46bd787038cb Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Sun, 26 Sep 2021 16:34:28 -0400 Subject: gdb: remove TYPE_FIELD_LOC_KIND Remove TYPE_FIELD_LOC_KIND, replace its uses with type::field + field::loc_kind. Change-Id: Ib124a26365df82ac1d23df7962d954192913bd90 --- gdb/valops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/valops.c') diff --git a/gdb/valops.c b/gdb/valops.c index 4847f93..a80bdf0 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -3332,7 +3332,7 @@ enum_constant_from_type (struct type *type, const char *name) const char *fname = type->field (i).name (); int len; - if (TYPE_FIELD_LOC_KIND (type, i) != FIELD_LOC_KIND_ENUMVAL + if (type->field (i).loc_kind () != FIELD_LOC_KIND_ENUMVAL || fname == NULL) continue; -- cgit v1.1