OSDN Git Service

* top.c (execute_command): Disable break and stop
authorpalves <palves>
Fri, 14 Mar 2008 15:46:32 +0000 (15:46 +0000)
committerpalves <palves>
Fri, 14 Mar 2008 15:46:32 +0000 (15:46 +0000)
commands in async mode.

gdb/ChangeLog
gdb/top.c

index b444fb6..d02d4a9 100644 (file)
@@ -1,5 +1,10 @@
 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:
        2008-03-14  Pedro Alves  <pedro@codesourcery.com>
        * inf-loop.c (inferior_event_handler): Don't include remote.h.
index ded24a3..fba212b 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."));