mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-18 16:53:50 +08:00
gdb: remove symtab::blockvector
symtab::blockvector is a wrapper around compunit_symtab::blockvector. It is a bit misleadnig, as it gives the impression that a symtab has a blockvector. Remove it, change all users to fetch the blockvector through the compunit instead. Change-Id: Ibd062cd7926112a60d52899dff9224591cbdeebf
This commit is contained in:
@ -4709,9 +4709,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 (symbol_symtab (sym)->blockvector (),
|
||||
&& BLOCKVECTOR_BLOCK (symbol_symtab (sym)->compunit ()->blockvector (),
|
||||
GLOBAL_BLOCK) != block
|
||||
&& BLOCKVECTOR_BLOCK (symbol_symtab (sym)->blockvector (),
|
||||
&& BLOCKVECTOR_BLOCK (symbol_symtab (sym)->compunit ()->blockvector (),
|
||||
STATIC_BLOCK) != block)
|
||||
return;
|
||||
|
||||
|
Reference in New Issue
Block a user