From 6f781ee30062c822cf6475cfa070c6e7cf770de4 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sat, 2 Oct 2021 17:17:27 -0600 Subject: Use unique_xmalloc_ptr in breakpoint This changes struct breakpoint to use unique_xmalloc_ptr in a couple of spots, removing a bit of manual memory management. --- gdb/tracepoint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/tracepoint.c') diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c index 3997d21..df5013e4 100644 --- a/gdb/tracepoint.c +++ b/gdb/tracepoint.c @@ -3094,7 +3094,7 @@ find_matching_tracepoint_location (struct uploaded_tp *utp) if (b->type == utp->type && t->step_count == utp->step && t->pass_count == utp->pass - && cond_string_is_same (t->cond_string, + && cond_string_is_same (t->cond_string.get (), utp->cond_string.get ()) /* FIXME also test actions. */ ) -- cgit v1.1