aboutsummaryrefslogtreecommitdiff
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
commitadbef1f0144e953ef9b546bf944040537aef6741 (patch)
tree53419b9d433e708fd7fa3272d2078df9fcc85894 /gdb/infptrace.c
parent4b778c885f3c2452747dba2a9a710637669d11db (diff)
downloadgdb-adbef1f0144e953ef9b546bf944040537aef6741.zip
gdb-adbef1f0144e953ef9b546bf944040537aef6741.tar.gz
gdb-adbef1f0144e953ef9b546bf944040537aef6741.tar.bz2
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 fb7736c..a9abbf2 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. */