From 4137c5fc0d1b24d00ceec0981ea5d9da77477f0e Mon Sep 17 00:00:00 2001 From: John Gilmore Date: Sun, 27 Oct 1991 22:26:02 +0000 Subject: * buildsym.c: Break out initial malloc sizes. (record_line): Record directly in a subfile. Alloc on demand. (compare_line_numbers): Add from xcoffread.c. (end_symtab): New params say whether to sort pendings and linetable. Patch block stabs if defined. Shrink linetable before allocating the symtab. * buildsym.h: Delete line_vector* and prev_line_number. Add global_stabs and file_stabs for xcoffread. * dbxread.c (start_subfile): Move to buildsym. Change above calls. * symtab.h: LINETABLE(symtab) can now be null. Zap LINELIST. * symmisc.c, symtab.c: Cope with null LINETABLEs. --- gdb/symtab.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'gdb/symtab.h') diff --git a/gdb/symtab.h b/gdb/symtab.h index d220a8398ba..3e66624973d 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -514,7 +514,8 @@ struct symtab struct symtab *next; /* List of all symbol scope blocks for this symtab. */ struct blockvector *blockvector; - /* Table mapping core addresses to line numbers for this file. */ + /* Table mapping core addresses to line numbers for this file. + Can be NULL if none. */ struct linetable *linetable; /* Name of this source file. */ char *filename; @@ -636,7 +637,6 @@ int current_source_line; #define BLOCKLIST(symtab) (symtab)->blockvector #define BLOCKVECTOR(symtab) (symtab)->blockvector -#define LINELIST(symtab) (symtab)->linetable #define LINETABLE(symtab) (symtab)->linetable /* Macros normally used to access components of symbol table structures. */ @@ -916,9 +916,6 @@ void select_source_symtab ( char **make_symbol_completion_list (); -/* The entry point of a file we are reading. */ -extern CORE_ADDR entry_point; - /* Maximum and minimum values of built-in types */ #define MAX_OF_TYPE(t) \ TYPE_UNSIGNED(t) ? UMAX_OF_SIZE(TYPE_LENGTH(t)) : MAX_OF_SIZE(TYPE_LENGTH(t)) -- cgit v1.2.1