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/remote.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/remote.c') diff --git a/gdb/remote.c b/gdb/remote.c index d5eb40c..7f53053 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -13344,7 +13344,7 @@ remote_target::download_tracepoint (struct bp_location *loc) error ("%s", err_msg); encode_source_string (b->number, loc->address, - "cond", b->cond_string, + "cond", b->cond_string.get (), buf.data () + strlen (buf.data ()), buf.size () - strlen (buf.data ())); putpkt (buf.data ()); -- cgit v1.1