diff --git a/gdb/ChangeLog b/gdb/ChangeLog index db2d3f172e..daa228dd6a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2020-10-23 Andrew Burgess + + * language.h (LA_ITERATE_OVER_SYMBOLS): Delete. + (iterate_over_file_blocks): Replace use of macro with the macros + definition. + 2020-10-23 Andrew Burgess * language.h (LA_PRINT_ARRAY_INDEX): Delete. diff --git a/gdb/language.h b/gdb/language.h index bffa9fddfe..9d64a4ae8e 100644 --- a/gdb/language.h +++ b/gdb/language.h @@ -652,9 +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_ITERATE_OVER_SYMBOLS(BLOCK, NAME, DOMAIN, CALLBACK) \ - (current_language->iterate_over_symbols (BLOCK, NAME, DOMAIN, CALLBACK)) - /* Test a character to decide whether it can be printed in literal form or needs to be printed in another representation. For example, in C the literal form of the character with octal value 141 is 'a' diff --git a/gdb/linespec.c b/gdb/linespec.c index b05b8ad89a..a5fd3af1e3 100644 --- a/gdb/linespec.c +++ b/gdb/linespec.c @@ -1209,7 +1209,7 @@ iterate_over_file_blocks for (block = BLOCKVECTOR_BLOCK (SYMTAB_BLOCKVECTOR (symtab), STATIC_BLOCK); block != NULL; block = BLOCK_SUPERBLOCK (block)) - LA_ITERATE_OVER_SYMBOLS (block, name, domain, callback); + current_language->iterate_over_symbols (block, name, domain, callback); } /* A helper for find_method. This finds all methods in type T of