From 5537ddd024adc7d1af6f9572983f77e9dd047fce Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Sun, 12 Jul 2020 22:58:51 -0400 Subject: 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 --- gdb/python/py-type.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gdb/python') diff --git a/gdb/python/py-type.c b/gdb/python/py-type.c index 34cb849..e99ee41 100644 --- a/gdb/python/py-type.c +++ b/gdb/python/py-type.c @@ -592,12 +592,12 @@ typy_range (PyObject *self, PyObject *args) { case TYPE_CODE_ARRAY: case TYPE_CODE_STRING: - low = TYPE_LOW_BOUND (type->index_type ()); - high = TYPE_HIGH_BOUND (type->index_type ()); + low = type->index_type ()->bounds ()->low.const_val (); + high = type->index_type ()->bounds ()->high.const_val (); break; case TYPE_CODE_RANGE: - low = TYPE_LOW_BOUND (type); - high = TYPE_HIGH_BOUND (type); + low = type->bounds ()->low.const_val (); + high = type->bounds ()->high.const_val ();; break; } -- cgit v1.1