diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2020-06-08 15:25:53 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2020-06-08 15:26:01 -0400 |
commit | 3d967001ecd3b325fc39d7f53ebf7054d1ecd503 (patch) | |
tree | 49d06d14ea849b5a58b207dc5e7e4303b3ae0b67 /gdb/valarith.c | |
parent | 262abc0d67af006a709d0935940f9c9f5f7c5ee5 (diff) | |
download | gdb-3d967001ecd3b325fc39d7f53ebf7054d1ecd503.zip gdb-3d967001ecd3b325fc39d7f53ebf7054d1ecd503.tar.gz 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/valarith.c')
-rw-r--r-- | gdb/valarith.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/valarith.c b/gdb/valarith.c index 82e63a3..a5779a3 100644 --- a/gdb/valarith.c +++ b/gdb/valarith.c @@ -149,7 +149,7 @@ value_subscript (struct value *array, LONGEST index) if (tarray->code () == TYPE_CODE_ARRAY || tarray->code () == TYPE_CODE_STRING) { - struct type *range_type = TYPE_INDEX_TYPE (tarray); + struct type *range_type = tarray->index_type (); LONGEST lowerbound, upperbound; get_discrete_bounds (range_type, &lowerbound, &upperbound); @@ -1870,7 +1870,7 @@ value_bit_index (struct type *type, const gdb_byte *valaddr, int index) LONGEST low_bound, high_bound; LONGEST word; unsigned rel_index; - struct type *range = TYPE_INDEX_TYPE (type); + struct type *range = type->index_type (); if (get_discrete_bounds (range, &low_bound, &high_bound) < 0) return -2; |