From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: gdb-patches@sourceware.org
Subject: [patch] More suggestive error_is_running message
Date: Tue, 10 Apr 2012 19:20:00 -0000 [thread overview]
Message-ID: <20120410191907.GA31331@host2.jankratochvil.net> (raw)
Hi,
I was debugging some testsuite race before I figured out in non-stop mode one
has to wait first for
[Thread N] #1 stopped.
before executing any commands otherwise one gets:
Cannot execute this command while the selected thread is running.
Not sure if this error message would help me or not but I found it tricky.
No regressions on {x86_64,x86_64-m32,i686}-fedora17-linux-gnu.
I am not going to check it in on my own.
Thanks,
Jan
gdb/
2012-04-10 Jan Kratochvil <jan.kratochvil@redhat.com>
Provide more specific error_is_running error message.
* infrun.c (error_is_running): Extend the error message text.
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -3038,7 +3045,9 @@ void
error_is_running (void)
{
error (_("Cannot execute this command while "
- "the selected thread is running."));
+ "the selected thread is running. "
+ "(You may want to use 'interrupt' "
+ "and wait for '[Thread N] #1 stopped.'.)"));
}
void
next reply other threads:[~2012-04-10 19:19 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-10 19:20 Jan Kratochvil [this message]
2012-04-10 21:30 ` Sergio Durigan Junior
2012-04-11 2:16 ` Jan Kratochvil
2012-04-11 4:55 ` Sergio Durigan Junior
2012-04-12 15:28 ` Tom Tromey
2012-04-11 15:35 ` Joel Brobecker
2012-04-11 15:48 ` [cancel] " Jan Kratochvil
2012-04-11 17:17 ` Joel Brobecker
2012-04-17 21:26 ` Jan Kratochvil
2012-04-17 23:01 ` Joel Brobecker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120410191907.GA31331@host2.jankratochvil.net \
--to=jan.kratochvil@redhat.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox