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
|
@ -1206,7 +1206,7 @@ c_type_print_base_struct_union (struct type *type, struct ui_file *stream,
|
|||
}
|
||||
|
||||
c_print_type_1 (type->field (i).type (),
|
||||
TYPE_FIELD_NAME (type, i),
|
||||
type->field (i).name (),
|
||||
stream, newshow, level + 4,
|
||||
language, &local_flags, &local_podata);
|
||||
|
||||
|
@ -1602,7 +1602,7 @@ c_type_print_base_1 (struct type *type, struct ui_file *stream,
|
|||
if (i)
|
||||
fprintf_filtered (stream, ", ");
|
||||
wrap_here (" ");
|
||||
fputs_styled (TYPE_FIELD_NAME (type, i),
|
||||
fputs_styled (type->field (i).name (),
|
||||
variable_name_style.style (), stream);
|
||||
if (lastval != TYPE_FIELD_ENUMVAL (type, i))
|
||||
{
|
||||
|
@ -1650,7 +1650,7 @@ c_type_print_base_1 (struct type *type, struct ui_file *stream,
|
|||
/* We pass "show" here and not "show - 1" to get enum types
|
||||
printed. There's no other way to see them. */
|
||||
c_print_type_1 (type->field (i).type (),
|
||||
TYPE_FIELD_NAME (type, i),
|
||||
type->field (i).name (),
|
||||
stream, show, level + 4,
|
||||
language, &local_flags, podata);
|
||||
fprintf_filtered (stream, " @%s",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue