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/python/py-type.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/python') diff --git a/gdb/python/py-type.c b/gdb/python/py-type.c index 7862f70..b871a6d 100644 --- a/gdb/python/py-type.c +++ b/gdb/python/py-type.c @@ -592,8 +592,8 @@ typy_range (PyObject *self, PyObject *args) { case TYPE_CODE_ARRAY: case TYPE_CODE_STRING: - low = TYPE_LOW_BOUND (TYPE_INDEX_TYPE (type)); - high = TYPE_HIGH_BOUND (TYPE_INDEX_TYPE (type)); + low = TYPE_LOW_BOUND (type->index_type ()); + high = TYPE_HIGH_BOUND (type->index_type ()); break; case TYPE_CODE_RANGE: low = TYPE_LOW_BOUND (type); -- cgit v1.1