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/block.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/block.c')
-rw-r--r-- | gdb/block.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/block.c b/gdb/block.c index 6171645..c0e3e46 100644 --- a/gdb/block.c +++ b/gdb/block.c @@ -197,7 +197,7 @@ blockvector_for_pc_sect (CORE_ADDR pc, struct obj_section *section, return 0; } - bl = COMPUNIT_BLOCKVECTOR (cust); + bl = cust->blockvector (); /* Then search that symtab for the smallest block that wins. */ b = find_block_in_blockvector (bl, pc); @@ -543,7 +543,7 @@ block_iterator_step (struct block_iterator *iterator, int first) if (cust == NULL) return NULL; - block = BLOCKVECTOR_BLOCK (COMPUNIT_BLOCKVECTOR (cust), + block = BLOCKVECTOR_BLOCK (cust->blockvector (), iterator->which); sym = mdict_iterator_first (BLOCK_MULTIDICT (block), &iterator->mdict_iter); @@ -612,7 +612,7 @@ block_iter_match_step (struct block_iterator *iterator, if (cust == NULL) return NULL; - block = BLOCKVECTOR_BLOCK (COMPUNIT_BLOCKVECTOR (cust), + block = BLOCKVECTOR_BLOCK (cust->blockvector (), iterator->which); sym = mdict_iter_match_first (BLOCK_MULTIDICT (block), name, &iterator->mdict_iter); |