Removed redundant line remote-utils.c
authorAkash Trehan <akash.trehan123@gmail.com>
Fri, 2 Sep 2016 08:18:59 +0000 (13:48 +0530)
committerManish Goregaokar <manish@mozilla.com>
Sat, 3 Sep 2016 10:55:07 +0000 (16:25 +0530)
2016-09-02  Akash Trehan  <akash.trehan123@gmail.com>

gdb/gdbserver/ChangeLog:
    PR gdb/19495
    * remote-utils.c (relocate_instruction): Remove redundant strcpy()
    call writing data to own_buf.

gdb/gdbserver/ChangeLog
gdb/gdbserver/remote-utils.c

index 97d8ca59a41dd569962c0085fa8365520a127001..629254fa2a2f586e780708695d5d1bdafb72dea3 100644 (file)
@@ -1,3 +1,9 @@
+2016-09-02  Akash Trehan  <akash.trehan123@gmail.com>
+
+       PR gdb/19495
+       * remote-utils.c (relocate_instruction): Remove redundant strcpy()
+       call writing data to own_buf.
+
 2016-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
 
        * target.c (mywait): Call target_wait instead of
index 768d2e9711d87c9538d5d963b06e3d145af9e429..1d51010b27a5e58bbcb55ca77ecd3cab94806836 100644 (file)
@@ -1579,7 +1579,6 @@ relocate_instruction (CORE_ADDR *to, CORE_ADDR oldloc)
   ULONGEST written = 0;
 
   /* Send the request.  */
-  strcpy (own_buf, "qRelocInsn:");
   sprintf (own_buf, "qRelocInsn:%s;%s", paddress (oldloc),
           paddress (*to));
   if (putpkt (own_buf) < 0)