[PR,gdb/19495] Removed redundant line remote-utils.c

Message ID CAFOnWk=hB2xRNJmT=n4vOCKKHQasPGDyiYhERTkqmXwb6gGFMQ@mail.gmail.com
State New, archived
Headers

Commit Message

Manish Goregaokar Sept. 2, 2016, 4:51 p.m. UTC
  Reformatted patch below. Please ensure that the diff is one which
can be imported via `git apply`


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/remote-utils.c | 1 -
 1 file changed, 1 deletion(-)
  

Comments

Pedro Alves Sept. 3, 2016, 10:41 a.m. UTC | #1
OK, please push.

Thanks,
Pedro Alves
  

Patch

diff --git a/gdb/gdbserver/remote-utils.c b/gdb/gdbserver/remote-utils.c
index 768d2e9..1d51010 100644
--- a/gdb/gdbserver/remote-utils.c
+++ b/gdb/gdbserver/remote-utils.c
@@ -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)