From 5472f405e240ab93b49942eb5181a5b4987a5417 Mon Sep 17 00:00:00 2001
From: Ulrich Weigand <uweigand@de.ibm.com>
Date: Fri, 3 Apr 2009 14:38:39 +0000
Subject: 	* remote-utils.c (prepare_resume_reply): Null-terminate
 packet. 	* spu-low.c (current_tid): Rename to ... 
 (current_ptid): ... this. 	(fetch_ppc_register, fetch_ppc_memory,
 store_ppc_memory, 	spu_proc_xfer_spu, spu_resume, spu_request_interrupt):
 Use 	ptid_get_lwp (current_ptid) instead of current_tid. 	(spu_kill,
 spu_detach, spu_join, spu_wait): Use pid argument 	instead of
 current_tid.  Use find_process_pid to verify pid 	argument is valid. 
 Pass proper argument to remove_process. 	(spu_thread_alive): Compare
 current_ptid instead of current_tid. 	(spu_resume): Likewise.

---
 gdb/gdbserver/remote-utils.c | 1 +
 1 file changed, 1 insertion(+)

(limited to 'gdb/gdbserver/remote-utils.c')

diff --git a/gdb/gdbserver/remote-utils.c b/gdb/gdbserver/remote-utils.c
index 103bcc7..92794a8 100644
--- a/gdb/gdbserver/remote-utils.c
+++ b/gdb/gdbserver/remote-utils.c
@@ -1118,6 +1118,7 @@ prepare_resume_reply (char *buf, ptid_t ptid,
 	    buf = outreg (find_regno (*regp), buf);
 	    regp ++;
 	  }
+	*buf = '\0';
 
 	/* Formerly, if the debugger had not used any thread features
 	   we would not burden it with a thread status response.  This
-- 
cgit v1.1