mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-25 03:06:11 +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
@ -571,7 +571,7 @@ gdbpy_lookup_static_symbols (PyObject *self, PyObject *args, PyObject *kw)
|
||||
const struct blockvector *bv;
|
||||
const struct block *block;
|
||||
|
||||
bv = COMPUNIT_BLOCKVECTOR (cust);
|
||||
bv = cust->blockvector ();
|
||||
block = BLOCKVECTOR_BLOCK (bv, STATIC_BLOCK);
|
||||
|
||||
if (block != nullptr)
|
||||
|
Reference in New Issue
Block a user