From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1558 invoked by alias); 24 Jul 2008 15:14:20 -0000 Received: (qmail 1549 invoked by uid 22791); 24 Jul 2008 15:14:20 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 24 Jul 2008 15:14:00 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id B398F98376; Thu, 24 Jul 2008 15:13:58 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 9D87698337; Thu, 24 Jul 2008 15:13:58 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1KM2Vx-00086c-Kg; Thu, 24 Jul 2008 11:13:57 -0400 Date: Thu, 24 Jul 2008 15:14:00 -0000 From: Daniel Jacobowitz To: Pedro Alves Cc: gdb-patches@sourceware.org Subject: Re: Don't query extra info about the internal main thread Message-ID: <20080724151357.GA31121@caradoc.them.org> Mail-Followup-To: Pedro Alves , gdb-patches@sourceware.org References: <200807241609.35834.pedro@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200807241609.35834.pedro@codesourcery.com> User-Agent: Mutt/1.5.17 (2008-05-11) X-IsSubscribed: yes 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: 2008-07/txt/msg00430.txt.bz2 On Thu, Jul 24, 2008 at 04:09:35PM +0100, Pedro Alves wrote: > Hi, > > A couple of weeks ago, Dmitry Smirnov reported that GDB was trying to get > qThreadExtraInfo out of his target and it was damaging his debug session, as > GDB complained about a protocol error -- because the reply that came back > was ill-formed. > > If the remote side doesn't have any thread support, there's no use in > querying info about the main thread that GDB added internally. One would > expect stubs that don't support threads to return empty to this optional > packet, but his report showed that it's better to not rely on > stubs behaving. > > Tested against gdbserver with and without --disable-packet=threads. > > OK? OK. -- Daniel Jacobowitz CodeSourcery