gdb: remove TYPE_ARRAY_{LOWER,UPPER}_BOUND_VALUE
Remove the macros, use the various equivalent getters instead. gdb/ChangeLog: * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE, TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all callers to use the equivalent accessor methods instead. Change-Id: I7f96d988f872170e7a2f58095832710e62b85cfd
This commit is contained in:
parent
39498edbc8
commit
bb789949e9
5 changed files with 12 additions and 12 deletions
|
@ -9492,8 +9492,8 @@ assign_aggregate (struct value *container,
|
|||
{
|
||||
lhs = ada_coerce_to_simple_array (lhs);
|
||||
lhs_type = check_typedef (value_type (lhs));
|
||||
low_index = TYPE_ARRAY_LOWER_BOUND_VALUE (lhs_type);
|
||||
high_index = TYPE_ARRAY_UPPER_BOUND_VALUE (lhs_type);
|
||||
low_index = lhs_type->index_type ()->bounds ()->low.const_val ();
|
||||
high_index = lhs_type->index_type ()->bounds ()->high.const_val ();
|
||||
}
|
||||
else if (lhs_type->code () == TYPE_CODE_STRUCT)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue