gdb: remove TYPE_HIGH_BOUND and TYPE_LOW_BOUND
Remove the macros, use the getters of `struct dynamic_prop` instead. gdb/ChangeLog: * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update all callers to use type::range_bounds followed by dynamic_prop::{low,high}. Change-Id: I31beeed65d94d81ac4f999244a8b859e2ee961d1
This commit is contained in:
parent
8c2e4e0689
commit
5537ddd024
15 changed files with 58 additions and 53 deletions
|
@ -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(range_type) \
|
||||
((range_type)->bounds ()->low.const_val ())
|
||||
#define TYPE_HIGH_BOUND(range_type) \
|
||||
((range_type)->bounds ()->high.const_val ())
|
||||
#define TYPE_LOW_BOUND_UNDEFINED(range_type) \
|
||||
(TYPE_LOW_BOUND_KIND(range_type) == PROP_UNDEFINED)
|
||||
#define TYPE_HIGH_BOUND_UNDEFINED(range_type) \
|
||||
|
@ -1646,10 +1642,10 @@ extern bool set_type_align (struct type *, ULONGEST);
|
|||
TYPE_LOW_BOUND_UNDEFINED((arraytype)->index_type ())
|
||||
|
||||
#define TYPE_ARRAY_UPPER_BOUND_VALUE(arraytype) \
|
||||
(TYPE_HIGH_BOUND((arraytype)->index_type ()))
|
||||
((arraytype)->index_type ()->bounds ()->high.const_val ())
|
||||
|
||||
#define TYPE_ARRAY_LOWER_BOUND_VALUE(arraytype) \
|
||||
(TYPE_LOW_BOUND((arraytype)->index_type ()))
|
||||
((arraytype)->index_type ()->bounds ()->low.const_val ())
|
||||
|
||||
#define TYPE_ARRAY_BIT_STRIDE(arraytype) \
|
||||
(TYPE_BIT_STRIDE(((arraytype)->index_type ())))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue