aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2020-08-14 15:07:52 +0100
committerAndrew Burgess <andrew.burgess@embecosm.com>2020-10-23 10:57:14 +0100
commit4b2f86ef2a3962fdf86b9b0f266ce7180a43a6c8 (patch)
tree9d3f458680a05d34aa7111c4e7a23afc64c7a33c
parente74b39ded0a18ee3aa1e84580f6856ec40568a07 (diff)
downloadbinutils-4b2f86ef2a3962fdf86b9b0f266ce7180a43a6c8.zip
binutils-4b2f86ef2a3962fdf86b9b0f266ce7180a43a6c8.tar.gz
binutils-4b2f86ef2a3962fdf86b9b0f266ce7180a43a6c8.tar.bz2
gdb: remove LA_ITERATE_OVER_SYMBOLS macro
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.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/language.h3
-rw-r--r--gdb/linespec.c2
3 files changed, 7 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index db2d3f1..daa228d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
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.
* valprint.c (maybe_print_array_index): Replace use of macro with
the macros definition.
diff --git a/gdb/language.h b/gdb/language.h
index bffa9fd..9d64a4a 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 b05b8ad..a5fd3af 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