Improve error message to cope with pr 17147.
authorDoug Evans <dje@google.com>
Sun, 20 Jul 2014 22:36:23 +0000 (15:36 -0700)
committerDoug Evans <dje@google.com>
Sun, 20 Jul 2014 22:36:23 +0000 (15:36 -0700)
PR server/17147
* remote.c (putpkt_binary): Add text to error message.

gdb/ChangeLog
gdb/remote.c

index 164a2a2..172021e 100644 (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.
index 76efefa..29c03bc 100644 (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.  */