From: Mark Kettenis Date: Sun, 20 Oct 2002 11:31:50 +0000 (+0000) Subject: * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc X-Git-Tag: gdb_5_3-2002-12-12-release~104 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9a718bccf36c29c779e4060278b6232560e838ea;p=thirdparty%2Fbinutils-gdb.git * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc to allocate partial syms and macro byte caches. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index cfde49692a9..a7d36ddbc74 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2002-10-20 Mark Kettenis + + * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc + to allocate partial syms and macro byte caches. + 2002-10-02 Daniel Jacobowitz Fix PR gdb/778 diff --git a/gdb/solib-sunos.c b/gdb/solib-sunos.c index 374ec253a01..6ffecb5a3a0 100644 --- a/gdb/solib-sunos.c +++ b/gdb/solib-sunos.c @@ -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,