aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-exp.y
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-exp.y
parente4730328287f755eb313c3762d83d389462cde15 (diff)
downloadgdb-44281e6c08cae11d4e116d87ea34ad391d58ae91.zip
gdb-44281e6c08cae11d4e116d87ea34ad391d58ae91.tar.gz
gdb-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-exp.y')
-rw-r--r--gdb/ada-exp.y3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/ada-exp.y b/gdb/ada-exp.y
index 5099e40..a2755d7 100644
--- a/gdb/ada-exp.y
+++ b/gdb/ada-exp.y
@@ -1369,7 +1369,8 @@ block_lookup (const struct block *context, const char *raw_name)
symtab = NULL;
if (symtab != NULL)
- result = BLOCKVECTOR_BLOCK (symtab->blockvector (), STATIC_BLOCK);
+ result = BLOCKVECTOR_BLOCK (symtab->compunit ()->blockvector (),
+ STATIC_BLOCK);
else if (syms.empty () || syms[0].symbol->aclass () != LOC_BLOCK)
{
if (context == NULL)