diff options
author | Mark Kettenis <kettenis@gnu.org> | 2004-08-15 15:51:40 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2004-08-15 15:51:40 +0000 |
commit | de9a9e516bde02b567390b7fd448033ce655da0b (patch) | |
tree | 77aec8bafc06ce4c0274b1a460cd20636aca3d10 /gdb | |
parent | 888004038c5cb2d0e6f63b462ff6fdf14707487d (diff) | |
download | gdb-de9a9e516bde02b567390b7fd448033ce655da0b.zip gdb-de9a9e516bde02b567390b7fd448033ce655da0b.tar.gz gdb-de9a9e516bde02b567390b7fd448033ce655da0b.tar.bz2 |
* linux-nat.c (kill_inferior): Add missing third and fourth
arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 3 | ||||
-rw-r--r-- | gdb/linux-nat.c | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2562790..a7f2764 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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. diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index e421c9c..15b6704 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); } |