gdb: remove TYPE_FIELD_NAME and FIELD_NAME macros
Remove the `TYPE_FIELD_NAME` and `FIELD_NAME` macros, changing all the call sites to use field::name directly. Change-Id: I6900ae4e1ffab1396e24fb3298e94bf123826ca6
This commit is contained in:
parent
d3fd12dfc5
commit
33d16dd987
34 changed files with 155 additions and 158 deletions
|
@ -82,9 +82,9 @@ gccgo_string_p (struct type *type)
|
|||
type1 = check_typedef (type1);
|
||||
|
||||
if (type0->code () == TYPE_CODE_PTR
|
||||
&& strcmp (TYPE_FIELD_NAME (type, 0), "__data") == 0
|
||||
&& strcmp (type->field (0).name (), "__data") == 0
|
||||
&& type1->code () == TYPE_CODE_INT
|
||||
&& strcmp (TYPE_FIELD_NAME (type, 1), "__length") == 0)
|
||||
&& strcmp (type->field (1).name (), "__length") == 0)
|
||||
{
|
||||
struct type *target_type = TYPE_TARGET_TYPE (type0);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue