diff options
author | Doug Evans <dje@google.com> | 2014-07-20 15:36:23 -0700 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2014-07-20 15:36:23 -0700 |
commit | 9597b22adf3552a5617d73104d8facd6a7aea881 (patch) | |
tree | 28075fb9e3a7d998d73a229a4c71fe3c318d0a9d /gdb | |
parent | 91101fe524e5ae8a912880bf3350ad93d511181a (diff) | |
download | gdb-9597b22adf3552a5617d73104d8facd6a7aea881.zip gdb-9597b22adf3552a5617d73104d8facd6a7aea881.tar.gz gdb-9597b22adf3552a5617d73104d8facd6a7aea881.tar.bz2 |
Improve error message to cope with pr 17147.
PR server/17147
* remote.c (putpkt_binary): Add text to error message.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/remote.c | 6 |
2 files changed, 10 insertions, 1 deletions
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 <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. 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. */ |