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/gdb_obstack.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gdb/gdb_obstack.h') diff --git a/gdb/gdb_obstack.h b/gdb/gdb_obstack.h index 237830e1768..0dcfc4ff780 100644 --- a/gdb/gdb_obstack.h +++ b/gdb/gdb_obstack.h @@ -26,6 +26,13 @@ /* Unless explicitly specified, GDB obstacks always use xmalloc() and xfree(). */ +/* Note: ezannoni 2004-02-09: One could also specify the allocation + functions using a special init function for each obstack, + obstack_specify_allocation. However we just use obstack_init and + let these defines here do the job. While one could argue the + superiority of one approach over the other, we just chose one + throughout. */ + #define obstack_chunk_alloc xmalloc #define obstack_chunk_free xfree -- cgit v1.2.1