summaryrefslogtreecommitdiff
path: root/gdb/dwarfread.c
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1993-05-31 00:21:41 +0000
committerFred Fish <fnf@specifix.com>1993-05-31 00:21:41 +0000
commitc701c14c41914d9a32bde5159fbc3d6270f1fff3 (patch)
tree282eeae1341f3d2a04b7887656336f2f00be9a67 /gdb/dwarfread.c
parent2707b48a6131f69f88c7e416700e7e2a16ddeba9 (diff)
downloadbinutils-gdb-c701c14c41914d9a32bde5159fbc3d6270f1fff3.tar.gz
* {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.
Diffstat (limited to 'gdb/dwarfread.c')
-rw-r--r--gdb/dwarfread.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/gdb/dwarfread.c b/gdb/dwarfread.c
index 5dc0c30717f..b9872229e15 100644
--- a/gdb/dwarfread.c
+++ b/gdb/dwarfread.c
@@ -495,7 +495,7 @@ dwarf_psymtab_to_symtab PARAMS ((struct partial_symtab *));
static void
psymtab_to_symtab_1 PARAMS ((struct partial_symtab *));
-static struct symtab *
+static void
read_ofile_symtab PARAMS ((struct partial_symtab *));
static void
@@ -2300,19 +2300,18 @@ LOCAL FUNCTION
SYNOPSIS
- static struct symtab *read_ofile_symtab (struct partial_symtab *pst)
+ static void read_ofile_symtab (struct partial_symtab *pst)
DESCRIPTION
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
- for the compilation unit.
-
- Returns a pointer to the newly constructed symtab (which is now
- the new first one on the objfile's symtab list).
+ 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
+ stashed in the partial symbol table entry.
*/
-static struct symtab *
+static void
read_ofile_symtab (pst)
struct partial_symtab *pst;
{
@@ -2372,7 +2371,7 @@ read_ofile_symtab (pst)
process_dies (dbbase, dbbase + dbsize, pst -> objfile);
do_cleanups (back_to);
current_objfile = NULL;
- return (pst -> objfile -> symtabs);
+ pst -> symtab = pst -> objfile -> symtabs;
}
/*
@@ -2432,7 +2431,7 @@ psymtab_to_symtab_1 (pst)
{
buildsym_init ();
old_chain = make_cleanup (really_free_pendings, 0);
- pst -> symtab = read_ofile_symtab (pst);
+ read_ofile_symtab (pst);
if (info_verbose)
{
printf_filtered ("%d DIE's, sorting...", diecount);