gdb: remove TYPE_FIELD_ENUMVAL

Remove TYPE_FIELD_ENUMVAL, replace with type::field +
field::loc_enumval.

Change-Id: I2ada73e4635aad3363ce2eb22c1dc52698ee2072
This commit is contained in:
Simon Marchi 2021-09-26 16:38:02 -04:00
parent b610c04548
commit 970db51860
15 changed files with 38 additions and 39 deletions

View file

@ -184,7 +184,7 @@ convert_field (struct type *type, int field)
if (type->code () == TYPE_CODE_ENUM)
{
arg = gdb_py_object_from_longest (TYPE_FIELD_ENUMVAL (type, field));
arg = gdb_py_object_from_longest (type->field (field).loc_enumval ());
attrstring = "enumval";
}
else