summaryrefslogtreecommitdiff
path: root/gdb/solib-sunos.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/solib-sunos.c')
-rw-r--r--gdb/solib-sunos.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/gdb/solib-sunos.c b/gdb/solib-sunos.c
index e66463147cc..ef6069ec6ed 100644
--- a/gdb/solib-sunos.c
+++ b/gdb/solib-sunos.c
@@ -147,9 +147,6 @@ allocate_rt_common_objfile (void)
objfile->macro_cache = bcache_xmalloc ();
obstack_specify_allocation (&objfile->objfile_obstack, 0, 0, xmalloc,
xfree);
- obstack_specify_allocation (&objfile->symbol_obstack, 0, 0, xmalloc,
- xfree);
-
objfile->name = mstrsave (objfile->md, "rt_common");
/* Add this file onto the tail of the linked list of other such files. */
@@ -184,8 +181,8 @@ solib_add_common_symbols (CORE_ADDR rtc_symp)
if (rt_common_objfile != NULL && rt_common_objfile->minimal_symbol_count)
{
- obstack_free (&rt_common_objfile->symbol_obstack, 0);
- obstack_specify_allocation (&rt_common_objfile->symbol_obstack, 0, 0,
+ obstack_free (&rt_common_objfile->objfile_obstack, 0);
+ obstack_specify_allocation (&rt_common_objfile->objfile_obstack, 0, 0,
xmalloc, xfree);
rt_common_objfile->minimal_symbol_count = 0;
rt_common_objfile->msymbols = NULL;