Replace the block_found global with explicit data-flow
[deliverable/binutils-gdb.git] / gdb / symfile.c
index 0c35ffa3f0013065fdfd14852c3c5e20e0b4774f..856572a747c0dc0c76d7caab8df89409d2774bc1 100644 (file)
@@ -1696,7 +1696,7 @@ set_initial_language (void)
   if (lang == language_unknown)
     {
       char *name = main_name ();
-      struct symbol *sym = lookup_symbol (name, NULL, VAR_DOMAIN, NULL);
+      struct symbol *sym = lookup_symbol (name, NULL, VAR_DOMAIN, NULL).symbol;
 
       if (sym != NULL)
        lang = SYMBOL_LANGUAGE (sym);
This page took 0.024937 seconds and 4 git commands to generate.