mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 17:18:24 +08:00
gdb: remove TYPE_ARRAY_{UPPER,LOWER}_BOUND_IS_UNDEFINED
Remove the macros, use the various equivalent getters instead. gdb/ChangeLog: * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED, TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all callers to use the equivalent accessor methods instead. Change-Id: Ifb4c36f440b82533bde5d15a5cbb2fc91f467292
This commit is contained in:

committed by
Simon Marchi

parent
3b606f384d
commit
39498edbc8
@ -388,7 +388,8 @@ value_cast (struct type *type, struct value *arg2)
|
||||
struct type *element_type = TYPE_TARGET_TYPE (type);
|
||||
unsigned element_length = TYPE_LENGTH (check_typedef (element_type));
|
||||
|
||||
if (element_length > 0 && TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED (type))
|
||||
if (element_length > 0
|
||||
&& type->index_type ()->bounds ()->high.kind () == PROP_UNDEFINED)
|
||||
{
|
||||
struct type *range_type = type->index_type ();
|
||||
int val_length = TYPE_LENGTH (type2);
|
||||
|
Reference in New Issue
Block a user