aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-typeprint.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2020-06-08 15:25:53 -0400
committerSimon Marchi <simon.marchi@efficios.com>2020-06-08 15:26:01 -0400
commit3d967001ecd3b325fc39d7f53ebf7054d1ecd503 (patch)
tree49d06d14ea849b5a58b207dc5e7e4303b3ae0b67 /gdb/ada-typeprint.c
parent262abc0d67af006a709d0935940f9c9f5f7c5ee5 (diff)
downloadfsf-binutils-gdb-3d967001ecd3b325fc39d7f53ebf7054d1ecd503.zip
fsf-binutils-gdb-3d967001ecd3b325fc39d7f53ebf7054d1ecd503.tar.gz
fsf-binutils-gdb-3d967001ecd3b325fc39d7f53ebf7054d1ecd503.tar.bz2
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
Diffstat (limited to 'gdb/ada-typeprint.c')
-rw-r--r--gdb/ada-typeprint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ada-typeprint.c b/gdb/ada-typeprint.c
index 2021edf..c6056a3 100644
--- a/gdb/ada-typeprint.c
+++ b/gdb/ada-typeprint.c
@@ -407,7 +407,7 @@ print_array_type (struct type *type, struct ui_file *stream, int show,
{
if (arr_type != type)
fprintf_filtered (stream, ", ");
- print_range (TYPE_INDEX_TYPE (arr_type), stream,
+ print_range (arr_type->index_type (), stream,
0 /* bounds_prefered_p */);
if (TYPE_FIELD_BITSIZE (arr_type, 0) > 0)
bitsize = TYPE_FIELD_BITSIZE (arr_type, 0);