]> Git Repo - binutils.git/blobdiff - gdb/objfiles.c
Enable custom bcache hash function.
[binutils.git] / gdb / objfiles.c
index a5e07e10d61058adcf236371552760bc568211f2..c55992ef9a06ddcf21a9b2e9fa113ab8d00eb852 100644 (file)
@@ -199,9 +199,9 @@ allocate_objfile (bfd *abfd, int flags)
   struct objfile *objfile;
 
   objfile = (struct objfile *) xzalloc (sizeof (struct objfile));
-  objfile->psymbol_cache = bcache_xmalloc ();
-  objfile->macro_cache = bcache_xmalloc ();
-  objfile->filename_cache = bcache_xmalloc ();
+  objfile->psymbol_cache = bcache_xmalloc (psymbol_hash, psymbol_compare);
+  objfile->macro_cache = bcache_xmalloc (NULL, NULL);
+  objfile->filename_cache = bcache_xmalloc (NULL, NULL);
   /* We could use obstack_specify_allocation here instead, but
      gdb_obstack.h specifies the alloc/dealloc functions.  */
   obstack_init (&objfile->objfile_obstack);
This page took 0.025448 seconds and 4 git commands to generate.