aboutsummaryrefslogtreecommitdiff
path: root/gdb/buildsym-legacy.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2022-03-28 18:17:17 -0400
committerSimon Marchi <simon.marchi@efficios.com>2022-04-04 12:58:07 -0400
commit59dfe8ad84c6a9ef17a1ba4a8f443ac3cb9f6fd5 (patch)
tree119727391fc7c5e95ace6211cac153fcbfb93876 /gdb/buildsym-legacy.c
parent056b6f879d0b958d470b9ed1df19ec68daf77467 (diff)
downloadfsf-binutils-gdb-59dfe8ad84c6a9ef17a1ba4a8f443ac3cb9f6fd5.zip
fsf-binutils-gdb-59dfe8ad84c6a9ef17a1ba4a8f443ac3cb9f6fd5.tar.gz
fsf-binutils-gdb-59dfe8ad84c6a9ef17a1ba4a8f443ac3cb9f6fd5.tar.bz2
gdb: rename start_symtab/end_symtab to start_compunit_symtab/end_compunit_symtab
It's a bit confusing because we have both "compunit_symtab" and "symtab" types, and many methods and functions containing "start_symtab" or "end_symtab", which actually deal with compunit_symtabs. I believe this comes from the time before compunit_symtab was introduced, where symtab did the job of both. Rename everything I found containing start_symtab or end_symtab to use start_compunit_symtab or end_compunit_symtab. Change-Id: If3849b156f6433640173085ad479b6a0b085ade2
Diffstat (limited to 'gdb/buildsym-legacy.c')
-rw-r--r--gdb/buildsym-legacy.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/gdb/buildsym-legacy.c b/gdb/buildsym-legacy.c
index cfafcc3..b16c978 100644
--- a/gdb/buildsym-legacy.c
+++ b/gdb/buildsym-legacy.c
@@ -21,7 +21,7 @@
#include "symtab.h"
/* The work-in-progress of the compunit we are building.
- This is created first, before any subfiles by start_symtab. */
+ This is created first, before any subfiles by start_compunit_symtab. */
static struct buildsym_compunit *buildsym_compunit;
@@ -171,11 +171,11 @@ free_buildsym_compunit (void)
}
struct compunit_symtab *
-end_symtab (CORE_ADDR end_addr, int section)
+end_compunit_symtab (CORE_ADDR end_addr, int section)
{
gdb_assert (buildsym_compunit != nullptr);
struct compunit_symtab *result
- = buildsym_compunit->end_symtab (end_addr, section);
+ = buildsym_compunit->end_compunit_symtab (end_addr, section);
free_buildsym_compunit ();
return result;
}
@@ -213,10 +213,10 @@ record_line (struct subfile *subfile, int line, CORE_ADDR pc)
buildsym_compunit->record_line (subfile, line, pc, true);
}
-/* Start a new symtab for a new source file in OBJFILE. Called, for example,
- when a stabs symbol of type N_SO is seen, or when a DWARF
- TAG_compile_unit DIE is seen. It indicates the start of data for
- one original source file.
+/* Start a new compunit_symtab for a new source file in OBJFILE. Called, for
+ example, when a stabs symbol of type N_SO is seen, or when a DWARF
+ DW_TAG_compile_unit DIE is seen. It indicates the start of data for one
+ original source file.
NAME is the name of the file (cannot be NULL). COMP_DIR is the
directory in which the file was compiled (or NULL if not known).
@@ -226,8 +226,9 @@ record_line (struct subfile *subfile, int line, CORE_ADDR pc)
the filename. */
struct compunit_symtab *
-start_symtab (struct objfile *objfile, const char *name, const char *comp_dir,
- CORE_ADDR start_addr, enum language language)
+start_compunit_symtab (struct objfile *objfile, const char *name,
+ const char *comp_dir, CORE_ADDR start_addr,
+ enum language language)
{
/* These should have been reset either by successful completion of building
a symtab, or by the scoped_free_pendings destructor. */