2004-02-07 Elena Zannoni <ezannoni@redhat.com>
[deliverable/binutils-gdb.git] / gdb / symfile.c
index 30330afaabc6c6a53ef20821e5ef326213532b9d..13bfec3e288acd7181c472af0c419ab587967cac 100644 (file)
@@ -1912,7 +1912,6 @@ reread_symbols (void)
                  objfile->demangled_names_hash = NULL;
                }
              obstack_free (&objfile->objfile_obstack, 0);
-             obstack_free (&objfile->symbol_obstack, 0);
              objfile->sections = NULL;
              objfile->symtabs = NULL;
              objfile->psymtabs = NULL;
@@ -1940,8 +1939,6 @@ reread_symbols (void)
              objfile->macro_cache = bcache_xmalloc ();
              obstack_specify_allocation (&objfile->objfile_obstack, 0, 0,
                                          xmalloc, xfree);
-             obstack_specify_allocation (&objfile->symbol_obstack, 0, 0,
-                                         xmalloc, xfree);
              if (build_objfile_section_table (objfile))
                {
                  error ("Can't find the file sections in `%s': %s",
@@ -2238,14 +2235,14 @@ allocate_symtab (char *filename, struct objfile *objfile)
   struct symtab *symtab;
 
   symtab = (struct symtab *)
-    obstack_alloc (&objfile->symbol_obstack, sizeof (struct symtab));
+    obstack_alloc (&objfile->objfile_obstack, sizeof (struct symtab));
   memset (symtab, 0, sizeof (*symtab));
   symtab->filename = obsavestring (filename, strlen (filename),
-                                  &objfile->symbol_obstack);
+                                  &objfile->objfile_obstack);
   symtab->fullname = NULL;
   symtab->language = deduce_language_from_filename (filename);
   symtab->debugformat = obsavestring ("unknown", 7,
-                                     &objfile->symbol_obstack);
+                                     &objfile->objfile_obstack);
 
   /* Hook it to the objfile it comes from */
 
This page took 0.024846 seconds and 4 git commands to generate.