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.
This commit is contained in:
parent
e74b39ded0
commit
4b2f86ef2a
3 changed files with 7 additions and 4 deletions
|
@ -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.
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue