diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2021-11-19 22:25:23 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2022-02-06 15:48:18 -0500 |
commit | af39c5c8749757724a0f62dcb51be59cf3ecc678 (patch) | |
tree | a960f6bfd23ad6080061d29dbec58125cc33f106 /gdb/python/py-symbol.c | |
parent | 0d9acb4531cfe336b2b335fbaa1f2ef878a6e4d9 (diff) | |
download | binutils-af39c5c8749757724a0f62dcb51be59cf3ecc678.zip binutils-af39c5c8749757724a0f62dcb51be59cf3ecc678.tar.gz binutils-af39c5c8749757724a0f62dcb51be59cf3ecc678.tar.bz2 |
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
Diffstat (limited to 'gdb/python/py-symbol.c')
-rw-r--r-- | gdb/python/py-symbol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/python/py-symbol.c b/gdb/python/py-symbol.c index 508f445..f636f51 100644 --- a/gdb/python/py-symbol.c +++ b/gdb/python/py-symbol.c @@ -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) |