summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2002-10-19 23:05:27 +0000
committerMark Kettenis <kettenis@gnu.org>2002-10-19 23:05:27 +0000
commitf5fd69f4612dbaf683d7f0a91970510deec7ff57 (patch)
treebbf10c82b780c7f5e26d2350819c3a44b14c5b5a
parent36a1ab58dd87254f07561aa038d472fd9b1111d8 (diff)
downloadgdb-drow-cplus-merge-20021020.tar.gz
* solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmallocdrow-cplus-merge-20021020
to allocate partial syms and macro byte caches.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/solib-sunos.c6
2 files changed, 7 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 406040687f9..892f01fcb62 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2002-10-20 Mark Kettenis <kettenis@gnu.org>
+
+ * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
+ to allocate partial syms and macro byte caches.
+
2002-10-18 David Carlton <carlton@math.stanford.edu>
* symtab.h: Delete 'struct source' and 'struct sourcevector'.
diff --git a/gdb/solib-sunos.c b/gdb/solib-sunos.c
index 374ec253a01..6ffecb5a3a0 100644
--- a/gdb/solib-sunos.c
+++ b/gdb/solib-sunos.c
@@ -135,10 +135,8 @@ allocate_rt_common_objfile (void)
objfile = (struct objfile *) xmalloc (sizeof (struct objfile));
memset (objfile, 0, sizeof (struct objfile));
objfile->md = NULL;
- obstack_specify_allocation (&objfile->psymbol_cache.cache, 0, 0,
- xmalloc, xfree);
- obstack_specify_allocation (&objfile->macro_cache.cache, 0, 0,
- xmalloc, xfree);
+ objfile->psymbol_cache = bcache_xmalloc ();
+ objfile->macro_cache = bcache_xmalloc ();
obstack_specify_allocation (&objfile->psymbol_obstack, 0, 0, xmalloc,
xfree);
obstack_specify_allocation (&objfile->symbol_obstack, 0, 0, xmalloc,