if (inferior_pid == 0)
int status; int pid =  PIDGET (inferior_ptid);  if (pid == 0)
kill_inferior (){  if (inferior_pid == 0)    return;  /* This once used to call "kill" to kill the inferior just in case     the inferior was still running.  As others have noted in the past     (kingdon) there shouldn't be any way to get here if the inferior     is still running -- else there's a major problem elsewere in gdb     and it needs to be fixed.     The kill call causes problems under hpux10, so it's been removed;     if this causes problems we'll deal with them as they arise.  */  ptrace (PT_KILL, inferior_pid, (PTRACE_ARG3_TYPE) 0, 0);  wait ((int *)0);  target_mourn_inferior ();}