From: Doug Evans Date: Sun, 20 Jul 2014 22:36:23 +0000 (-0700) Subject: Improve error message to cope with pr 17147. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9597b22adf3552a5617d73104d8facd6a7aea881;p=binutils-gdb.git Improve error message to cope with pr 17147. PR server/17147 * remote.c (putpkt_binary): Add text to error message. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 164a2a2f16e..172021e3e0c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2014-07-20 Doug Evans + + PR server/17147 + * remote.c (putpkt_binary): Add text to error message. + 2014-07-20 Yao Qi * eval.c: Remove "Chill" from comments. diff --git a/gdb/remote.c b/gdb/remote.c index 76efefa32b6..29c03bcf5aa 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -7149,7 +7149,11 @@ putpkt_binary (char *buf, int cnt) running. This is not a problem in non-stop mode, because in that case, the stub is always ready to process serial input. */ if (!non_stop && target_can_async_p () && rs->waiting_for_stop_reply) - error (_("Cannot execute this command while the target is running.")); + { + error (_("Cannot execute this command while the target is running.\n" + "Use the \"interrupt\" command to stop the target\n" + "and then try again.")); + } /* We're sending out a new packet. Make sure we don't look at a stale cached response. */