aboutsummaryrefslogtreecommitdiff
path: root/gdb/buildsym.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2021-11-19 22:25:23 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2022-02-06 15:48:18 -0500
commitaf39c5c8749757724a0f62dcb51be59cf3ecc678 (patch)
treea960f6bfd23ad6080061d29dbec58125cc33f106 /gdb/buildsym.c
parent0d9acb4531cfe336b2b335fbaa1f2ef878a6e4d9 (diff)
downloadgdb-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/buildsym.c')
-rw-r--r--gdb/buildsym.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/buildsym.c b/gdb/buildsym.c
index b96d154..8474149 100644
--- a/gdb/buildsym.c
+++ b/gdb/buildsym.c
@@ -1015,7 +1015,7 @@ buildsym_compunit::end_symtab_with_blockvector (struct block *static_block,
/* Similarly for the producer. */
cu->set_producer (m_producer);
- COMPUNIT_BLOCKVECTOR (cu) = blockvector;
+ cu->set_blockvector (blockvector);
{
struct block *b = BLOCKVECTOR_BLOCK (blockvector, GLOBAL_BLOCK);
@@ -1163,7 +1163,7 @@ void
buildsym_compunit::augment_type_symtab ()
{
struct compunit_symtab *cust = m_compunit_symtab;
- const struct blockvector *blockvector = COMPUNIT_BLOCKVECTOR (cust);
+ const struct blockvector *blockvector = cust->blockvector ();
if (!m_context_stack.empty ())
complaint (_("Context stack not empty in augment_type_symtab"));