From e36310bc531ae81a439a925f3259d50671ff2085 Mon Sep 17 00:00:00 2001 From: Elena Zannoni Date: Mon, 9 Feb 2004 23:50:55 +0000 Subject: 2004-02-09 Elena Zannoni * bcache.c (bcache_xmalloc): Use obstack_init instead of obstack_specify_allocation. * objfiles.c (allocate_objfile): Ditto. * solib-sunos.c (solib_add_common_symbols) (allocate_rt_common_objfile): Ditto. * symfile.c (reread_symbols): Ditto. * gdb_obstack.h: Add comment. --- gdb/bcache.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gdb/bcache.c') diff --git a/gdb/bcache.c b/gdb/bcache.c index b1d9de8700f..cadadb5cce6 100644 --- a/gdb/bcache.c +++ b/gdb/bcache.c @@ -266,7 +266,10 @@ bcache_xmalloc (void) { /* Allocate the bcache pre-zeroed. */ struct bcache *b = XCALLOC (1, struct bcache); - obstack_specify_allocation (&b->cache, 0, 0, xmalloc, xfree); + /* We could use obstack_specify_allocation here instead, but + gdb_obstack.h specifies the allocation/deallocation + functions. */ + obstack_init (&b->cache); return b; } -- cgit v1.2.1