gdb: remove TYPE_FIELD_LOC_KIND

Remove TYPE_FIELD_LOC_KIND, replace its uses with type::field +
field::loc_kind.

Change-Id: Ib124a26365df82ac1d23df7962d954192913bd90
This commit is contained in:
Simon Marchi 2021-09-26 16:34:28 -04:00
parent d8557c3d22
commit 2ad53ea10c
10 changed files with 18 additions and 18 deletions

View file

@ -189,7 +189,7 @@ convert_field (struct type *type, int field)
}
else
{
if (TYPE_FIELD_LOC_KIND (type, field) == FIELD_LOC_KIND_DWARF_BLOCK)
if (type->field (field).loc_kind () == FIELD_LOC_KIND_DWARF_BLOCK)
arg = gdbpy_ref<>::new_reference (Py_None);
else
arg = gdb_py_object_from_longest (TYPE_FIELD_BITPOS (type, field));