From 9597b22adf3552a5617d73104d8facd6a7aea881 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Sun, 20 Jul 2014 15:36:23 -0700 Subject: Improve error message to cope with pr 17147. PR server/17147 * remote.c (putpkt_binary): Add text to error message. --- gdb/ChangeLog | 5 +++++ gdb/remote.c | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 164a2a2..172021e 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 76efefa..29c03bc 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. */ -- cgit v1.1