* linux-nat.c (kill_inferior): Add missing third and fourth
arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
This commit is contained in:
parent
888004038c
commit
de9a9e516b
2 changed files with 6 additions and 3 deletions
|
@ -1,5 +1,8 @@
|
|||
2004-08-15 Mark Kettenis <kettenis@gnu.org>
|
||||
|
||||
* linux-nat.c (kill_inferior): Add missing third and fourth
|
||||
arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
|
||||
|
||||
* infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
|
||||
PTRACE_TYPE_RET.
|
||||
|
||||
|
|
|
@ -500,12 +500,12 @@ kill_inferior (void)
|
|||
if (last.kind == TARGET_WAITKIND_FORKED
|
||||
|| last.kind == TARGET_WAITKIND_VFORKED)
|
||||
{
|
||||
ptrace (PT_KILL, last.value.related_pid);
|
||||
ptrace (PT_KILL, last.value.related_pid, 0, 0);
|
||||
ptrace_wait (null_ptid, &status);
|
||||
}
|
||||
|
||||
/* Kill the current process. */
|
||||
ptrace (PT_KILL, pid, (PTRACE_ARG3_TYPE) 0, 0);
|
||||
ptrace (PT_KILL, pid, 0, 0);
|
||||
ret = ptrace_wait (null_ptid, &status);
|
||||
|
||||
/* We might get a SIGCHLD instead of an exit status. This is
|
||||
|
@ -513,7 +513,7 @@ kill_inferior (void)
|
|||
|
||||
while (ret == pid && WIFSTOPPED (status))
|
||||
{
|
||||
ptrace (PT_KILL, pid, (PTRACE_ARG3_TYPE) 0, 0);
|
||||
ptrace (PT_KILL, pid, 0, 0);
|
||||
ret = ptrace_wait (null_ptid, &status);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue