diff options
author | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2004-02-09 23:50:55 +0000 |
---|---|---|
committer | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2004-02-09 23:50:55 +0000 |
commit | e36310bc531ae81a439a925f3259d50671ff2085 (patch) | |
tree | 01c8106031b30386cf94898ee235fe4a0b93d9a5 /gdb/objfiles.c | |
parent | 133ed28118e101f911bc317504e7dde86061c63a (diff) | |
download | gdb-e36310bc531ae81a439a925f3259d50671ff2085.tar.gz |
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/objfiles.c')
-rw-r--r-- | gdb/objfiles.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/objfiles.c b/gdb/objfiles.c index 1500c197254..03a88ebf22b 100644 --- a/gdb/objfiles.c +++ b/gdb/objfiles.c @@ -165,8 +165,9 @@ allocate_objfile (bfd *abfd, int flags) objfile->md = NULL; objfile->psymbol_cache = bcache_xmalloc (); objfile->macro_cache = bcache_xmalloc (); - obstack_specify_allocation (&objfile->objfile_obstack, 0, 0, xmalloc, - xfree); + /* We could use obstack_specify_allocation here instead, but + gdb_obstack.h specifies the alloc/dealloc functions. */ + obstack_init (&objfile->objfile_obstack); terminate_minimal_symbol_table (objfile); } |