Replace the block_found global with explicit data-flow
[deliverable/binutils-gdb.git] / gdb / solib-svr4.c
index 909dfb708d51fe296d75c97e27f7d1b0d05e426c..104530cad5b3193675b1d431a61cb8762ec35b06 100644 (file)
@@ -3211,7 +3211,7 @@ struct target_so_ops svr4_so_ops;
    different rule for symbol lookup.  The lookup begins here in the DSO, not in
    the main executable.  */
 
-static struct symbol *
+static struct block_symbol
 elf_lookup_lib_symbol (struct objfile *objfile,
                       const char *name,
                       const domain_enum domain)
@@ -3229,7 +3229,7 @@ elf_lookup_lib_symbol (struct objfile *objfile,
     }
 
   if (abfd == NULL || scan_dyntag (DT_SYMBOLIC, abfd, NULL) != 1)
-    return NULL;
+    return (struct block_symbol) {NULL, NULL};
 
   return lookup_global_symbol_from_objfile (objfile, name, domain);
 }
This page took 0.024796 seconds and 4 git commands to generate.