aboutsummaryrefslogtreecommitdiff
path: root/gdb/ctfread.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/ctfread.c
parent056b6f879d0b958d470b9ed1df19ec68daf77467 (diff)
downloadbinutils-59dfe8ad84c6a9ef17a1ba4a8f443ac3cb9f6fd5.zip
binutils-59dfe8ad84c6a9ef17a1ba4a8f443ac3cb9f6fd5.tar.gz
binutils-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/ctfread.c')
-rw-r--r--gdb/ctfread.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/ctfread.c b/gdb/ctfread.c
index 7f7e096..87147a1 100644
--- a/gdb/ctfread.c
+++ b/gdb/ctfread.c
@@ -1246,8 +1246,8 @@ get_objfile_text_range (struct objfile *of, int *tsize)
/* Start a symtab for OBJFILE in CTF format. */
static void
-ctf_start_symtab (ctf_psymtab *pst,
- struct objfile *of, CORE_ADDR text_offset)
+ctf_start_compunit_symtab (ctf_psymtab *pst,
+ struct objfile *of, CORE_ADDR text_offset)
{
struct ctf_context *ccp;
@@ -1263,14 +1263,14 @@ ctf_start_symtab (ctf_psymtab *pst,
the .text section number. */
static struct compunit_symtab *
-ctf_end_symtab (ctf_psymtab *pst,
- CORE_ADDR end_addr, int section)
+ctf_end_compunit_symtab (ctf_psymtab *pst,
+ CORE_ADDR end_addr, int section)
{
struct ctf_context *ccp;
ccp = &pst->context;
struct compunit_symtab *result
- = ccp->builder->end_symtab (end_addr, section);
+ = ccp->builder->end_compunit_symtab (end_addr, section);
delete ccp->builder;
ccp->builder = nullptr;
return result;
@@ -1407,13 +1407,13 @@ ctf_psymtab::read_symtab (struct objfile *objfile)
int tsize;
offset = get_objfile_text_range (objfile, &tsize);
- ctf_start_symtab (this, objfile, offset);
+ ctf_start_compunit_symtab (this, objfile, offset);
expand_psymtab (objfile);
set_text_low (offset);
set_text_high (offset + tsize);
- compunit_symtab = ctf_end_symtab (this, offset + tsize,
- SECT_OFF_TEXT (objfile));
+ compunit_symtab = ctf_end_compunit_symtab (this, offset + tsize,
+ SECT_OFF_TEXT (objfile));
/* Finish up the debug error message. */
if (info_verbose)