diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2009-04-03 14:38:39 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2009-04-03 14:38:39 +0000 |
commit | 5472f405e240ab93b49942eb5181a5b4987a5417 (patch) | |
tree | 8ad233940398093164f95c8d8289ef92f46ecc54 /gdb/gdbserver/remote-utils.c | |
parent | 9592c5d01114002e806d444f9a574903e7d0a957 (diff) | |
download | binutils-5472f405e240ab93b49942eb5181a5b4987a5417.zip binutils-5472f405e240ab93b49942eb5181a5b4987a5417.tar.gz binutils-5472f405e240ab93b49942eb5181a5b4987a5417.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/gdbserver/remote-utils.c')
-rw-r--r-- | gdb/gdbserver/remote-utils.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 |