From ff9b3928e9fab5ea4de31101179059c4b91ad9d8 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Fri, 14 Mar 2008 15:46:32 +0000 Subject: [PATCH] * top.c (execute_command): Disable break and stop commands in async mode. --- gdb/ChangeLog | 5 +++++ gdb/top.c | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b444fb6b7bb..d02d4a96e4f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2008-03-14 Pedro Alves + + * top.c (execute_command): Disable break and stop + commands in async mode. + 2008-03-14 Pedro Alves revert: diff --git a/gdb/top.c b/gdb/top.c index ded24a3aacb..fba212b01b7 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.")); -- 2.30.2