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/ada-lang.c | |
parent | 0d9acb4531cfe336b2b335fbaa1f2ef878a6e4d9 (diff) | |
download | gdb-af39c5c8749757724a0f62dcb51be59cf3ecc678.zip gdb-af39c5c8749757724a0f62dcb51be59cf3ecc678.tar.gz gdb-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/ada-lang.c')
-rw-r--r-- | gdb/ada-lang.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index 5a67853..2bb64ae 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -5237,7 +5237,7 @@ map_matching_symbols (struct objfile *objfile, for (compunit_symtab *symtab : objfile->compunits ()) { const struct block *block - = BLOCKVECTOR_BLOCK (COMPUNIT_BLOCKVECTOR (symtab), block_kind); + = BLOCKVECTOR_BLOCK (symtab->blockvector (), block_kind); if (!iterate_over_symbols_terminated (block, lookup_name, domain, data)) break; @@ -5266,7 +5266,7 @@ add_nonlocal_symbols (std::vector<struct block_symbol> &result, for (compunit_symtab *cu : objfile->compunits ()) { const struct block *global_block - = BLOCKVECTOR_BLOCK (COMPUNIT_BLOCKVECTOR (cu), GLOBAL_BLOCK); + = BLOCKVECTOR_BLOCK (cu->blockvector (), GLOBAL_BLOCK); if (ada_add_block_renamings (result, global_block, lookup_name, domain)) @@ -12617,7 +12617,7 @@ ada_add_global_exceptions (compiled_regex *preg, { for (compunit_symtab *s : objfile->compunits ()) { - const struct blockvector *bv = COMPUNIT_BLOCKVECTOR (s); + const struct blockvector *bv = s->blockvector (); int i; for (i = GLOBAL_BLOCK; i <= STATIC_BLOCK; i++) @@ -13204,7 +13204,7 @@ public: for (compunit_symtab *s : objfile->compunits ()) { QUIT; - b = BLOCKVECTOR_BLOCK (COMPUNIT_BLOCKVECTOR (s), GLOBAL_BLOCK); + b = BLOCKVECTOR_BLOCK (s->blockvector (), GLOBAL_BLOCK); ALL_BLOCK_SYMBOLS (b, iter, sym) { if (completion_skip_symbol (mode, sym)) @@ -13223,7 +13223,7 @@ public: for (compunit_symtab *s : objfile->compunits ()) { QUIT; - b = BLOCKVECTOR_BLOCK (COMPUNIT_BLOCKVECTOR (s), STATIC_BLOCK); + b = BLOCKVECTOR_BLOCK (s->blockvector (), STATIC_BLOCK); /* Don't do this block twice. */ if (b == surrounding_static_block) continue; |