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:
parent
00c696a6e2
commit
e74b39ded0
3 changed files with 8 additions and 6 deletions
|
@ -1,3 +1,9 @@
|
|||
2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
|
||||
|
||||
* language.h (LA_PRINT_ARRAY_INDEX): Delete.
|
||||
* valprint.c (maybe_print_array_index): Replace use of macro with
|
||||
the macros definition.
|
||||
|
||||
2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
|
||||
|
||||
* ada-lang.c (ada_language::print_array_index): Call value_print
|
||||
|
|
|
@ -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))
|
||||
|
||||
|
|
|
@ -1867,7 +1867,7 @@ maybe_print_array_index (struct type *index_type, LONGEST index,
|
|||
if (!options->print_array_indexes)
|
||||
return;
|
||||
|
||||
LA_PRINT_ARRAY_INDEX (index_type, index, stream, options);
|
||||
current_language->print_array_index (index_type, index, stream, options);
|
||||
}
|
||||
|
||||
/* See valprint.h. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue