aboutsummaryrefslogtreecommitdiff
path: root/gdb/bcache.c
diff options
context:
space:
mode:
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>2004-02-09 23:50:55 +0000
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>2004-02-09 23:50:55 +0000
commit1ab216172b8ff47b90b51c019e1d14edcc770b16 (patch)
tree90e133848c49dcabf37dfec851951d6e37a248c5 /gdb/bcache.c
parentf80e2ec4e818045849c26d58c57d25457c13a321 (diff)
downloadfsf-binutils-gdb-1ab216172b8ff47b90b51c019e1d14edcc770b16.zip
fsf-binutils-gdb-1ab216172b8ff47b90b51c019e1d14edcc770b16.tar.gz
fsf-binutils-gdb-1ab216172b8ff47b90b51c019e1d14edcc770b16.tar.bz2
2004-02-09 Elena Zannoni <ezannoni@redhat.com>
* 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.
Diffstat (limited to 'gdb/bcache.c')
-rw-r--r--gdb/bcache.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/bcache.c b/gdb/bcache.c
index b1d9de8..cadadb5 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;
}