gdb/
* 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:
parent
0de5618e23
commit
257e7a0972
7 changed files with 65 additions and 37 deletions
|
@ -270,23 +270,23 @@ static void handle_psymbol_enumerators (struct objfile *, FDR *, int,
|
|||
|
||||
static char *mdebug_next_symbol_text (struct objfile *);
|
||||
|
||||
/* Exported procedure: Builds a symtab from the PST partial one.
|
||||
Restores the environment in effect when PST was created, delegates
|
||||
/* Exported procedure: Builds a symtab from the partial symtab SELF.
|
||||
Restores the environment in effect when SELF was created, delegates
|
||||
most of the work to an ancillary procedure, and sorts
|
||||
and reorders the symtab list at the end. PST is not NULL. */
|
||||
and reorders the symtab list at the end. SELF is not NULL. */
|
||||
|
||||
static void
|
||||
mdebug_psymtab_to_symtab (struct objfile *objfile, struct partial_symtab *pst)
|
||||
mdebug_read_symtab (struct partial_symtab *self, struct objfile *objfile)
|
||||
{
|
||||
if (info_verbose)
|
||||
{
|
||||
printf_filtered (_("Reading in symbols for %s..."), pst->filename);
|
||||
printf_filtered (_("Reading in symbols for %s..."), self->filename);
|
||||
gdb_flush (gdb_stdout);
|
||||
}
|
||||
|
||||
next_symbol_text_func = mdebug_next_symbol_text;
|
||||
|
||||
psymtab_to_symtab_1 (objfile, pst, pst->filename);
|
||||
psymtab_to_symtab_1 (objfile, self, self->filename);
|
||||
|
||||
/* Match with global symbols. This only needs to be done once,
|
||||
after all of the symtabs and dependencies have been read in. */
|
||||
|
@ -2696,7 +2696,7 @@ parse_partial_symbols (struct objfile *objfile)
|
|||
PENDING_LIST (pst) = pending_list;
|
||||
|
||||
/* The way to turn this into a symtab is to call... */
|
||||
pst->read_symtab = mdebug_psymtab_to_symtab;
|
||||
pst->read_symtab = mdebug_read_symtab;
|
||||
|
||||
/* Set up language for the pst.
|
||||
The language from the FDR is used if it is unambigious (e.g. cfront
|
||||
|
@ -4796,7 +4796,7 @@ new_psymtab (char *name, struct objfile *objfile)
|
|||
PENDING_LIST (psymtab) = pending_list;
|
||||
|
||||
/* The way to turn this into a symtab is to call... */
|
||||
psymtab->read_symtab = mdebug_psymtab_to_symtab;
|
||||
psymtab->read_symtab = mdebug_read_symtab;
|
||||
return (psymtab);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue