gdb: remove TYPE_STUB_SUPPORTED

gdb/ChangeLog:

	* gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
	uses with type::stub_is_supported.

Change-Id: I69dbc32a619455605b7f934a701bc36bd664b7c0
This commit is contained in:
Simon Marchi
2020-09-14 11:08:04 -04:00
parent 9baccff6ae
commit 3f46044c09
3 changed files with 12 additions and 9 deletions

View File

@@ -228,13 +228,6 @@ DEF_ENUM_FLAGS_TYPE (enum type_instance_flag_value, type_instance_flags);
#define TYPE_FIXED_INSTANCE(t) (TYPE_MAIN_TYPE (t)->flag_fixed_instance)
/* * This debug target supports TYPE_STUB(t). In the unsupported case
we have to rely on NFIELDS to be zero etc., see TYPE_IS_OPAQUE().
TYPE_STUB(t) with !TYPE_STUB_SUPPORTED(t) may exist if we only
guessed the TYPE_STUB(t) value (see dwarfread.c). */
#define TYPE_STUB_SUPPORTED(t) ((t)->stub_is_supported ())
/* * Not textual. By default, GDB treats all single byte integers as
characters (or elements of strings) unless this flag is set. */
@@ -1125,6 +1118,11 @@ struct type
this->main_type->m_flag_vector = is_vector;
}
/* This debug target supports TYPE_STUB(t). In the unsupported case
we have to rely on NFIELDS to be zero etc., see TYPE_IS_OPAQUE().
TYPE_STUB(t) with !TYPE_STUB_SUPPORTED(t) may exist if we only
guessed the TYPE_STUB(t) value (see dwarfread.c). */
bool stub_is_supported () const
{
return this->main_type->m_flag_stub_supported;
@@ -1882,7 +1880,7 @@ extern void set_type_vptr_basetype (struct type *, struct type *);
&& ((thistype)->num_fields () == 0) \
&& (!HAVE_CPLUS_STRUCT (thistype) \
|| TYPE_NFN_FIELDS (thistype) == 0) \
&& ((thistype)->is_stub () || !TYPE_STUB_SUPPORTED (thistype)))
&& ((thistype)->is_stub () || !(thistype)->stub_is_supported ()))
/* * A helper macro that returns the name of a type or "unnamed type"
if the type has no name. */