aboutsummaryrefslogtreecommitdiff
path: root/gdb/inflow.c
diff options
context:
space:
mode:
authorJ.T. Conklin <jtc@acorntoolworks.com>1994-08-02 16:53:31 +0000
committerJ.T. Conklin <jtc@acorntoolworks.com>1994-08-02 16:53:31 +0000
commit319faf21024f401ccb4a2b31e7fc4e20d8967e94 (patch)
tree01bedade53258a71f310e568abb1f98a72e1154a /gdb/inflow.c
parentbb329c20090014b701dd2d0af988b3236d32241d (diff)
downloadgdb-319faf21024f401ccb4a2b31e7fc4e20d8967e94.zip
gdb-319faf21024f401ccb4a2b31e7fc4e20d8967e94.tar.gz
gdb-319faf21024f401ccb4a2b31e7fc4e20d8967e94.tar.bz2
* inflow.c (kill_command): Fix a bug which prevented target
programs to be killed.
Diffstat (limited to 'gdb/inflow.c')
-rw-r--r--gdb/inflow.c3
1 files changed, 1 insertions, 2 deletions
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.");