[PATCH] Fix bcache opaqueification lossage
Mark Kettenis
kettenis@chello.nl
Sat Oct 19 16:08:00 GMT 2002
Somehow this was overlooked. Checked in on both mainline and branch.
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
to allocate partial syms and macro byte caches.
Index: solib-sunos.c
===================================================================
RCS file: /cvs/src/src/gdb/solib-sunos.c,v
retrieving revision 1.4
diff -u -p -r1.4 solib-sunos.c
--- solib-sunos.c 15 May 2002 21:19:20 -0000 1.4
+++ solib-sunos.c 19 Oct 2002 23:04:21 -0000
@@ -135,10 +135,8 @@ allocate_rt_common_objfile (void)
objfile = (struct objfile *) xmalloc (sizeof (struct objfile));
memset (objfile, 0, sizeof (struct objfile));
objfile->md = NULL;
- obstack_specify_allocation (&objfile->psymbol_cache.cache, 0, 0,
- xmalloc, xfree);
- obstack_specify_allocation (&objfile->macro_cache.cache, 0, 0,
- xmalloc, xfree);
+ objfile->psymbol_cache = bcache_xmalloc ();
+ objfile->macro_cache = bcache_xmalloc ();
obstack_specify_allocation (&objfile->psymbol_obstack, 0, 0, xmalloc,
xfree);
obstack_specify_allocation (&objfile->symbol_obstack, 0, 0, xmalloc,
More information about the Gdb-patches
mailing list