Fix tracepoint.c:parse_tracepoint_definition leak (and one more)
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 1c036bb91fdb83a89db630766bfa92d60bbc29d4..b702acd65e574a4318387a365930a2d70d14fcde 100644 (file)
@@ -1,3 +1,18 @@
+2019-01-10  Pedro Alves  <palves@redhat.com>
+
+       * breakpoint.c (read_uploaded_action)
+       (create_tracepoint_from_upload): Adjust to use
+       gdb::unique_xmalloc_ptr.
+       * ctf.c (ctf_write_uploaded_tp):
+       (SET_ARRAY_FIELD): Use emplace_back.
+       (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
+       * tracefile-tfile.c (tfile_write_uploaded_tp):
+       * tracepoint.c (parse_tracepoint_definition): Adjust to use
+       gdb::unique_xmalloc_ptr.
+       * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
+       at_string, cond_string, cmd_strings>: Replace char pointers
+       with gdb::unique_xmalloc_ptr.
+
 2019-01-10  Pedro Alves  <palves@redhat.com>
 
        * solib-target.c (library_list_start_library): Don't xstrdup name.
This page took 0.027407 seconds and 4 git commands to generate.