Use get_remote_packet_size in download_tracepoint
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 9ec56690736606ff80b01c6c39e33be8a91b977c..a55559b58fa9ec875e60bd84fac707fb30052a3a 100644 (file)
@@ -1,3 +1,12 @@
+2018-08-06  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
+
+       * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
+       Replace array buf with gdb::char_vector buf, of size
+       get_remote_packet_size ().  Replace references to buf and
+       BUF_SIZE to buf.data () and buf.size ().  Replace strcpy, strcat
+       and xsnprintf with snprintf.  Raise errors if the buffer is too
+       small.
+
 2018-08-06  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
 
        * remote.c (remote_target::download_tracepoint): Fix the has_more
This page took 0.038215 seconds and 4 git commands to generate.