2004-09-20 Andrew Cagney <cagney@gnu.org>
authorAndrew Cagney <cagney@redhat.com>
Mon, 20 Sep 2004 16:39:35 +0000 (16:39 +0000)
committerAndrew Cagney <cagney@redhat.com>
Mon, 20 Sep 2004 16:39:35 +0000 (16:39 +0000)
* 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.

gdb/ChangeLog
gdb/config/i386/nm-linux.h
gdb/config/nm-linux.h
gdb/config/nm-lynx.h
gdb/infptrace.c
gdb/infttrace.c

index 471d2a7e14ddd023667f8cd5325a229bf56c74dc..be1c78588576c08b195df9dcfec30809545c314a 100644 (file)
@@ -1,3 +1,12 @@
+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.
index 1df875fd57b6ab658a476cd8a6c4d4d1429ebb06..40c3e05ec0bbce0f9917483c6cf3123eecadf61b 100644 (file)
@@ -80,7 +80,7 @@ extern int cannot_store_register (int regno);
 #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
index 870e40d34dc76e8d062969ba24d34ed5aa2d65d6..fc784e3e833b583ecb6f7ad1a7a410bfa242e057 100644 (file)
@@ -68,7 +68,7 @@ extern void lin_thread_get_thread_signals (sigset_t *mask);
 #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. */
index 4a55a13c960bf7b9d71938335a308a39f64f0f2c..d4ff5a468e9abd6f77973bf0f84e2d8f84895fab 100644 (file)
@@ -64,7 +64,7 @@ struct target_waitstatus;
 
 /* Override child_resume in infptrace.c */
 
-#define CHILD_RESUME
+#define DEPRECATED_CHILD_RESUME
 
 /* Override child_thread_alive in intarg.c */
 
index fb7736c2fc5f9afda342ba8efb869d3adc30e72d..a9abbf2c39ad903479e0e924ecb33b68f7699bd5 100644 (file)
@@ -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 */
 \f
 
 /* Start debugging the process whose number is PID.  */
index fcb4d028bd9d172a911716cbc86d4cab52c9d274..30e893c323b4e30ad433ebf49887068704f27f1d 100644 (file)
@@ -3842,7 +3842,7 @@ kill_inferior (void)
 }
 
 
-#ifndef CHILD_RESUME
+#ifndef DEPRECATED_CHILD_RESUME
 
 /* Sanity check a thread about to be continued.
  */
@@ -4253,7 +4253,7 @@ threads_continue_one_with_signal (lwpid_t gdb_tid, int signal)
 }
 #endif
 
-#ifndef CHILD_RESUME
+#ifndef DEPRECATED_CHILD_RESUME
 
 /* Resume execution of the inferior process.
 
@@ -4554,7 +4554,7 @@ child_resume (ptid_t ptid, int step, enum target_signal signal)
 #endif
 
 }
-#endif /* CHILD_RESUME */
+#endif /* DEPRECATED_CHILD_RESUME */
 \f
 /*
  * Like it says.
This page took 0.032471 seconds and 4 git commands to generate.