From 599088e3ffa13edcccc68b6d7a39e7488123004a Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Sun, 12 Jul 2020 22:58:51 -0400 Subject: gdb: remove TYPE_RANGE_DATA macro Remove it in favor of using type::bounds directly. gdb/ChangeLog: * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use the type::bounds method directly. Change-Id: Id4fab22af0a94cbf505f78b01b3ee5b3d682fba2 --- gdb/eval.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/eval.c') diff --git a/gdb/eval.c b/gdb/eval.c index f975081..e28bfcb 100644 --- a/gdb/eval.c +++ b/gdb/eval.c @@ -3255,7 +3255,7 @@ evaluate_subexp_for_sizeof (struct expression *exp, int *pos, type = type->index_type (); /* Only re-evaluate the right hand side if the resulting type is a variable length type. */ - if (TYPE_RANGE_DATA (type)->flag_bound_evaluated) + if (type->bounds ()->flag_bound_evaluated) { val = evaluate_subexp (NULL_TYPE, exp, pos, EVAL_NORMAL); return value_from_longest -- cgit v1.1