forked from Imagelibrary/binutils-gdb
gdb: remove FIELD_ARTIFICIAL
Replace uses with field::is_artificial. Change-Id: I599616fdd9f4b6d044de492e8151aa6130725cd1 Approved-By: Tom Tromey <tom@tromey.com>
This commit is contained in:
committed by
Simon Marchi
parent
321d8b3f28
commit
6c0f749351
@@ -286,7 +286,7 @@ cp_type_print_method_args (struct type *mtype, const char *prefix,
|
||||
|
||||
struct field arg = args[i];
|
||||
/* Skip any artificial arguments. */
|
||||
if (FIELD_ARTIFICIAL (arg))
|
||||
if (arg.is_artificial ())
|
||||
continue;
|
||||
|
||||
if (printed_args > 0)
|
||||
|
||||
@@ -4243,7 +4243,7 @@ check_types_equal (struct type *type1, struct type *type2,
|
||||
const struct field *field1 = &type1->field (i);
|
||||
const struct field *field2 = &type2->field (i);
|
||||
|
||||
if (FIELD_ARTIFICIAL (*field1) != FIELD_ARTIFICIAL (*field2)
|
||||
if (field1->is_artificial () != field2->is_artificial ()
|
||||
|| FIELD_BITSIZE (*field1) != FIELD_BITSIZE (*field2)
|
||||
|| field1->loc_kind () != field2->loc_kind ())
|
||||
return false;
|
||||
|
||||
@@ -1923,10 +1923,9 @@ extern void set_type_vptr_basetype (struct type *, struct type *);
|
||||
(TYPE_CPLUS_SPECIFIC(thistype)->virtual_field_bits == NULL ? 0 \
|
||||
: B_TST(TYPE_CPLUS_SPECIFIC(thistype)->virtual_field_bits, (index)))
|
||||
|
||||
#define FIELD_ARTIFICIAL(thisfld) ((thisfld).is_artificial ())
|
||||
#define FIELD_BITSIZE(thisfld) ((thisfld).bitsize)
|
||||
|
||||
#define TYPE_FIELD_ARTIFICIAL(thistype, n) FIELD_ARTIFICIAL((thistype)->field (n))
|
||||
#define TYPE_FIELD_ARTIFICIAL(thistype, n) ((thistype)->field (n).is_artificial ())
|
||||
#define TYPE_FIELD_BITSIZE(thistype, n) FIELD_BITSIZE((thistype)->field (n))
|
||||
#define TYPE_FIELD_PACKED(thistype, n) (FIELD_BITSIZE((thistype)->field (n))!=0)
|
||||
|
||||
|
||||
@@ -1213,7 +1213,7 @@ gdbscm_field_artificial_p (SCM self)
|
||||
= tyscm_get_field_smob_arg_unsafe (self, SCM_ARG1, FUNC_NAME);
|
||||
struct field *field = tyscm_field_smob_to_field (f_smob);
|
||||
|
||||
return scm_from_bool (FIELD_ARTIFICIAL (*field));
|
||||
return scm_from_bool (field->is_artificial ());
|
||||
}
|
||||
|
||||
/* (field-baseclass? <gdb:field>) -> boolean
|
||||
|
||||
Reference in New Issue
Block a user