aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-lang.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2022-04-06 10:42:03 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2022-04-07 13:04:53 -0400
commit44281e6c08cae11d4e116d87ea34ad391d58ae91 (patch)
tree7d79dd1cb4870a6d73026985325059b01cde89c2 /gdb/ada-lang.c
parente4730328287f755eb313c3762d83d389462cde15 (diff)
downloadbinutils-44281e6c08cae11d4e116d87ea34ad391d58ae91.zip
binutils-44281e6c08cae11d4e116d87ea34ad391d58ae91.tar.gz
binutils-44281e6c08cae11d4e116d87ea34ad391d58ae91.tar.bz2
gdb: remove symtab::blockvector
symtab::blockvector is a wrapper around compunit_symtab::blockvector. It is a bit misleadnig, as it gives the impression that a symtab has a blockvector. Remove it, change all users to fetch the blockvector through the compunit instead. Change-Id: Ibd062cd7926112a60d52899dff9224591cbdeebf
Diffstat (limited to 'gdb/ada-lang.c')
-rw-r--r--gdb/ada-lang.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index f80ec5b..3a1624e 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -4709,9 +4709,9 @@ cache_symbol (const char *name, domain_enum domain, struct symbol *sym,
the symbol is local or not, we check the block where we found it
against the global and static blocks of its associated symtab. */
if (sym
- && BLOCKVECTOR_BLOCK (symbol_symtab (sym)->blockvector (),
+ && BLOCKVECTOR_BLOCK (symbol_symtab (sym)->compunit ()->blockvector (),
GLOBAL_BLOCK) != block
- && BLOCKVECTOR_BLOCK (symbol_symtab (sym)->blockvector (),
+ && BLOCKVECTOR_BLOCK (symbol_symtab (sym)->compunit ()->blockvector (),
STATIC_BLOCK) != block)
return;