From 8e9e35b1808481735e2d1efbf70ed7396a845d8e Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 10 Apr 2017 15:53:22 -0600 Subject: Change linespec_result::location to be an event_location_up This is a follow-up to another patch. It changes linespec_result::location to be an event_location_up. gdb/ChangeLog 2017-04-12 Tom Tromey * probe.c (parse_probes): Update. * location.h (delete_event_location): Don't declare. (event_location_deleter::operator()): Update. * location.c (event_location_deleter::operator()): Rename from delete_event_location. * linespec.h (linespec_result) : Change type to event_location_up. * linespec.c (canonicalize_linespec, event_location_to_sals) (decode_objc): Update. (linespec_result): Don't call delete_event_location. * breakpoint.c (create_breakpoints_sal) (bkpt_probe_create_sals_from_location) (strace_marker_create_sals_from_location): Update. --- gdb/probe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/probe.c') diff --git a/gdb/probe.c b/gdb/probe.c index 4f4a5a3..c147810 100644 --- a/gdb/probe.c +++ b/gdb/probe.c @@ -205,7 +205,7 @@ parse_probes (const struct event_location *location, make_cleanup (xfree, canon); canonical->special_display = 1; canonical->pre_expanded = 1; - canonical->location = new_probe_location (canon).release (); + canonical->location = new_probe_location (canon); } do_cleanups (cleanup); -- cgit v1.1