* top.c (execute_command): Disable break and stop
authorPedro Alves <palves@redhat.com>
Fri, 14 Mar 2008 15:46:32 +0000 (15:46 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 14 Mar 2008 15:46:32 +0000 (15:46 +0000)
commands in async mode.

gdb/ChangeLog
gdb/top.c

index b444fb6b7bba848543de52ef306eb82b8a7c413c..d02d4a96e4f37be4f9b6deff7e828f035f5c7b8c 100644 (file)
@@ -1,3 +1,8 @@
+2008-03-14  Pedro Alves  <pedro@codesourcery.com>
+
+       * top.c (execute_command): Disable break and stop
+       commands in async mode.
+
 2008-03-14  Pedro Alves  <pedro@codesourcery.com>
 
        revert:
index ded24a3aacb28d62b47c81cf36b6021c5a22ea80..fba212b01b74263e574a923b29d86ee09091742f 100644 (file)
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -405,8 +405,6 @@ execute_command (char *p, int from_tty)
        if (strcmp (c->name, "help") != 0
            && strcmp (c->name, "pwd") != 0
            && strcmp (c->name, "show") != 0
-           && strcmp (c->name, "stop") != 0
-           && strcmp (c->name, "break") != 0
            && strcmp (c->name, "info") != 0
            && strcmp (c->name, "interrupt") != 0)
          error (_("Cannot execute this command while the target is running."));