* inflow.c (kill_command): Fix a bug which prevented target
authorJ.T. Conklin <jtc@acorntoolworks.com>
Tue, 2 Aug 1994 16:53:31 +0000 (16:53 +0000)
committerJ.T. Conklin <jtc@acorntoolworks.com>
Tue, 2 Aug 1994 16:53:31 +0000 (16:53 +0000)
  programs to be killed.

gdb/ChangeLog
gdb/inflow.c

index e901895b56d2bfc4da9b4e33d7046fec65eb5f0f..2ab6a75bcce7b9df59f21798530fa22005a6167a 100644 (file)
@@ -1,3 +1,8 @@
+Tue Aug  2 09:50:50 1994  J.T. Conklin  (jtc@phishhead.cygnus.com)
+
+       * inflow.c (kill_command): Fix a bug which prevented target
+         programs to be killed.
+
 Mon Aug  1 18:48:47 1994  Stan Shebs  (shebs@andros.cygnus.com)
 
        * defs.h: Change two-line declarations to one-line form.
index 53b42ef7a84e34972aa3f025fac543856f9e4ce4..353c6c4ee3f417c72515397fdb3f257c5ef6ed4c 100644 (file)
@@ -533,8 +533,7 @@ kill_command (arg, from_tty)
      char *arg;
      int from_tty;
 {
-  /* Shouldn't this be target_has_execution?  FIXME.  */
-  if (inferior_pid == 0)
+  if (!target_has_execution)
     error ("The program is not being run.");
   if (!query ("Kill the program being debugged? "))
     error ("Not confirmed.");