From d3d55eeb77a7ca75c6ae21c3a3b964c59b14574b Mon Sep 17 00:00:00 2001 From: Elena Zannoni Date: Wed, 5 Sep 2001 02:54:15 +0000 Subject: [PATCH] 2001-09-04 Elena Zannoni From Daniel Jacobowitz * dbxread.c (free_header_files): Make global. (init_header_files): Likewise. * stabsread.h (free_header_files): Add prototype. (init_header_files): Likewise. * mdebugread.c (mdebug_build_psymtabs): Initialize properly before using the stabs debug reader. --- gdb/ChangeLog | 10 ++++++++++ gdb/dbxread.c | 8 ++------ gdb/mdebugread.c | 5 +++++ gdb/stabsread.h | 4 ++++ 4 files changed, 21 insertions(+), 6 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 629cd043b45..9b6a825db38 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,13 @@ +2001-09-04 Elena Zannoni + + From Daniel Jacobowitz + * dbxread.c (free_header_files): Make global. + (init_header_files): Likewise. + * stabsread.h (free_header_files): Add prototype. + (init_header_files): Likewise. + * mdebugread.c (mdebug_build_psymtabs): Initialize + properly before using the stabs debug reader. + 2001-09-04 Elena Zannoni From Daniel Jacobowitz diff --git a/gdb/dbxread.c b/gdb/dbxread.c index ba60fe10511..da55dde3723 100644 --- a/gdb/dbxread.c +++ b/gdb/dbxread.c @@ -270,10 +270,6 @@ extern void _initialize_dbxread (void); static void process_now (struct objfile *); -static void free_header_files (void); - -static void init_header_files (void); - static void read_ofile_symtab (struct partial_symtab *); static void dbx_psymtab_to_symtab (struct partial_symtab *); @@ -319,7 +315,7 @@ static struct partial_symtab *start_psymtab (struct objfile *, char *, /* Free up old header file tables */ -static void +void free_header_files (void) { if (this_object_header_files) @@ -332,7 +328,7 @@ free_header_files (void) /* Allocate new header file tables */ -static void +void init_header_files (void) { n_allocated_this_object_header_files = 10; diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c index 6d1078ae09c..ed7e490850e 100644 --- a/gdb/mdebugread.c +++ b/gdb/mdebugread.c @@ -491,6 +491,11 @@ mdebug_build_psymtabs (struct objfile *objfile, debug_swap = swap; debug_info = info; + stabsread_new_init (); + buildsym_new_init (); + free_header_files (); + init_header_files (); + /* Make sure all the FDR information is swapped in. */ if (info->fdr == (FDR *) NULL) { diff --git a/gdb/stabsread.h b/gdb/stabsread.h index fd76e17f39c..59504da552b 100644 --- a/gdb/stabsread.h +++ b/gdb/stabsread.h @@ -219,4 +219,8 @@ extern struct symbol *ref_search (int); extern int resolve_cfront_continuation (struct objfile *objfile, struct symbol *sym, char *p); +extern void free_header_files (void); + +extern void init_header_files (void); + #undef EXTERN -- 2.30.2