* solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
to allocate partial syms and macro byte caches.
This commit is contained in:
parent
5d603aa984
commit
ce1ed4854e
|
@ -1,3 +1,8 @@
|
||||||
|
2002-10-20 Mark Kettenis <kettenis@gnu.org>
|
||||||
|
|
||||||
|
* solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
|
||||||
|
to allocate partial syms and macro byte caches.
|
||||||
|
|
||||||
2002-10-18 David Carlton <carlton@math.stanford.edu>
|
2002-10-18 David Carlton <carlton@math.stanford.edu>
|
||||||
|
|
||||||
* symtab.h: Delete 'struct source' and 'struct sourcevector'.
|
* symtab.h: Delete 'struct source' and 'struct sourcevector'.
|
||||||
|
|
|
@ -135,10 +135,8 @@ allocate_rt_common_objfile (void)
|
||||||
objfile = (struct objfile *) xmalloc (sizeof (struct objfile));
|
objfile = (struct objfile *) xmalloc (sizeof (struct objfile));
|
||||||
memset (objfile, 0, sizeof (struct objfile));
|
memset (objfile, 0, sizeof (struct objfile));
|
||||||
objfile->md = NULL;
|
objfile->md = NULL;
|
||||||
obstack_specify_allocation (&objfile->psymbol_cache.cache, 0, 0,
|
objfile->psymbol_cache = bcache_xmalloc ();
|
||||||
xmalloc, xfree);
|
objfile->macro_cache = bcache_xmalloc ();
|
||||||
obstack_specify_allocation (&objfile->macro_cache.cache, 0, 0,
|
|
||||||
xmalloc, xfree);
|
|
||||||
obstack_specify_allocation (&objfile->psymbol_obstack, 0, 0, xmalloc,
|
obstack_specify_allocation (&objfile->psymbol_obstack, 0, 0, xmalloc,
|
||||||
xfree);
|
xfree);
|
||||||
obstack_specify_allocation (&objfile->symbol_obstack, 0, 0, xmalloc,
|
obstack_specify_allocation (&objfile->symbol_obstack, 0, 0, xmalloc,
|
||||||
|
|
Loading…
Reference in New Issue