* doc/c-xtensa.texi (Literal Directive): Spelling correction.
[deliverable/binutils-gdb.git] / gdb / inf-child.c
index f729611173adbfe27602c54245c489f59136bc72..31bdd29176cb4c2d65fc30e335ee4781e0a555b0 100644 (file)
@@ -27,6 +27,7 @@
 #include "symtab.h"
 #include "target.h"
 #include "inferior.h"
+#include "gdb_string.h"
 
 /* Fetch register REGNUM from the inferior.  If REGNUM is -1, do this
    for all registers.  */
@@ -51,14 +52,6 @@ inf_child_store_inferior_registers (int regnum)
 {
 }
 
-void
-inf_child_post_wait (ptid_t ptid, int wait_status)
-{
-  /* This version of Unix doesn't require a meaningful "post wait"
-     operation.
-   */
-}
-
 static void
 inf_child_post_attach (int pid)
 {
@@ -80,7 +73,7 @@ inf_child_prepare_to_store (void)
 static void
 inf_child_open (char *arg, int from_tty)
 {
-  error ("Use the \"run\" command to start a Unix child process.");
+  error (_("Use the \"run\" command to start a Unix child process."));
 }
 
 static void
@@ -97,12 +90,11 @@ inf_child_acknowledge_created_inferior (int pid)
      created inferior" operation by a debugger.  */
 }
 
-static int
+static void
 inf_child_insert_fork_catchpoint (int pid)
 {
   /* This version of Unix doesn't support notification of fork
      events.  */
-  return 0;
 }
 
 static int
@@ -113,12 +105,11 @@ inf_child_remove_fork_catchpoint (int pid)
   return 0;
 }
 
-static int
+static void
 inf_child_insert_vfork_catchpoint (int pid)
 {
   /* This version of Unix doesn't support notification of vfork
      events.  */
-  return 0;
 }
 
 static int
@@ -137,12 +128,11 @@ inf_child_follow_fork (int follow_child)
   return 0;
 }
 
-static int
+static void
 inf_child_insert_exec_catchpoint (int pid)
 {
   /* This version of Unix doesn't support notification of exec
      events.  */
-  return 0;
 }
 
 static int
@@ -188,14 +178,6 @@ inf_child_pid_to_exec_file (int pid)
   return NULL;
 }
 
-static char *
-inf_child_core_file_to_sym_file (char *core)
-{
-  /* The target stratum for a running executable need not support this
-     operation.  */
-  return NULL;
-}
-
 struct target_ops *
 inf_child_target (void)
 {
@@ -205,7 +187,8 @@ inf_child_target (void)
   t->to_doc = "Unix child process (started by the \"run\" command).";
   t->to_open = inf_child_open;
   t->to_post_attach = inf_child_post_attach;
-  t->to_post_wait = inf_child_post_wait;
+  t->to_fetch_registers = inf_child_fetch_inferior_registers;
+  t->to_store_registers = inf_child_store_inferior_registers;
   t->to_prepare_to_store = inf_child_prepare_to_store;
   t->to_insert_breakpoint = memory_insert_breakpoint;
   t->to_remove_breakpoint = memory_remove_breakpoint;
This page took 0.02671 seconds and 4 git commands to generate.