summaryrefslogtreecommitdiff
path: root/gdb/infptrace.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-09-20 16:39:35 +0000
committerAndrew Cagney <cagney@redhat.com>2004-09-20 16:39:35 +0000
commitcff8a14ba9c41eeaf0b8bb9e29325a5560d15cb4 (patch)
treec816eddac94d0b07fcb91a8af9d79d0eb896f635 /gdb/infptrace.c
parentdacff3e44ab5eabbddeac050680d0e92677ebdc1 (diff)
downloadgdb-cff8a14ba9c41eeaf0b8bb9e29325a5560d15cb4.tar.gz
2004-09-20 Andrew Cagney <cagney@gnu.org>
* config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate CHILD_RESUME. * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto. * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate KILL_INFERIOR. * infptrace.c: Update.
Diffstat (limited to 'gdb/infptrace.c')
-rw-r--r--gdb/infptrace.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/gdb/infptrace.c b/gdb/infptrace.c
index fb7736c2fc5..a9abbf2c39a 100644
--- a/gdb/infptrace.c
+++ b/gdb/infptrace.c
@@ -148,7 +148,11 @@ ptrace_wait (ptid_t ptid, int *status)
return wstate;
}
-#ifndef KILL_INFERIOR
+#ifndef DEPRECATED_KILL_INFERIOR
+/* NOTE: cagney/2004-09-12: Instead of definining this macro, code
+ should call inf_ptrace_target to get a basic ptrace target and then
+ locally update any necessary methods. See ppcnbsd-nat.c. */
+
void
kill_inferior (void)
{
@@ -170,9 +174,12 @@ kill_inferior (void)
ptrace_wait (null_ptid, &status);
target_mourn_inferior ();
}
-#endif /* KILL_INFERIOR */
+#endif /* DEPRECATED_KILL_INFERIOR */
-#ifndef CHILD_RESUME
+#ifndef DEPRECATED_CHILD_RESUME
+/* NOTE: cagney/2004-09-12: Instead of definining this macro, code
+ should call inf_ptrace_target to get a basic ptrace target and then
+ locally update any necessary methods. See ppcnbsd-nat.c. */
/* Resume execution of the inferior process.
If STEP is nonzero, single-step it.
@@ -211,7 +218,7 @@ child_resume (ptid_t ptid, int step, enum target_signal signal)
if (errno != 0)
perror_with_name ("ptrace");
}
-#endif /* CHILD_RESUME */
+#endif /* DEPRECATED_CHILD_RESUME */
/* Start debugging the process whose number is PID. */