gdb: remove TYPE_FIELD_ENUMVAL
Remove TYPE_FIELD_ENUMVAL, replace with type::field + field::loc_enumval. Change-Id: I2ada73e4635aad3363ce2eb22c1dc52698ee2072
This commit is contained in:
parent
b610c04548
commit
970db51860
15 changed files with 38 additions and 39 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue