gdb: remove LA_ITERATE_OVER_SYMBOLS macro
authorAndrew Burgess <andrew.burgess@embecosm.com>
Fri, 14 Aug 2020 14:07:52 +0000 (15:07 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Fri, 23 Oct 2020 09:57:14 +0000 (10:57 +0100)
Replace the single use of the LA_ITERATE_OVER_SYMBOLS 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_ITERATE_OVER_SYMBOLS): Delete.
(iterate_over_file_blocks): Replace use of macro with the macros
definition.

gdb/ChangeLog
gdb/language.h
gdb/linespec.c

index db2d3f172ec2f99c29f675c952ad844e80bd87e7..daa228dd6ab1826a0a6694f8dd2e92b1a1d44bd2 100644 (file)
@@ -1,3 +1,9 @@
+2020-10-23  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
+       (iterate_over_file_blocks): Replace use of macro with the macros
+       definition.
+
 2020-10-23  Andrew Burgess  <andrew.burgess@embecosm.com>
 
        * language.h (LA_PRINT_ARRAY_INDEX): Delete.
index bffa9fddfeec171cb6192d566d4f150fa809c04e..9d64a4ae8e92268ff6a145e69bddba80f4a4ae07 100644 (file)
@@ -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'
index b05b8ad89a860850e003498f9b101903ee84bdfa..a5fd3af1e306e81b05ef26a24dab3fc0ef36f84d 100644 (file)
@@ -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