mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-03 04:01:22 +08:00
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:
@ -1073,13 +1073,13 @@ add_struct_fields (struct type *type, completion_list &output,
|
||||
if (i < TYPE_N_BASECLASSES (type))
|
||||
add_struct_fields (TYPE_BASECLASS (type, i),
|
||||
output, fieldname, namelen);
|
||||
else if (TYPE_FIELD_NAME (type, i))
|
||||
else if (type->field (i).name ())
|
||||
{
|
||||
if (TYPE_FIELD_NAME (type, i)[0] != '\0')
|
||||
if (type->field (i).name ()[0] != '\0')
|
||||
{
|
||||
if (! strncmp (TYPE_FIELD_NAME (type, i),
|
||||
if (! strncmp (type->field (i).name (),
|
||||
fieldname, namelen))
|
||||
output.emplace_back (xstrdup (TYPE_FIELD_NAME (type, i)));
|
||||
output.emplace_back (xstrdup (type->field (i).name ()));
|
||||
}
|
||||
else if (type->field (i).type ()->code () == TYPE_CODE_UNION)
|
||||
{
|
||||
|
Reference in New Issue
Block a user