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
@@ -531,7 +531,7 @@ finalize_symtab (struct gdb_symtab *stab, struct objfile *objfile)
|
||||
+ (actual_nblocks - 1) * sizeof (struct block *));
|
||||
bv = (struct blockvector *) obstack_alloc (&objfile->objfile_obstack,
|
||||
blockvector_size);
|
||||
COMPUNIT_BLOCKVECTOR (cust) = bv;
|
||||
cust->set_blockvector (bv);
|
||||
|
||||
/* At the end of this function, (begin, end) will contain the PC range this
|
||||
entire blockvector spans. */
|
||||
|
||||
Reference in New Issue
Block a user