Use an accessor function for general_symbol_info::language
[deliverable/binutils-gdb.git] / gdb / symfile.c
index 965237191ad197e8c173f07c62c052ead83b95df..5ca89b45b350f1cb4ff71a7a6616aa7f21ec9105 100644 (file)
@@ -1251,7 +1251,7 @@ symbol_file_clear (int from_tty)
      objfiles get stale by free_all_objfiles.  */
   no_shared_libraries (NULL, from_tty);
 
-  free_all_objfiles ();
+  current_program_space->free_all_objfiles ();
 
   gdb_assert (symfile_objfile == NULL);
   if (from_tty)
@@ -1697,7 +1697,7 @@ set_initial_language (void)
       struct symbol *sym = lookup_symbol (name, NULL, VAR_DOMAIN, NULL).symbol;
 
       if (sym != NULL)
-       lang = SYMBOL_LANGUAGE (sym);
+       lang = sym->language ();
     }
 
   if (lang == language_unknown)
This page took 0.024139 seconds and 4 git commands to generate.