summaryrefslogtreecommitdiff
path: root/gdb/linux-nat.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2004-08-15 15:51:40 +0000
committerMark Kettenis <kettenis@gnu.org>2004-08-15 15:51:40 +0000
commitfc11187714c2a456637260234f71a71c8ebd3813 (patch)
tree807b9268c2d4c438a6e063ee1f34a8af795f9f2e /gdb/linux-nat.c
parent81bb018fb8a1c52e351d4898c739286e38c5db49 (diff)
downloadgdb-fc11187714c2a456637260234f71a71c8ebd3813.tar.gz
* linux-nat.c (kill_inferior): Add missing third and fourth
arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
Diffstat (limited to 'gdb/linux-nat.c')
-rw-r--r--gdb/linux-nat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c
index e421c9ca221..15b67042290 100644
--- a/gdb/linux-nat.c
+++ b/gdb/linux-nat.c
@@ -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);
}