]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* symfile.c (reread_symbols): Update.
authorTom Tromey <tromey@redhat.com>
Mon, 18 Aug 2008 19:44:49 +0000 (19:44 +0000)
committerTom Tromey <tromey@redhat.com>
Mon, 18 Aug 2008 19:44:49 +0000 (19:44 +0000)
* solib-sunos.c (allocate_rt_common_objfile): Update.
* objfiles.c (allocate_objfile): Update.
* objfiles.h (struct objfile) <md, mmfd, deprecated_obj_private>:
Remove.

gdb/ChangeLog
gdb/objfiles.c
gdb/objfiles.h
gdb/solib-sunos.c
gdb/symfile.c

index 4ec6259157767f5da2684d3d9c4569f15e5d8985..bf32587e2b84466ba08208337e66c97da862a18f 100644 (file)
@@ -1,3 +1,11 @@
+2008-08-18  Tom Tromey  <tromey@redhat.com>
+
+       * symfile.c (reread_symbols): Update.
+       * solib-sunos.c (allocate_rt_common_objfile): Update.
+       * objfiles.c (allocate_objfile): Update.
+       * objfiles.h (struct objfile) <md, mmfd, deprecated_obj_private>:
+       Remove.
+
 2008-08-18  Tom Tromey  <tromey@redhat.com>
 
        * gdbtypes.c (copy_type_recursive): Allocate 'stored' on objfile's
index 68cec1b725af71895e556163417042b38eb3282d..2969a8aff432654a5bc457d14fa39c3535aa5ea6 100644 (file)
@@ -163,7 +163,6 @@ allocate_objfile (bfd *abfd, int flags)
     {
       objfile = (struct objfile *) xmalloc (sizeof (struct objfile));
       memset (objfile, 0, sizeof (struct objfile));
-      objfile->md = NULL;
       objfile->psymbol_cache = bcache_xmalloc ();
       objfile->macro_cache = bcache_xmalloc ();
       /* We could use obstack_specify_allocation here instead, but
index 7e39b07c5d3fb690cbda6d5d877f851efe95d78f..56a00f1b5a19e8920d87db5c813ac536cd7006c4 100644 (file)
@@ -293,18 +293,6 @@ struct objfile
 
     struct minimal_symbol *msymbol_demangled_hash[MINIMAL_SYMBOL_HASH_SIZE];
 
-    /* The mmalloc() malloc-descriptor for this objfile if we are using
-       the memory mapped malloc() package to manage storage for this objfile's
-       data.  NULL if we are not. */
-
-    void *md;
-
-    /* The file descriptor that was used to obtain the mmalloc descriptor
-       for this objfile.  If we call mmalloc_detach with the malloc descriptor
-       we should then close this file descriptor. */
-
-    int mmfd;
-
     /* Structure which keeps track of functions that manipulate objfile's
        of the same type as this objfile.  I.E. the function to read partial
        symbols for example.  Note that this structure is in statically
@@ -338,17 +326,10 @@ struct objfile
 
     void *deprecated_sym_private;
 
-    /* Hook for target-architecture-specific information.  This must
-       point to memory allocated on one of the obstacks in this objfile,
-       so that it gets freed automatically when reading a new object
-       file. */
-
-    void *deprecated_obj_private;
-
     /* Per objfile data-pointers required by other GDB modules.  */
     /* FIXME: kettenis/20030711: This mechanism could replace
-       deprecated_sym_stab_info, deprecated_sym_private and
-       deprecated_obj_private entirely.  */
+       deprecated_sym_stab_info and deprecated_sym_private
+       entirely.  */
 
     void **data;
     unsigned num_data;
index 0834d0fd19a7579879572d0c0c13768103276da4..554ffdbeb216cac8b920525b7205dcde3502dc6b 100644 (file)
@@ -184,7 +184,6 @@ allocate_rt_common_objfile (void)
 
   objfile = (struct objfile *) xmalloc (sizeof (struct objfile));
   memset (objfile, 0, sizeof (struct objfile));
-  objfile->md = NULL;
   objfile->psymbol_cache = bcache_xmalloc ();
   objfile->macro_cache = bcache_xmalloc ();
   obstack_init (&objfile->objfile_obstack);
index e0d94f3d722bf3a0f052809785ef84daae82b37f..b80ef2a93598f31490355181e36e242e3272d615 100644 (file)
@@ -2421,8 +2421,6 @@ reread_symbols (void)
                  (*objfile->sf->sym_finish) (objfile);
                }
 
-             /* We never make this a mapped file.  */
-             objfile->md = NULL;
              objfile->psymbol_cache = bcache_xmalloc ();
              objfile->macro_cache = bcache_xmalloc ();
              /* obstack_init also initializes the obstack so it is