gdb: remove SYMTAB_BLOCKVECTOR macro

Remove the macro, replace with an equivalent method.

Change-Id: Id6fe2a79c04bcd6c69ccaefb7a69bc06a476288c
This commit is contained in:
Simon Marchi
2021-11-20 21:32:41 -05:00
parent 1ee2e9f930
commit 012cfab919
14 changed files with 32 additions and 26 deletions

View File

@@ -4384,9 +4384,9 @@ cache_symbol (const char *name, domain_enum domain, struct symbol *sym,
the symbol is local or not, we check the block where we found it
against the global and static blocks of its associated symtab. */
if (sym
&& BLOCKVECTOR_BLOCK (SYMTAB_BLOCKVECTOR (symbol_symtab (sym)),
&& BLOCKVECTOR_BLOCK (symbol_symtab (sym)->blockvector (),
GLOBAL_BLOCK) != block
&& BLOCKVECTOR_BLOCK (SYMTAB_BLOCKVECTOR (symbol_symtab (sym)),
&& BLOCKVECTOR_BLOCK (symbol_symtab (sym)->blockvector (),
STATIC_BLOCK) != block)
return;