forked from Imagelibrary/binutils-gdb
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
@@ -4451,8 +4451,8 @@ recursively_find_pc_sect_compunit_symtab (struct compunit_symtab *cust,
|
||||
{
|
||||
int i;
|
||||
|
||||
if (COMPUNIT_BLOCKVECTOR (cust) != NULL
|
||||
&& blockvector_contains_pc (COMPUNIT_BLOCKVECTOR (cust), pc))
|
||||
if (cust->blockvector () != nullptr
|
||||
&& blockvector_contains_pc (cust->blockvector (), pc))
|
||||
return cust;
|
||||
|
||||
if (cust->includes == NULL)
|
||||
|
||||
Reference in New Issue
Block a user