aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarfread.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1995-05-13 20:39:21 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1995-05-13 20:39:21 +0000
commita367db8959eea30d209a2e19e31e6408e345389f (patch)
tree3ca87e33674929c38cdf31772c33b7f78b96987c /gdb/dwarfread.c
parentb297038d0b040fab7797bb8e1303f320f9b77ace (diff)
downloadgdb-a367db8959eea30d209a2e19e31e6408e345389f.zip
gdb-a367db8959eea30d209a2e19e31e6408e345389f.tar.gz
gdb-a367db8959eea30d209a2e19e31e6408e345389f.tar.bz2
* rs6000-tdep.c (find_toc_address): Revise comment.
* symfile.c, symfile.h (init_psymbol_list): New function; consolidate duplicated copies from os9kread.c, dbxread.c and dwarfread.c. * defs.h: Declare info_verbose. * xcoffread.c: Extensive changes to support psymtabs.
Diffstat (limited to 'gdb/dwarfread.c')
-rw-r--r--gdb/dwarfread.c51
1 files changed, 0 insertions, 51 deletions
diff --git a/gdb/dwarfread.c b/gdb/dwarfread.c
index 7b2cf63..23f0a00 100644
--- a/gdb/dwarfread.c
+++ b/gdb/dwarfread.c
@@ -474,9 +474,6 @@ static void
add_partial_symbol PARAMS ((struct dieinfo *, struct objfile *));
static void
-init_psymbol_list PARAMS ((struct objfile *, int));
-
-static void
basicdieinfo PARAMS ((struct dieinfo *, char *, struct objfile *));
static void
@@ -2475,54 +2472,6 @@ dwarf_psymtab_to_symtab (pst)
LOCAL FUNCTION
- init_psymbol_list -- initialize storage for partial symbols
-
-SYNOPSIS
-
- static void init_psymbol_list (struct objfile *objfile, int total_symbols)
-
-DESCRIPTION
-
- Initializes storage for all of the partial symbols that will be
- created by dwarf_build_psymtabs and subsidiaries.
- */
-
-static void
-init_psymbol_list (objfile, total_symbols)
- struct objfile *objfile;
- int total_symbols;
-{
- /* Free any previously allocated psymbol lists. */
-
- if (objfile -> global_psymbols.list)
- {
- mfree (objfile -> md, (PTR)objfile -> global_psymbols.list);
- }
- if (objfile -> static_psymbols.list)
- {
- mfree (objfile -> md, (PTR)objfile -> static_psymbols.list);
- }
-
- /* Current best guess is that there are approximately a twentieth
- of the total symbols (in a debugging file) are global or static
- oriented symbols */
-
- objfile -> global_psymbols.size = total_symbols / 10;
- objfile -> static_psymbols.size = total_symbols / 10;
- objfile -> global_psymbols.next =
- objfile -> global_psymbols.list = (struct partial_symbol *)
- xmmalloc (objfile -> md, objfile -> global_psymbols.size
- * sizeof (struct partial_symbol));
- objfile -> static_psymbols.next =
- objfile -> static_psymbols.list = (struct partial_symbol *)
- xmmalloc (objfile -> md, objfile -> static_psymbols.size
- * sizeof (struct partial_symbol));
-}
-
-/*
-
-LOCAL FUNCTION
-
add_enum_psymbol -- add enumeration members to partial symbol table
DESCRIPTION