Eliminate the two-level data structures behind location_specs
[binutils-gdb.git] / gdb / probe.c
index 0b056eb88db8ebbcfb9cfe8ae311b738b0d463dd..5371b7eca460646a39a526889e44e8458562e50c 100644 (file)
@@ -123,7 +123,7 @@ parse_probes (const location_spec *locspec,
   const char *arg_start, *cs;
 
   gdb_assert (location_spec_type (locspec) == PROBE_LOCATION_SPEC);
-  arg_start = get_probe_location_spec_string (locspec);
+  arg_start = locspec->to_string ();
 
   cs = arg_start;
   const static_probe_ops *spops = probe_linespec_to_static_ops (&cs);