* dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
	(dbx_read_symtab): New declaration.
	(dbx_psymtab_to_symtab): Delete.
	(dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
	Rename parameter PST to SELF.  Exchanged two parameters.
	(start_psymtab): Caller update.
	* dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
	(dwarf2_read_symtab): New declaration.
	(dwarf2_psymtab_to_symtab): Delete.
	(dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
	Rename parameter PST to SELF.  Exchanged two parameters.
	(create_partial_symtab): Caller update.
	* mdebugread.c (mdebug_psymtab_to_symtab): Delete.
	(mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
	Rename parameter PST to SELF.  Exchanged two parameters.
	(parse_partial_symbols, new_psymtab): Caller update.
	* psympriv.h (struct partial_symtab) <read_symtab>: Exchange
	two parameters.
	* psymtab.c (psymtab_to_symtab): Caller update.
	* xcoffread.c (xcoff_psymtab_to_symtab): Delete.
	(xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
	Rename parameter PST to SELF.  Exchanged two parameters.
	(xcoff_start_psymtab): Caller update.
This commit is contained in:
Yao Qi 2013-01-18 03:09:42 +00:00
parent 0de5618e23
commit 257e7a0972
7 changed files with 65 additions and 37 deletions

View file

@ -1284,8 +1284,8 @@ static void add_partial_subprogram (struct partial_die_info *pdi,
CORE_ADDR *lowpc, CORE_ADDR *highpc,
int need_pc, struct dwarf2_cu *cu);
static void dwarf2_psymtab_to_symtab (struct objfile *,
struct partial_symtab *);
static void dwarf2_read_symtab (struct partial_symtab *,
struct objfile *);
static void psymtab_to_symtab_1 (struct partial_symtab *);
@ -4855,7 +4855,7 @@ create_partial_symtab (struct dwarf2_per_cu_data *per_cu, const char *name)
/* This is the glue that links PST into GDB's symbol API. */
pst->read_symtab_private = per_cu;
pst->read_symtab = dwarf2_psymtab_to_symtab;
pst->read_symtab = dwarf2_read_symtab;
per_cu->v.psymtab = pst;
return pst;
@ -6383,23 +6383,24 @@ locate_pdi_sibling (const struct die_reader_specs *reader,
return skip_children (reader, info_ptr);
}
/* Expand this partial symbol table into a full symbol table. PST is
/* Expand this partial symbol table into a full symbol table. SELF is
not NULL. */
static void
dwarf2_psymtab_to_symtab (struct objfile *objfile, struct partial_symtab *pst)
dwarf2_read_symtab (struct partial_symtab *self,
struct objfile *objfile)
{
if (pst->readin)
if (self->readin)
{
warning (_("bug: psymtab for %s is already read in."),
pst->filename);
self->filename);
}
else
{
if (info_verbose)
{
printf_filtered (_("Reading in symbols for %s..."),
pst->filename);
self->filename);
gdb_flush (gdb_stdout);
}
@ -6422,7 +6423,7 @@ dwarf2_psymtab_to_symtab (struct objfile *objfile, struct partial_symtab *pst)
dwarf2_per_objfile->reading_partial_symbols = 0;
psymtab_to_symtab_1 (pst);
psymtab_to_symtab_1 (self);
/* Finish up the debug error message. */
if (info_verbose)