Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* Don't warn if target reports no threads
@ 2010-10-19 14:52 Vladimir Prus
  2010-10-19 15:01 ` Pedro Alves
  0 siblings, 1 reply; 3+ messages in thread
From: Vladimir Prus @ 2010-10-19 14:52 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: Text/Plain, Size: 367 bytes --]


In the case when stub refuses to understand all modern thread-listing packets,
GDB falls back to qL packet, if if stub refuses to handle that either, 
reports:

	RMT ERROR : failed to get remote thread list.

The further operation continues normally, and qL is really optional packet, so
there's no point scaring a user like that. Is the patch below OK?

- Volodya


[-- Attachment #2: rmt-no-warning.diff --]
[-- Type: text/x-patch, Size: 366 bytes --]

diff --git a/gdb/remote.c b/gdb/remote.c
index 50e671d..e3c4117 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -2523,7 +2523,6 @@ remote_get_threadlist (int startflag, threadref *nextthread, int result_limit,
     {
       if (*done != 1)
 	{
-	  warning (_("RMT ERROR : failed to get remote thread list."));
 	  result = 0;
 	}
       return result;		/* break; */

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

end of thread, other threads:[~2010-10-20  9:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-19 14:52 Don't warn if target reports no threads Vladimir Prus
2010-10-19 15:01 ` Pedro Alves
2010-10-20  9:11   ` Vladimir Prus

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