kill_inferior: Issue a TT_PROC_EXIT request rather than a TT_PROC_STOP
authorJoel Brobecker <brobecker@gnat.com>
Thu, 27 Sep 2001 13:31:45 +0000 (13:31 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Thu, 27 Sep 2001 13:31:45 +0000 (13:31 +0000)
request to kill the inferior and its child processes. Otherwise, the
inferior is not killed on HPUX 11.0.  Removed the code that detaches the
child processes since we just killed them.

gdb/infttrace.c

index 00cdda2f52d3c1f5fa28eba78b8e6ebbadb895eb..a920ead03c8cd6fadeb9c295fad4744320b8e472 100644 (file)
@@ -3853,27 +3853,18 @@ kill_inferior (void)
 
       if (t->am_pseudo && (t->pid != PIDGET (inferior_ptid)))
        {
-         /* TT_PROC_STOP doesn't require a subsequent ttrace_wait, as it
-          * generates no event.
-          */
-         call_ttrace (TT_PROC_STOP,
+         call_ttrace (TT_PROC_EXIT,
                       t->pid,
                       TT_NIL,
                       TT_NIL,
                       TT_NIL);
-
-         call_ttrace (TT_PROC_DETACH,
-                      t->pid,
-                      TT_NIL,
-                      (TTRACE_ARG_TYPE) TARGET_SIGNAL_0,
-                      TT_NIL);
        }
       t = t->next;
     }
 
   xfree (paranoia);
 
-  call_ttrace (TT_PROC_STOP,
+  call_ttrace (TT_PROC_EXIT,
               PIDGET (inferior_ptid),
               TT_NIL,
               TT_NIL,