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/c-lang.c | |
parent | 262abc0d67af006a709d0935940f9c9f5f7c5ee5 (diff) | |
download | binutils-3d967001ecd3b325fc39d7f53ebf7054d1ecd503.zip binutils-3d967001ecd3b325fc39d7f53ebf7054d1ecd503.tar.gz binutils-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/c-lang.c')
-rw-r--r-- | gdb/c-lang.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/c-lang.c b/gdb/c-lang.c index 364a672..8eb0d94 100644 --- a/gdb/c-lang.c +++ b/gdb/c-lang.c @@ -698,7 +698,7 @@ evaluate_subexp_c (struct type *expect_type, struct expression *exp, LONGEST low_bound, high_bound; int element_size = TYPE_LENGTH (type); - if (get_discrete_bounds (TYPE_INDEX_TYPE (expect_type), + if (get_discrete_bounds (expect_type->index_type (), &low_bound, &high_bound) < 0) { low_bound = 0; |