gdb: remove FIELD_TYPE macro

Remove the `FIELD_TYPE` macro, changing all the call sites to use
`field::type` directly.

gdb/ChangeLog:

	* gdbtypes.h (FIELD_TYPE): Remove.  Change all call sites
	to use field::type instead.

Change-Id: I7673fedaa276e485189c87991a9043495da22ef5
This commit is contained in:
Simon Marchi
2020-06-08 15:26:06 -04:00
parent 5d14b6e5d6
commit b6cdac4b80
8 changed files with 21 additions and 18 deletions

View File

@ -1147,8 +1147,8 @@ gdbscm_field_type (SCM self)
struct field *field = tyscm_field_smob_to_field (f_smob);
/* A field can have a NULL type in some situations. */
if (FIELD_TYPE (*field))
return tyscm_scm_from_type (FIELD_TYPE (*field));
if (field->type ())
return tyscm_scm_from_type (field->type ());
return SCM_BOOL_F;
}