+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.
+
2004-09-19 Daniel Jacobowitz <dan@debian.org>
* symtab.c (output_source_filename): Mark first argument as const.
#endif
/* Override child_resume in `infptrace.c'. */
-#define CHILD_RESUME
+#define DEPRECATED_CHILD_RESUME
/* `linux-nat.c' and `i386-nat.c' have their own versions of
child_post_startup_inferior. Define this to use the copy in
#define CHILD_POST_STARTUP_INFERIOR
#define CHILD_POST_ATTACH
#define CHILD_FOLLOW_FORK
-#define KILL_INFERIOR
+#define DEPRECATED_KILL_INFERIOR
#define NATIVE_XFER_AUXV procfs_xfer_auxv
#include "auxv.h" /* Declares it. */
/* Override child_resume in infptrace.c */
-#define CHILD_RESUME
+#define DEPRECATED_CHILD_RESUME
/* Override child_thread_alive in intarg.c */
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)
{
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.
if (errno != 0)
perror_with_name ("ptrace");
}
-#endif /* CHILD_RESUME */
+#endif /* DEPRECATED_CHILD_RESUME */
\f
/* Start debugging the process whose number is PID. */
}
-#ifndef CHILD_RESUME
+#ifndef DEPRECATED_CHILD_RESUME
/* Sanity check a thread about to be continued.
*/
}
#endif
-#ifndef CHILD_RESUME
+#ifndef DEPRECATED_CHILD_RESUME
/* Resume execution of the inferior process.
#endif
}
-#endif /* CHILD_RESUME */
+#endif /* DEPRECATED_CHILD_RESUME */
\f
/*
* Like it says.