aboutsummaryrefslogtreecommitdiff
path: root/gdb/linespec.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2021-11-20 21:32:41 -0500
committerSimon Marchi <simon.marchi@efficios.com>2022-02-06 16:03:46 -0500
commit012cfab919e7da355b2ac7f86674211cbce26041 (patch)
treeda86dca9362d26fd408ce24b08dd8679a6c91769 /gdb/linespec.c
parent1ee2e9f9304d05f2962bbc4b83096b850fe4e433 (diff)
downloadgdb-012cfab919e7da355b2ac7f86674211cbce26041.zip
gdb-012cfab919e7da355b2ac7f86674211cbce26041.tar.gz
gdb-012cfab919e7da355b2ac7f86674211cbce26041.tar.bz2
gdb: remove SYMTAB_BLOCKVECTOR macro
Remove the macro, replace with an equivalent method. Change-Id: Id6fe2a79c04bcd6c69ccaefb7a69bc06a476288c
Diffstat (limited to 'gdb/linespec.c')
-rw-r--r--gdb/linespec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/linespec.c b/gdb/linespec.c
index acbcc09..31e3b36 100644
--- a/gdb/linespec.c
+++ b/gdb/linespec.c
@@ -1190,10 +1190,10 @@ iterate_over_all_matching_symtabs
int i;
for (i = FIRST_LOCAL_BLOCK;
- i < BLOCKVECTOR_NBLOCKS (SYMTAB_BLOCKVECTOR (symtab));
+ i < BLOCKVECTOR_NBLOCKS (symtab->blockvector ());
i++)
{
- block = BLOCKVECTOR_BLOCK (SYMTAB_BLOCKVECTOR (symtab), i);
+ block = BLOCKVECTOR_BLOCK (symtab->blockvector (), i);
state->language->iterate_over_symbols
(block, lookup_name, name_domain,
[&] (block_symbol *bsym)
@@ -1232,7 +1232,7 @@ iterate_over_file_blocks
{
const struct block *block;
- for (block = BLOCKVECTOR_BLOCK (SYMTAB_BLOCKVECTOR (symtab), STATIC_BLOCK);
+ for (block = BLOCKVECTOR_BLOCK (symtab->blockvector (), STATIC_BLOCK);
block != NULL;
block = BLOCK_SUPERBLOCK (block))
current_language->iterate_over_symbols (block, name, domain, callback);