Improve error message to cope with pr 17147.

PR server/17147
	* remote.c (putpkt_binary): Add text to error message.
This commit is contained in:
Doug Evans 2014-07-20 15:36:23 -07:00
parent 91101fe524
commit 9597b22adf
2 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2014-07-20 Doug Evans <dje@google.com>
PR server/17147
* remote.c (putpkt_binary): Add text to error message.
2014-07-20 Yao Qi <yao@codesourcery.com>
* eval.c: Remove "Chill" from comments.

View file

@ -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. */