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:
Simon Marchi 2021-11-19 22:25:23 -05:00 committed by Simon Marchi
parent 0d9acb4531
commit af39c5c874
15 changed files with 48 additions and 39 deletions

View file

@ -1801,7 +1801,7 @@ maintenance_check_psymtabs (const char *ignore, int from_tty)
/* Now do checks requiring the associated symtab. */
if (cust == NULL)
continue;
bv = COMPUNIT_BLOCKVECTOR (cust);
bv = cust->blockvector ();
b = BLOCKVECTOR_BLOCK (bv, STATIC_BLOCK);
for (partial_symbol *psym : ps->static_psymbols)
{