* target.h: Add enum target_waitkind, enum target_signal, and
[deliverable/binutils-gdb.git] / gdb / fork-child.c
index 1529516c5efb5fa08f44d92c92b3a215c113939c..f4a5a59e060e3dab190311b1c56588c74b8498a3 100644 (file)
@@ -75,8 +75,8 @@ fork_inferior (exec_file, allargs, env, traceme_fun, init_trace_fun)
   /* The user might want tilde-expansion, and in general probably wants
      the program to behave the same way as if run from
      his/her favorite shell.  So we let the shell run it for us.
-     FIXME, this should probably search the local environment (as
-     modified by the setenv command), not the env gdb inherited.  */
+     FIXME-maybe, we might want a "set shell" command so the user can change
+     the shell from within GDB.  */
   shell_file = getenv ("SHELL");
   if (shell_file == NULL)
     shell_file = default_shell_file;
@@ -276,7 +276,7 @@ startup_inferior (ntraps)
     {
       stop_soon_quietly = 1;   /* Make wait_for_inferior be quiet */
       wait_for_inferior ();
-      if (stop_signal != SIGTRAP)
+      if (stop_signal != TARGET_SIGNAL_TRAP)
        {
          /* Let shell child handle its own signals in its own way */
          /* FIXME, what if child has exit()ed?  Must exit loop somehow */
@@ -302,7 +302,7 @@ startup_inferior (ntraps)
            }
          if (0 == --pending_execs)
            break;
-         resume (0, 0);                /* Just make it go on */
+         resume (0, TARGET_SIGNAL_0);          /* Just make it go on */
        }
     }
   stop_soon_quietly = 0;
This page took 0.024068 seconds and 4 git commands to generate.