gdb: remove FIELD_ENUMVAL macro

Remove FIELD_ENUMVAL, replace its uses with field::loc_enumval.

Change-Id: Id4861cee91a8bb583a9836f1aa5da0a320fbf4d9
This commit is contained in:
Simon Marchi
2021-09-23 23:47:08 -04:00
parent 3a543e211e
commit 5d2038e3f5
3 changed files with 3 additions and 4 deletions

View File

@ -1166,7 +1166,7 @@ gdbscm_field_enumval (SCM self)
SCM_ASSERT_TYPE (type->code () == TYPE_CODE_ENUM,
self, SCM_ARG1, FUNC_NAME, _("enum type"));
return scm_from_long (FIELD_ENUMVAL (*field));
return scm_from_long (field->loc_enumval ());
}
/* (field-bitpos <gdb:field>) -> integer