diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2022-04-06 10:42:03 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2022-04-07 13:04:53 -0400 |
commit | 44281e6c08cae11d4e116d87ea34ad391d58ae91 (patch) | |
tree | 7d79dd1cb4870a6d73026985325059b01cde89c2 /gdb/p-exp.y | |
parent | e4730328287f755eb313c3762d83d389462cde15 (diff) | |
download | binutils-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/p-exp.y')
-rw-r--r-- | gdb/p-exp.y | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/p-exp.y b/gdb/p-exp.y index 024a335..adceff2 100644 --- a/gdb/p-exp.y +++ b/gdb/p-exp.y @@ -619,8 +619,9 @@ block : BLOCKNAME struct symtab *tem = lookup_symtab (copy.c_str ()); if (tem) - $$ = BLOCKVECTOR_BLOCK (tem->blockvector (), - STATIC_BLOCK); + $$ = BLOCKVECTOR_BLOCK + (tem->compunit ()->blockvector (), + STATIC_BLOCK); else error (_("No file or function \"%s\"."), copy.c_str ()); |