[gdb/testsuite] Fix gdb.dwarf2/dw2-filename.exp with -readnow
[deliverable/binutils-gdb.git] / gdb / probe.c
index d813b3e5e8b6d749cb9b0e46cfb021ec62f4612d..dca02f0780e73a4bb33163aa32dc9259bf810f54 100644 (file)
@@ -185,9 +185,7 @@ parse_probes (const struct event_location *location,
     }
   else
     {
-      struct program_space *pspace;
-
-      ALL_PSPACES (pspace)
+      for (struct program_space *pspace : program_spaces)
        parse_probes_in_pspace (spops, pspace, objfile_namestr,
                                provider, name, &result);
     }
@@ -876,8 +874,9 @@ static const struct internalvar_funcs probe_funcs =
 
 std::vector<const static_probe_ops *> all_static_probe_ops;
 
+void _initialize_probe ();
 void
-_initialize_probe (void)
+_initialize_probe ()
 {
   all_static_probe_ops.push_back (&any_static_probe_ops);
 
This page took 0.038338 seconds and 4 git commands to generate.