From: palves Date: Fri, 14 Mar 2008 15:46:32 +0000 (+0000) Subject: * top.c (execute_command): Disable break and stop X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=93c5a5de9b724834c9b7fbf219a4a3d4e4c83528;p=pf3gnuchains%2Fpf3gnuchains3x.git * top.c (execute_command): Disable break and stop commands in async mode. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b444fb6b7b..d02d4a96e4 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2008-03-14 Pedro Alves + * top.c (execute_command): Disable break and stop + commands in async mode. + +2008-03-14 Pedro Alves + revert: 2008-03-14 Pedro Alves * inf-loop.c (inferior_event_handler): Don't include remote.h. diff --git a/gdb/top.c b/gdb/top.c index ded24a3aac..fba212b01b 100644 --- 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."));