aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote.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/remote.c
parent23d6ee640578968b0ddef8e08d7dbb5b558a9ce9 (diff)
downloadfsf-binutils-gdb-6f781ee30062c822cf6475cfa070c6e7cf770de4.zip
fsf-binutils-gdb-6f781ee30062c822cf6475cfa070c6e7cf770de4.tar.gz
fsf-binutils-gdb-6f781ee30062c822cf6475cfa070c6e7cf770de4.tar.bz2
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/remote.c')
-rw-r--r--gdb/remote.c2
1 files changed, 1 insertions, 1 deletions
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 ());