From 3d967001ecd3b325fc39d7f53ebf7054d1ecd503 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Mon, 8 Jun 2020 15:25:53 -0400 Subject: gdb: remove TYPE_INDEX_TYPE macro Remove `TYPE_INDEX_TYPE` macro, changing all the call sites to use `type::index_type` directly. gdb/ChangeLog: * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites to use type::index_type instead. Change-Id: I56715df0bdec89463cda6bd341dac0e01b2faf84 --- gdb/valprint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/valprint.c') diff --git a/gdb/valprint.c b/gdb/valprint.c index ca7dab6..7051fce 100644 --- a/gdb/valprint.c +++ b/gdb/valprint.c @@ -1875,7 +1875,7 @@ value_print_array_elements (struct value *val, struct ui_file *stream, elttype = TYPE_TARGET_TYPE (type); eltlen = type_length_units (check_typedef (elttype)); - index_type = TYPE_INDEX_TYPE (type); + index_type = type->index_type (); if (index_type->code () == TYPE_CODE_RANGE) index_type = TYPE_TARGET_TYPE (index_type); -- cgit v1.1