mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-30 15:56:36 +08:00
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.
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user