* infrun.c: Add comment about signals.
authorJim Kingdon <jkingdon@engr.sgi.com>
Sun, 17 Oct 1993 01:56:01 +0000 (01:56 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Sun, 17 Oct 1993 01:56:01 +0000 (01:56 +0000)
* fork-child.c (fork_inferior): Remove CREATE_INFERIOR_HOOK again.
Stu reinstated it (accidently I assume).

gdb/ChangeLog
gdb/fork-child.c
gdb/infrun.c

index 578a35e67cf55cb5bb59728cad793014283719b1..9ff409f6389d4decb40be4bc2eec3805dfc11bcf 100644 (file)
@@ -1,3 +1,10 @@
+Sat Oct 16 20:47:30 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
+
+       * infrun.c: Add comment about signals.
+
+       * fork-child.c (fork_inferior): Remove CREATE_INFERIOR_HOOK again.
+       Stu reinstated it (accidently I assume).
+
 Sat Oct 16 15:27:10 1993  Stu Grossman  (grossman at cygnus.com)
 
        * procfs.c (procfs_wait):  Losing Unixware can't do poll on /proc
index 9aa3cfef016439024cccfce955225339d5b0e091..3c01b6021eb51d9f1675f059cb152b999a7ae894 100644 (file)
@@ -244,10 +244,6 @@ fork_inferior (exec_file, allargs, env, traceme_fun, init_trace_fun)
      initialize anything target-vector-specific that needs initializing.  */
   (*init_trace_fun)(pid);
 
-#ifdef CREATE_INFERIOR_HOOK
-  CREATE_INFERIOR_HOOK (pid);
-#endif  
-
   /* The process was started by the fork that created it,
      but it will have stopped one instruction after execing the shell.
      Here we must get it up to actual execution of the real program.  */
index c4e58ce949b87a377b8277fac8ad3d5460ed6df5..bde5597c20875ad49b1e33acbd4d82e6b82373f5 100644 (file)
@@ -584,6 +584,8 @@ wait_for_inferior ()
              {
                remove_breakpoints ();
                target_resume (pid, 1, 0); /* Single step */
+               /* FIXME: What if a signal arrives instead of the single-step
+                  happening?  *?
                target_wait (pid, NULL);
                insert_breakpoints ();
              }