Make probe_ops::get_probes fill an std::vector
[deliverable/binutils-gdb.git] / gdb / symfile-debug.c
index e7890c943c9d9789164c6968e501e7df2fca9720..32dafa8602cb2a7ae2fd3a8232e4748ef8daad05 100644 (file)
@@ -384,20 +384,20 @@ static const struct quick_symbol_functions debug_sym_quick_functions =
 \f
 /* Debugging version of struct sym_probe_fns.  */
 
-static VEC (probe_p) *
+static const std::vector<probe *> &
 debug_sym_get_probes (struct objfile *objfile)
 {
   const struct debug_sym_fns_data *debug_data
     = ((const struct debug_sym_fns_data *)
        objfile_data (objfile, symfile_debug_objfile_data_key));
-  VEC (probe_p) *retval;
 
-  retval = debug_data->real_sf->sym_probe_fns->sym_get_probes (objfile);
+  const std::vector<probe *> &retval
+    = debug_data->real_sf->sym_probe_fns->sym_get_probes (objfile);
 
   fprintf_filtered (gdb_stdlog,
                    "probes->sym_get_probes (%s) = %s\n",
                    objfile_debug_name (objfile),
-                   host_address_to_string (retval));
+                   host_address_to_string (retval.data ()));
 
   return retval;
 }
This page took 0.030434 seconds and 4 git commands to generate.