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
This commit is contained in:
parent
056b6f879d
commit
59dfe8ad84
13 changed files with 131 additions and 121 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue