X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fgdbserver%2Flynx-low.c;h=6c5933bc4705022c4d3b6a8714ea34851bd5ab6d;hb=a780ef4f27f8bc44082be81fdbee44bb11f1049c;hp=902a70386b71d213f3975cd62c86edc64da83d66;hpb=ef2ddb33bd29a7c4f7027b9e37e55c74c15af825;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/gdbserver/lynx-low.c b/gdb/gdbserver/lynx-low.c index 902a70386b..6c5933bc47 100644 --- a/gdb/gdbserver/lynx-low.c +++ b/gdb/gdbserver/lynx-low.c @@ -522,15 +522,10 @@ lynx_wait (ptid_t ptid, struct target_waitstatus *status, int options) /* Implement the kill target_ops method. */ static int -lynx_kill (int pid) +lynx_kill (process_info *process) { - ptid_t ptid = lynx_ptid_t (pid, 0); + ptid_t ptid = lynx_ptid_t (process->pid, 0); struct target_waitstatus status; - struct process_info *process; - - process = find_process_pid (pid); - if (process == NULL) - return -1; lynx_ptrace (PTRACE_KILL, ptid, 0, 0, 0); lynx_wait (ptid, &status, 0);