Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [patch] More suggestive error_is_running message
@ 2012-04-10 19:20 Jan Kratochvil
  2012-04-10 21:30 ` Sergio Durigan Junior
  2012-04-11 15:35 ` Joel Brobecker
  0 siblings, 2 replies; 10+ messages in thread
From: Jan Kratochvil @ 2012-04-10 19:20 UTC (permalink / raw)
  To: gdb-patches

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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2012-04-17 22:59 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-10 19:20 [patch] More suggestive error_is_running message Jan Kratochvil
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox