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/symmisc.c | |
parent | e4730328287f755eb313c3762d83d389462cde15 (diff) | |
download | gdb-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/symmisc.c')
-rw-r--r-- | gdb/symmisc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/symmisc.c b/gdb/symmisc.c index 5d8d641..1843eb8 100644 --- a/gdb/symmisc.c +++ b/gdb/symmisc.c @@ -278,7 +278,7 @@ dump_symtab_1 (struct symtab *symtab, struct ui_file *outfile) if (is_main_symtab_of_compunit_symtab (symtab)) { gdb_printf (outfile, "\nBlockvector:\n\n"); - bv = symtab->blockvector (); + bv = symtab->compunit ()->blockvector (); len = BLOCKVECTOR_NBLOCKS (bv); for (i = 0; i < len; i++) { |