Replace the block_found global with explicit data-flow
[deliverable/binutils-gdb.git] / gdb / solib-spu.c
index 44fbf91506c4eb0758f1e6c4e75f54ada09d4429..64a5c9ce58518b00f33ce01f4a14959ccf29343b 100644 (file)
@@ -389,7 +389,7 @@ spu_bfd_open (char *pathname)
 }
 
 /* Lookup global symbol in a SPE executable.  */
-static struct symbol *
+static struct block_symbol
 spu_lookup_lib_symbol (struct objfile *objfile,
                       const char *name,
                       const domain_enum domain)
@@ -399,7 +399,7 @@ spu_lookup_lib_symbol (struct objfile *objfile,
 
   if (svr4_so_ops.lookup_lib_global_symbol != NULL)
     return svr4_so_ops.lookup_lib_global_symbol (objfile, name, domain);
-  return NULL;
+  return (struct block_symbol) {NULL, NULL};
 }
 
 /* Enable shared library breakpoint.  */
This page took 0.024962 seconds and 4 git commands to generate.