* {dbxread.c, dwarfread.c} (read_ofile_symtab): Rewrite to take

single parameter, the pointer to the partial symtab, rather than
	a bunch of args that are derived from the partial symtab.  Change
	prototypes and callers to match.
This commit is contained in:
Fred Fish 1993-05-31 00:21:41 +00:00
parent 2707b48a61
commit c701c14c41
2 changed files with 13 additions and 9 deletions

View File

@ -1,5 +1,10 @@
Sun May 30 15:35:21 1993 Fred Fish (fnf@cygnus.com) Sun May 30 15:35:21 1993 Fred Fish (fnf@cygnus.com)
* {dbxread.c, dwarfread.c} (read_ofile_symtab): Rewrite to take
single parameter, the pointer to the partial symtab, rather than
a bunch of args that are derived from the partial symtab. Change
prototypes and callers to match.
* dbxread.c (read_ofile_symtab): Remove "#if 1" around code to * dbxread.c (read_ofile_symtab): Remove "#if 1" around code to
set demangling style automatically. set demangling style automatically.
* defs.h (CPLUS_MARKER): Clarify comment that this is only for * defs.h (CPLUS_MARKER): Clarify comment that this is only for

View File

@ -495,7 +495,7 @@ dwarf_psymtab_to_symtab PARAMS ((struct partial_symtab *));
static void static void
psymtab_to_symtab_1 PARAMS ((struct partial_symtab *)); psymtab_to_symtab_1 PARAMS ((struct partial_symtab *));
static struct symtab * static void
read_ofile_symtab PARAMS ((struct partial_symtab *)); read_ofile_symtab PARAMS ((struct partial_symtab *));
static void static void
@ -2300,19 +2300,18 @@ LOCAL FUNCTION
SYNOPSIS SYNOPSIS
static struct symtab *read_ofile_symtab (struct partial_symtab *pst) static void read_ofile_symtab (struct partial_symtab *pst)
DESCRIPTION DESCRIPTION
When expanding a partial symbol table entry to a full symbol table When expanding a partial symbol table entry to a full symbol table
entry, this is the function that gets called to read in the symbols entry, this is the function that gets called to read in the symbols
for the compilation unit. for the compilation unit. A pointer to the newly constructed symtab,
which is now the new first one on the objfile's symtab list, is
Returns a pointer to the newly constructed symtab (which is now stashed in the partial symbol table entry.
the new first one on the objfile's symtab list).
*/ */
static struct symtab * static void
read_ofile_symtab (pst) read_ofile_symtab (pst)
struct partial_symtab *pst; struct partial_symtab *pst;
{ {
@ -2372,7 +2371,7 @@ read_ofile_symtab (pst)
process_dies (dbbase, dbbase + dbsize, pst -> objfile); process_dies (dbbase, dbbase + dbsize, pst -> objfile);
do_cleanups (back_to); do_cleanups (back_to);
current_objfile = NULL; current_objfile = NULL;
return (pst -> objfile -> symtabs); pst -> symtab = pst -> objfile -> symtabs;
} }
/* /*
@ -2432,7 +2431,7 @@ psymtab_to_symtab_1 (pst)
{ {
buildsym_init (); buildsym_init ();
old_chain = make_cleanup (really_free_pendings, 0); old_chain = make_cleanup (really_free_pendings, 0);
pst -> symtab = read_ofile_symtab (pst); read_ofile_symtab (pst);
if (info_verbose) if (info_verbose)
{ {
printf_filtered ("%d DIE's, sorting...", diecount); printf_filtered ("%d DIE's, sorting...", diecount);