From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31678 invoked by alias); 19 Oct 2010 14:52:23 -0000 Received: (qmail 31505 invoked by uid 22791); 19 Oct 2010 14:52:21 -0000 X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=AWL,BAYES_20,SPF_FAIL X-Spam-Check-By: sourceware.org Received: from gate.lvk.cs.msu.su (HELO mail.lvk.cs.msu.su) (158.250.17.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 19 Oct 2010 14:52:09 +0000 Received: from mail.lvk.cs.msu.su (localhost [127.0.0.1]) by mail.lvk.cs.msu.su (Postfix) with ESMTP id 66B17589A; Tue, 19 Oct 2010 18:52:04 +0400 (MSD) X-Spam-ASN: Received: from thunder.localnet (h86-62-88-129.ln.rinet.ru [86.62.88.129]) by mail.lvk.cs.msu.su (Postfix) with ESMTPSA id 5615E3968; Tue, 19 Oct 2010 18:52:04 +0400 (MSD) From: Vladimir Prus To: gdb-patches@sourceware.org Subject: Don't warn if target reports no threads Date: Tue, 19 Oct 2010 14:52:00 -0000 User-Agent: KMail/1.13.5 (Linux/2.6.35-22-generic-pae; KDE/4.5.1; i686; ; ) MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_TCbvMnYOlbgHu1e" Message-Id: <201010191852.03421.vladimir@codesourcery.com> X-AV-Checked: ClamAV using ClamSMTP Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-10/txt/msg00293.txt.bz2 --Boundary-00=_TCbvMnYOlbgHu1e Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-length: 367 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 --Boundary-00=_TCbvMnYOlbgHu1e Content-Type: text/x-patch; charset="UTF-8"; name="rmt-no-warning.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="rmt-no-warning.diff" Content-length: 366 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; */ --Boundary-00=_TCbvMnYOlbgHu1e--