* top.c (execute_command): Enable break, info and interrupt
authorPedro Alves <palves@redhat.com>
Fri, 14 Mar 2008 07:59:32 +0000 (07:59 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 14 Mar 2008 07:59:32 +0000 (07:59 +0000)
commands in async mode.

gdb/ChangeLog
gdb/top.c

index 7a8eb9502816d6c4366acb8ba4a90f3098410426..3f7b0a80884d931b30fe2b65f59f568384a12c2e 100644 (file)
@@ -1,3 +1,8 @@
+2008-03-14  Pedro Alves  <pedro@codesourcery.com>
+
+       * top.c (execute_command): Enable break, info and interrupt
+       commands in async mode.
+
 2008-03-13  Vladimir Prus  <vladimir@codesourcery.com>
            Daniel Jacobowitz  <dan@codesourcery.com>
 
index 9ad2f54a1796347bcda3ec7dbbdfb862823cbc88..ded24a3aacb28d62b47c81cf36b6021c5a22ea80 100644 (file)
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -405,7 +405,10 @@ 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, "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."));
 
       /* Pass null arg rather than an empty one.  */