This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Removed redundant line remote-utils.c


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=c1da6748f560ec19173d5d7766e0d497e8a0f1e4

commit c1da6748f560ec19173d5d7766e0d497e8a0f1e4
Author: Akash Trehan <akash.trehan123@gmail.com>
Date:   Fri Sep 2 13:48:59 2016 +0530

    Removed redundant line remote-utils.c
    
    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.

Diff:
---
 gdb/gdbserver/ChangeLog      | 6 ++++++
 gdb/gdbserver/remote-utils.c | 1 -
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 97d8ca5..629254f 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -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
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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]