gdb: remove LA_PRINT_ARRAY_INDEX macro

Replace the single use of the LA_PRINT_ARRAY_INDEX macro with the
macro's definition, and delete the macro.

There should be no user visible changes after this commit.

gdb/ChangeLog:

	* language.h (LA_PRINT_ARRAY_INDEX): Delete.
	* valprint.c (maybe_print_array_index): Replace use of macro with
	the macros definition.
This commit is contained in:
Andrew Burgess 2020-08-14 15:06:08 +01:00
parent 00c696a6e2
commit e74b39ded0
3 changed files with 8 additions and 6 deletions

View file

@ -652,10 +652,6 @@ extern enum language set_language (enum language);
#define LA_EMIT_CHAR(ch, type, stream, quoter) \
(current_language->emitchar (ch, type, stream, quoter))
#define LA_PRINT_ARRAY_INDEX(index_type, index_value, stream, options) \
(current_language->print_array_index(index_type, index_value, stream, \
options))
#define LA_ITERATE_OVER_SYMBOLS(BLOCK, NAME, DOMAIN, CALLBACK) \
(current_language->iterate_over_symbols (BLOCK, NAME, DOMAIN, CALLBACK))