mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-01 11:59:27 +08:00
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:

committed by
Simon Marchi

parent
39498edbc8
commit
bb789949e9
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user