summaryrefslogtreecommitdiff
path: root/gdb/tracepoint.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2021-10-02 17:17:27 -0600
committerTom Tromey <tom@tromey.com>2021-10-20 11:00:32 -0600
commit6f781ee30062c822cf6475cfa070c6e7cf770de4 (patch)
tree28f1176383c7f7ce9cf05ab7f7f34b93170e548f /gdb/tracepoint.c
parent23d6ee640578968b0ddef8e08d7dbb5b558a9ce9 (diff)
downloadbinutils-gdb-6f781ee30062c822cf6475cfa070c6e7cf770de4.tar.gz
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.
Diffstat (limited to 'gdb/tracepoint.c')
-rw-r--r--gdb/tracepoint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c
index 3997d211182..df5013e45ae 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. */
)