summaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2004-09-24 19:00:47 +0000
committerMark Kettenis <kettenis@gnu.org>2004-09-24 19:00:47 +0000
commit62ece330ee155f5b561d80fa4492deec82788b23 (patch)
tree107e04583494cb94e2f940c0092be7b1c632fb02 /gdb
parent3c0edcdc64f67867b4a2692d92564f7f2867ac7b (diff)
downloadbinutils-gdb-62ece330ee155f5b561d80fa4492deec82788b23.tar.gz
* inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
instead of call_ptrace. Call wait directly instead of ptrace_wait. (inf_ptrace_me): Call ptrace directly instead of call_ptrace. (inf_ptrace_wait): Inline ptrace_wait call.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog8
-rw-r--r--gdb/inf-ptrace.c9
2 files changed, 13 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index b57ffa8ff3d..74a0283f1b4 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,11 @@
+2004-09-24 Mark Kettenis <kettenis@gnu.org>
+
+ * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
+ instead of call_ptrace. Call wait directly instead of
+ ptrace_wait.
+ (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
+ (inf_ptrace_wait): Inline ptrace_wait call.
+
2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
* Makefile.in (.y.c): Revert previous change. ../ylwrap was
diff --git a/gdb/inf-ptrace.c b/gdb/inf-ptrace.c
index 9e07706ba16..d361d76b485 100644
--- a/gdb/inf-ptrace.c
+++ b/gdb/inf-ptrace.c
@@ -55,8 +55,8 @@ inf_ptrace_kill_inferior (void)
The kill call causes problems under hpux10, so it's been removed;
if this causes problems we'll deal with them as they arise. */
- call_ptrace (PT_KILL, pid, (PTRACE_TYPE_ARG3) 0, 0);
- ptrace_wait (null_ptid, &status);
+ ptrace (PT_KILL, pid, (PTRACE_TYPE_ARG3) 0, 0);
+ wait (&status);
target_mourn_inferior ();
}
@@ -255,7 +255,8 @@ inf_ptrace_wait (ptid_t ptid, struct target_waitstatus *ourstatus)
attached process. */
set_sigio_trap ();
- pid = ptrace_wait (inferior_ptid, &status);
+ pid = wait (&status);
+ target_post_wait (pid_to_ptid (pid), status);
save_errno = errno;
@@ -433,7 +434,7 @@ static void
inf_ptrace_me (void)
{
/* "Trace me, Dr. Memory!" */
- call_ptrace (0, 0, (PTRACE_TYPE_ARG3) 0, 0);
+ ptrace (0, 0, (PTRACE_TYPE_ARG3) 0, 0);
}
/* Stub function which causes the GDB that runs it, to start ptrace-ing