2001-09-04 Elena Zannoni <ezannoni@redhat.com>
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>
Wed, 5 Sep 2001 02:54:15 +0000 (02:54 +0000)
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>
Wed, 5 Sep 2001 02:54:15 +0000 (02:54 +0000)
From Daniel Jacobowitz  <drow@mvista.com>
* 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
gdb/dbxread.c
gdb/mdebugread.c
gdb/stabsread.h

index 629cd043b458ccbdacd9f18b6d89032b7f06fb2b..9b6a825db38e4022637db40d5f4fadc556d2aeb2 100644 (file)
@@ -1,3 +1,13 @@
+2001-09-04  Elena Zannoni  <ezannoni@redhat.com>
+
+       From Daniel Jacobowitz  <drow@mvista.com>       
+       * 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  <ezannoni@redhat.com>
 
        From Daniel Jacobowitz  <drow@mvista.com>       
index ba60fe10511c21a53ae3d248e1d1ff5e7e186b5d..da55dde3723adbb84fedb704783c592d41524a59 100644 (file)
@@ -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;
index 6d1078ae09c5c112d47ac78cb835ba2adb856c35..ed7e490850e050c1c8d55b13f66cd2fb8540907e 100644 (file)
@@ -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)
     {
index fd76e17f39cdc36b2a8bf409a93292e9b4f5eb52..59504da552b563fb5ba21005eec911a7cec9c9d5 100644 (file)
@@ -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