From 319faf21024f401ccb4a2b31e7fc4e20d8967e94 Mon Sep 17 00:00:00 2001 From: "J.T. Conklin" Date: Tue, 2 Aug 1994 16:53:31 +0000 Subject: * inflow.c (kill_command): Fix a bug which prevented target programs to be killed. --- gdb/inflow.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gdb/inflow.c') diff --git a/gdb/inflow.c b/gdb/inflow.c index 53b42ef..353c6c4 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."); -- cgit v1.1