aboutsummaryrefslogtreecommitdiff
path: root/gdb/parse.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/parse.c
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/parse.c')
-rw-r--r--gdb/parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/parse.c b/gdb/parse.c
index 7637e57..6d1b3d9 100644
--- a/gdb/parse.c
+++ b/gdb/parse.c
@@ -465,7 +465,7 @@ parse_exp_in_context (const char **stringptr, CORE_ADDR pc,
struct symtab_and_line cursal = get_current_source_symtab_and_line ();
if (cursal.symtab)
expression_context_block
- = BLOCKVECTOR_BLOCK (cursal.symtab->blockvector (),
+ = BLOCKVECTOR_BLOCK (cursal.symtab->compunit ()->blockvector (),
STATIC_BLOCK);
if (expression_context_block)
expression_context_pc = BLOCK_ENTRY_PC (expression_context_block);