diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2020-07-12 22:58:51 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2020-07-12 22:58:52 -0400 |
commit | 5537ddd024adc7d1af6f9572983f77e9dd047fce (patch) | |
tree | 140eaabcf9d30e85f99be4c6b7f2d918ca310514 /gdb/compile | |
parent | 8c2e4e0689ea244d0ed979171a3d09c9176b8175 (diff) | |
download | fsf-binutils-gdb-5537ddd024adc7d1af6f9572983f77e9dd047fce.zip fsf-binutils-gdb-5537ddd024adc7d1af6f9572983f77e9dd047fce.tar.gz fsf-binutils-gdb-5537ddd024adc7d1af6f9572983f77e9dd047fce.tar.bz2 |
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
Diffstat (limited to 'gdb/compile')
-rw-r--r-- | gdb/compile/compile-c-types.c | 2 | ||||
-rw-r--r-- | gdb/compile/compile-cplus-types.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gdb/compile/compile-c-types.c b/gdb/compile/compile-c-types.c index e5050da..3c900a2 100644 --- a/gdb/compile/compile-c-types.c +++ b/gdb/compile/compile-c-types.c @@ -47,7 +47,7 @@ convert_array (compile_c_instance *context, struct type *type) if (TYPE_LOW_BOUND_KIND (range) != PROP_CONST) return context->plugin ().error (_("array type with non-constant" " lower bound is not supported")); - if (TYPE_LOW_BOUND (range) != 0) + if (range->bounds ()->low.const_val () != 0) return context->plugin ().error (_("cannot convert array type with " "non-zero lower bound to C")); diff --git a/gdb/compile/compile-cplus-types.c b/gdb/compile/compile-cplus-types.c index d070360..4084f87 100644 --- a/gdb/compile/compile-cplus-types.c +++ b/gdb/compile/compile-cplus-types.c @@ -464,7 +464,7 @@ compile_cplus_convert_array (compile_cplus_instance *instance, return instance->plugin ().error (s); } - if (TYPE_LOW_BOUND (range) != 0) + if (range->bounds ()->low.const_val () != 0) { const char *s = _("cannot convert array type with " "non-zero lower bound to C"); |