* inflow.c (kill_command): Fix a bug which prevented target
programs to be killed.
This commit is contained in:
parent
bb329c2009
commit
319faf2102
|
@ -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.
|
||||
|
|
|
@ -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.");
|
||||
|
|
Loading…
Reference in New Issue