diff options
author | Fred Fish <fnf@specifix.com> | 1995-12-21 04:08:27 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1995-12-21 04:08:27 +0000 |
commit | 2dd30c722bd69b3086430017eb2b8c50956c0745 (patch) | |
tree | 3f18a341d467d3885df3aef4db28191e5ba0ff43 /gdb/symfile.c | |
parent | 0b0124c6ccddb977b89fee805b7109fb276831f9 (diff) | |
download | gdb-2dd30c722bd69b3086430017eb2b8c50956c0745.zip gdb-2dd30c722bd69b3086430017eb2b8c50956c0745.tar.gz gdb-2dd30c722bd69b3086430017eb2b8c50956c0745.tar.bz2 |
* defs.h: Delete extraneous whitespace at end of file.
* symfile.h: Move #include of demangle.h outside conditional.
* objfiles.h (struct objstats, OBJSTAT, OBJSTATS): New struct
and macros to hold per-objfile statistics for internal instrumentation.
(struct objfile): Add OBJSTATS member, which is optional.
* buildsym.h (next_symbol_text_func): Now takes objfile argument.
Also update copyright to 1995.
* dbxread.c (dbx_next_symbol_text): Now takes objfile argument.
(dbx_symfile_init, coffstab_build_psymtabs, elfstab_build_psymtabs,
stabsect_build_psymtabs): Accumulate string table size.
(dbx_next_symbol_text, read_dbx_symtab, read_ofile_symtab):
Accumulate number of stabs symbols read.
* dwarfread.c (new_symbol, symthesize_typedef):
Accumulate number of full symbols created.
* gdbtypes.c (alloc_type): Accumulate number of types.
* maint.c (maintenance_print_statistics): New function.
* mdebugread.c (mdebug_next_symbol_text): Now takes objfile argument.
* minsyms.c (prim_record_minimal_symbol_and_info): Accumulate
number of minimal symbols read.
* os9kread.c (read_os9k_psymtab): next_symbol_text takes objfile arg.
* partial-stab.h: next_symbol_text takes objfile arg.
* stabsread.c (error_type, STABS_CONTINUE): Now takes objfile arg and
uses it to call next_symbol_text.
* symfile.c (add_psymbol_to_list, add_psymbol_addr_to_list):
Accumulate number of partial symbols created.
* symfile.h (ADD_PSYMBOL_VT_TO_LIST): Accumulate number of partial
symbols created.
* symmisc.c (print_objfile_statistics): Print the per-objfile
internal instrumentation statistics gathered.
* xcoffread.c (xcoff_next_symbol_text): Now takes objfile argument.
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r-- | gdb/symfile.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c index e297190..e0848cc 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -34,7 +34,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "demangle.h" #include "inferior.h" /* for write_pc */ -#include <obstack.h> +#include "obstack.h" #include <assert.h> #include <sys/types.h> @@ -1652,6 +1652,7 @@ add_psymbol_to_list (name, namelength, namespace, class, list, val, language, PSYMBOL_NAMESPACE (psym) = namespace; PSYMBOL_CLASS (psym) = class; SYMBOL_INIT_LANGUAGE_SPECIFIC (psym, language); + OBJSTAT (objfile, psyms++); } /* Add a symbol with a CORE_ADDR value to a psymtab. */ @@ -1687,6 +1688,7 @@ add_psymbol_addr_to_list (name, namelength, namespace, class, list, val, PSYMBOL_NAMESPACE (psym) = namespace; PSYMBOL_CLASS (psym) = class; SYMBOL_INIT_LANGUAGE_SPECIFIC (psym, language); + OBJSTAT (objfile, psyms++); } #endif /* !INLINE_ADD_PSYMBOL */ |