diff options
author | Mark Kettenis <kettenis@gnu.org> | 2002-10-19 23:05:27 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2002-10-19 23:05:27 +0000 |
commit | ce1ed4854e07f253f4ed3a250f1e8f3b24107668 (patch) | |
tree | 2464b418802981b199c541ee7e79ce64b2401745 /gdb/solib-sunos.c | |
parent | 5d603aa984322b9ab70570671ce3f9dfe2a5d044 (diff) | |
download | gdb-ce1ed4854e07f253f4ed3a250f1e8f3b24107668.zip gdb-ce1ed4854e07f253f4ed3a250f1e8f3b24107668.tar.gz gdb-ce1ed4854e07f253f4ed3a250f1e8f3b24107668.tar.bz2 |
* solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
to allocate partial syms and macro byte caches.
Diffstat (limited to 'gdb/solib-sunos.c')
-rw-r--r-- | gdb/solib-sunos.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gdb/solib-sunos.c b/gdb/solib-sunos.c index 374ec25..6ffecb5 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, |