mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-03 21:34:46 +08:00
gdb: remove COMPUNIT_BLOCKVECTOR macro, add getter/setter
Add a getter and a setter for a compunit_symtab's blockvector. Remove the corresponding macro and adjust all callers. Change-Id: I99484c6619dcbbea7c5d89c72aa660316ca62f64
This commit is contained in:

committed by
Simon Marchi

parent
0d9acb4531
commit
af39c5c874
@ -245,7 +245,7 @@ objfile::lookup_symbol (block_enum kind, const char *name, domain_enum domain)
|
||||
auto search_one_symtab = [&] (compunit_symtab *stab)
|
||||
{
|
||||
struct symbol *sym, *with_opaque = NULL;
|
||||
const struct blockvector *bv = COMPUNIT_BLOCKVECTOR (stab);
|
||||
const struct blockvector *bv = stab->blockvector ();
|
||||
const struct block *block = BLOCKVECTOR_BLOCK (bv, kind);
|
||||
|
||||
sym = block_find_symbol (block, name, domain,
|
||||
|
Reference in New Issue
Block a user