mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 09:58:19 +08:00
gdb: remove TYPE_LOW_BOUND_UNDEFINED and TYPE_HIGH_BOUND_UNDEFINED
Remove the macros, use the getters of `struct dynamic_prop` instead. gdb/ChangeLog: * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED, TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers to get the bound property's kind and check against PROP_UNDEFINED. Change-Id: I6a7641ac1aa3fa7fca0c21f00556f185f2e2d68c
This commit is contained in:

committed by
Simon Marchi

parent
5537ddd024
commit
064d9cb9e7
@ -1594,10 +1594,6 @@ extern unsigned type_align (struct type *);
|
||||
space in struct type. */
|
||||
extern bool set_type_align (struct type *, ULONGEST);
|
||||
|
||||
#define TYPE_LOW_BOUND_UNDEFINED(range_type) \
|
||||
(TYPE_LOW_BOUND_KIND(range_type) == PROP_UNDEFINED)
|
||||
#define TYPE_HIGH_BOUND_UNDEFINED(range_type) \
|
||||
(TYPE_HIGH_BOUND_KIND(range_type) == PROP_UNDEFINED)
|
||||
#define TYPE_HIGH_BOUND_KIND(range_type) \
|
||||
((range_type)->bounds ()->high.kind ())
|
||||
#define TYPE_LOW_BOUND_KIND(range_type) \
|
||||
@ -1637,9 +1633,9 @@ extern bool set_type_align (struct type *, ULONGEST);
|
||||
index type. */
|
||||
|
||||
#define TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED(arraytype) \
|
||||
TYPE_HIGH_BOUND_UNDEFINED((arraytype)->index_type ())
|
||||
((arraytype)->index_type ()->bounds ()->high.kind () == PROP_UNDEFINED)
|
||||
#define TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED(arraytype) \
|
||||
TYPE_LOW_BOUND_UNDEFINED((arraytype)->index_type ())
|
||||
((arraytype)->index_type ()->bounds ()->low.kind () == PROP_UNDEFINED)
|
||||
|
||||
#define TYPE_ARRAY_UPPER_BOUND_VALUE(arraytype) \
|
||||
((arraytype)->index_type ()->bounds ()->high.const_val ())
|
||||
|
Reference in New Issue
Block a user