2003-11-05 Elena Zannoni <ezannoni@redhat.com>
* top.c (execute_command): Fix broken logic for command execution while inferior is running in async mode.
This commit is contained in:
parent
cbdfc7c029
commit
d8fe84e397
2 changed files with 9 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2003-11-05 Elena Zannoni <ezannoni@redhat.com>
|
||||||
|
|
||||||
|
* top.c (execute_command): Fix broken logic for command execution
|
||||||
|
while inferior is running in async mode.
|
||||||
|
|
||||||
2003-11-06 Mark Kettenis <kettenis@gnu.org>
|
2003-11-06 Mark Kettenis <kettenis@gnu.org>
|
||||||
|
|
||||||
* dwarf2-frame.c (execute_cfa_program): Mark register as
|
* dwarf2-frame.c (execute_cfa_program): Mark register as
|
||||||
|
|
|
@ -669,10 +669,10 @@ execute_command (char *p, int from_tty)
|
||||||
/* If the target is running, we allow only a limited set of
|
/* If the target is running, we allow only a limited set of
|
||||||
commands. */
|
commands. */
|
||||||
if (event_loop_p && target_can_async_p () && target_executing)
|
if (event_loop_p && target_can_async_p () && target_executing)
|
||||||
if (!strcmp (c->name, "help")
|
if (strcmp (c->name, "help") != 0
|
||||||
&& !strcmp (c->name, "pwd")
|
&& strcmp (c->name, "pwd") != 0
|
||||||
&& !strcmp (c->name, "show")
|
&& strcmp (c->name, "show") != 0
|
||||||
&& !strcmp (c->name, "stop"))
|
&& strcmp (c->name, "stop") != 0)
|
||||||
error ("Cannot execute this command while the target is running.");
|
error ("Cannot execute this command while the target is running.");
|
||||||
|
|
||||||
/* Pass null arg rather than an empty one. */
|
/* Pass null arg rather than an empty one. */
|
||||||
|
|
Loading…
Add table
Reference in a new issue