aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-valprint.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2020-07-12 22:58:51 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2020-07-12 22:58:52 -0400
commit5537ddd024adc7d1af6f9572983f77e9dd047fce (patch)
tree140eaabcf9d30e85f99be4c6b7f2d918ca310514 /gdb/ada-valprint.c
parent8c2e4e0689ea244d0ed979171a3d09c9176b8175 (diff)
downloadfsf-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/ada-valprint.c')
-rw-r--r--gdb/ada-valprint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ada-valprint.c b/gdb/ada-valprint.c
index 61893d5..6a5b7d3 100644
--- a/gdb/ada-valprint.c
+++ b/gdb/ada-valprint.c
@@ -42,7 +42,7 @@ static void
adjust_type_signedness (struct type *type)
{
if (type != NULL && type->code () == TYPE_CODE_RANGE
- && TYPE_LOW_BOUND (type) >= 0)
+ && type->bounds ()->low.const_val () >= 0)
TYPE_UNSIGNED (type) = 1;
}