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
|
@ -502,7 +502,7 @@ ada_varobj_describe_struct_child (struct value *parent_value,
|
|||
name, except that we need to strip suffixes from it.
|
||||
For instance, fields with alignment constraints will
|
||||
have an __XVA suffix added to them. */
|
||||
const char *field_name = TYPE_FIELD_NAME (parent_type, fieldno);
|
||||
const char *field_name = parent_type->field (fieldno).name ();
|
||||
int child_name_len = ada_name_prefix_len (field_name);
|
||||
|
||||
*child_name = string_printf ("%.*s", child_name_len, field_name);
|
||||
|
@ -522,7 +522,7 @@ ada_varobj_describe_struct_child (struct value *parent_value,
|
|||
name, except that we need to strip suffixes from it.
|
||||
For instance, fields with alignment constraints will
|
||||
have an __XVA suffix added to them. */
|
||||
const char *field_name = TYPE_FIELD_NAME (parent_type, fieldno);
|
||||
const char *field_name = parent_type->field (fieldno).name ();
|
||||
int child_name_len = ada_name_prefix_len (field_name);
|
||||
|
||||
*child_path_expr =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue