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/p-typeprint.c | |
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/p-typeprint.c')
-rw-r--r-- | gdb/p-typeprint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/p-typeprint.c b/gdb/p-typeprint.c index 75c1e25..c453df4 100644 --- a/gdb/p-typeprint.c +++ b/gdb/p-typeprint.c @@ -797,9 +797,9 @@ pascal_type_print_base (struct type *type, struct ui_file *stream, int show, { struct type *target = TYPE_TARGET_TYPE (type); - print_type_scalar (target, TYPE_LOW_BOUND (type), stream); + print_type_scalar (target, type->bounds ()->low.const_val (), stream); fputs_filtered ("..", stream); - print_type_scalar (target, TYPE_HIGH_BOUND (type), stream); + print_type_scalar (target, type->bounds ()->high.const_val (), stream); } break; |