aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib-sunos.c
diff options
context:
space:
mode:
authormatt rice <ratmice@gmail.com>2011-08-27 10:28:31 +0000
committermatt rice <ratmice@gmail.com>2011-08-27 10:28:31 +0000
commit5068b8e88dfae4eb3142eb19e8f599e7ba9f85ef (patch)
treef3ad6ef0959db2f2552cc6deab91a798d6a8cad5 /gdb/solib-sunos.c
parent8ea8cd50dda899e110495d5d4251706bc7c8bb1e (diff)
downloadgdb-5068b8e88dfae4eb3142eb19e8f599e7ba9f85ef.zip
gdb-5068b8e88dfae4eb3142eb19e8f599e7ba9f85ef.tar.gz
gdb-5068b8e88dfae4eb3142eb19e8f599e7ba9f85ef.tar.bz2
* solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
bcache_xmalloc, replace bcache_xmalloc with call to psymbol_bcache_init for psymbol_cache. * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
Diffstat (limited to 'gdb/solib-sunos.c')
-rw-r--r--gdb/solib-sunos.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/solib-sunos.c b/gdb/solib-sunos.c
index 405ca4f..28e9a21 100644
--- a/gdb/solib-sunos.c
+++ b/gdb/solib-sunos.c
@@ -189,9 +189,9 @@ allocate_rt_common_objfile (void)
objfile = (struct objfile *) xmalloc (sizeof (struct objfile));
memset (objfile, 0, sizeof (struct objfile));
- objfile->psymbol_cache = bcache_xmalloc ();
- objfile->macro_cache = bcache_xmalloc ();
- objfile->filename_cache = bcache_xmalloc ();
+ objfile->psymbol_cache = psymbol_bcache_init ();
+ objfile->macro_cache = bcache_xmalloc (NULL, NULL);
+ objfile->filename_cache = bcache_xmalloc (NULL, NULL);
obstack_init (&objfile->objfile_obstack);
objfile->name = xstrdup ("rt_common");