From: J.T. Conklin Date: Tue, 2 Aug 1994 16:53:31 +0000 (+0000) Subject: * inflow.c (kill_command): Fix a bug which prevented target X-Git-Tag: gdb-4_18-branchpoint~13880 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=319faf21024f401ccb4a2b31e7fc4e20d8967e94;p=thirdparty%2Fbinutils-gdb.git * inflow.c (kill_command): Fix a bug which prevented target programs to be killed. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e901895b56d..2ab6a75bcce 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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. diff --git a/gdb/inflow.c b/gdb/inflow.c index 53b42ef7a84..353c6c4ee3f 100644 --- a/gdb/inflow.c +++ b/gdb/inflow.c @@ -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.");