Change iterate_over_symbols to return bool
[deliverable/binutils-gdb.git] / gdb / ada-lang.c
index d677acdb60e7066e9ea573f3fafaaeab5a38615e..21d40c7aad45d7215e83b4df0d5e27518ea38d91 100644 (file)
@@ -5740,7 +5740,7 @@ ada_lookup_symbol_list (const char *name, const struct block *block,
 
 /* Implementation of the la_iterate_over_symbols method.  */
 
-static void
+static bool
 ada_iterate_over_symbols
   (const struct block *block, const lookup_name_info &name,
    domain_enum domain,
@@ -5754,8 +5754,10 @@ ada_iterate_over_symbols
   for (i = 0; i < ndefs; ++i)
     {
       if (!callback (&results[i]))
-       break;
+       return false;
     }
+
+  return true;
 }
 
 /* The result is as for ada_lookup_symbol_list with FULL_SEARCH set
This page took 0.031476 seconds and 4 git commands to generate.