This is the mail archive of the gdb-patches@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]

[commit] remote.c, discard unused values


checked in.

2011-02-28  Michael Snyder  <msnyder@vmware.com>

	* remote.c (remote_get_noisy_reply): Discard unused value.
	(remote_vcont_resume): Ditto.
	(remote_stop_ns): Ditto.

Index: remote.c
===================================================================
RCS file: /cvs/src/src/gdb/remote.c,v
retrieving revision 1.435
diff -u -p -u -p -r1.435 remote.c
--- remote.c	21 Feb 2011 15:56:16 -0000	1.435
+++ remote.c	1 Mar 2011 00:32:50 -0000
@@ -455,7 +455,7 @@ remote_get_noisy_reply (char **buf_p,
 	  from = ul;
 
 	  p = pp + 1;
-	  pp = unpack_varlen_hex (p, &ul);
+	  unpack_varlen_hex (p, &ul);
 	  to = ul;
 
 	  org_to = to;
@@ -4464,7 +4464,7 @@ remote_vcont_resume (ptid_t ptid, int st
 	 so we don't have any TID numbers the inferior will
 	 understand.  Make sure to only send forms that do not specify
 	 a TID.  */
-      p = append_resumption (p, endp, minus_one_ptid, step, siggnal);
+      append_resumption (p, endp, minus_one_ptid, step, siggnal);
     }
   else if (ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid))
     {
@@ -4479,12 +4479,12 @@ remote_vcont_resume (ptid_t ptid, int st
 	}
 
       /* And continue others without a signal.  */
-      p = append_resumption (p, endp, ptid, /*step=*/ 0, TARGET_SIGNAL_0);
+      append_resumption (p, endp, ptid, /*step=*/ 0, TARGET_SIGNAL_0);
     }
   else
     {
       /* Scheduler locking; resume only PTID.  */
-      p = append_resumption (p, endp, ptid, step, siggnal);
+      append_resumption (p, endp, ptid, step, siggnal);
     }
 
   gdb_assert (strlen (rs->buf) < get_remote_packet_size ());
@@ -4711,7 +4711,7 @@ remote_stop_ns (ptid_t ptid)
 	  nptid = ptid;
 	}
 
-      p = write_ptid (p, endp, nptid);
+      write_ptid (p, endp, nptid);
     }
 
   /* In non-stop, we get an immediate OK reply.  The stop reply will

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