* 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.
This commit is contained in:
parent
9592c5d011
commit
5472f405e2
3 changed files with 49 additions and 23 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue