aboutsummaryrefslogtreecommitdiff
path: root/gdb/buildsym.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2022-04-17 20:00:59 -0600
committerTom Tromey <tom@tromey.com>2022-04-20 09:28:40 -0600
commit4206d69e96ac401cf2975f37bf4e4d3a3c838313 (patch)
tree6301edfeea773f593e1949a30831c442bf87b90f /gdb/buildsym.c
parentbcd6845e2b66adb58d36eb1d9b8fbf71900b517d (diff)
downloadgdb-4206d69e96ac401cf2975f37bf4e4d3a3c838313.zip
gdb-4206d69e96ac401cf2975f37bf4e4d3a3c838313.tar.gz
gdb-4206d69e96ac401cf2975f37bf4e4d3a3c838313.tar.bz2
Replace symbol_symtab with symbol::symtab
This turns symbol_symtab into a method on symbol. It also replaces symbol_set_symtab with a method.
Diffstat (limited to 'gdb/buildsym.c')
-rw-r--r--gdb/buildsym.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/buildsym.c b/gdb/buildsym.c
index 628903d..927074b 100644
--- a/gdb/buildsym.c
+++ b/gdb/buildsym.c
@@ -1006,15 +1006,15 @@ buildsym_compunit::end_compunit_symtab_with_blockvector
/* Inlined functions may have symbols not in the global or
static symbol lists. */
if (BLOCK_FUNCTION (block) != NULL)
- if (symbol_symtab (BLOCK_FUNCTION (block)) == NULL)
- symbol_set_symtab (BLOCK_FUNCTION (block), symtab);
+ if (BLOCK_FUNCTION (block)->symtab () == NULL)
+ BLOCK_FUNCTION (block)->set_symtab (symtab);
/* Note that we only want to fix up symbols from the local
blocks, not blocks coming from included symtabs. That is why
we use ALL_DICT_SYMBOLS here and not ALL_BLOCK_SYMBOLS. */
ALL_DICT_SYMBOLS (BLOCK_MULTIDICT (block), miter, sym)
- if (symbol_symtab (sym) == NULL)
- symbol_set_symtab (sym, symtab);
+ if (sym->symtab () == NULL)
+ sym->set_symtab (symtab);
}
}
@@ -1114,8 +1114,8 @@ set_missing_symtab (struct pending *pending_list,
{
for (i = 0; i < pending->nsyms; ++i)
{
- if (symbol_symtab (pending->symbol[i]) == NULL)
- symbol_set_symtab (pending->symbol[i], cu->primary_filetab ());
+ if (pending->symbol[i]->symtab () == NULL)
+ pending->symbol[i]->set_symtab (cu->primary_filetab ());
}
}
}