From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17287 invoked by alias); 12 Jun 2012 12:57:00 -0000 Received: (qmail 17242 invoked by uid 22791); 12 Jun 2012 12:56:58 -0000 X-SWARE-Spam-Status: No, hits=-4.1 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,MSGID_FROM_MTA_HEADER,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from e06smtp13.uk.ibm.com (HELO e06smtp13.uk.ibm.com) (195.75.94.109) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 12 Jun 2012 12:56:44 +0000 Received: from /spool/local by e06smtp13.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 12 Jun 2012 13:56:43 +0100 Received: from d06nrmr1806.portsmouth.uk.ibm.com (9.149.39.193) by e06smtp13.uk.ibm.com (192.168.101.143) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 12 Jun 2012 13:56:42 +0100 Received: from d06av02.portsmouth.uk.ibm.com (d06av02.portsmouth.uk.ibm.com [9.149.37.228]) by d06nrmr1806.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q5CCufrC2031636 for ; Tue, 12 Jun 2012 13:56:41 +0100 Received: from d06av02.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av02.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q5CCuc16003691 for ; Tue, 12 Jun 2012 06:56:40 -0600 Received: from tuxmaker.boeblingen.de.ibm.com (tuxmaker.boeblingen.de.ibm.com [9.152.85.9]) by d06av02.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with SMTP id q5CCua79003559; Tue, 12 Jun 2012 06:56:36 -0600 Message-Id: <201206121256.q5CCua79003559@d06av02.portsmouth.uk.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Tue, 12 Jun 2012 14:56:36 +0200 Subject: Re: [RFC] Enable GDB handle compressed target.xml returned by GDB stub To: yao@codesourcery.com (Yao Qi) Date: Tue, 12 Jun 2012 12:57:00 -0000 From: "Ulrich Weigand" Cc: jifl@eCosCentric.com (Jonathan Larmour), terry.guo@arm.com (Terry Guo), gdb-patches@sourceware.org, tromey@redhat.com, Richard.Earnshaw@arm.com (Richard Earnshaw), palves@redhat.com ('Pedro Alves'), Joey.Ye@arm.com (Joey Ye) In-Reply-To: <4FD73977.4050702@codesourcery.com> from "Yao Qi" at Jun 12, 2012 08:43:35 PM MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit x-cbid: 12061212-2966-0000-0000-0000045F5C16 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: 2012-06/txt/msg00337.txt.bz2 Yao Qi wrote: > On 06/11/2012 10:42 PM, Jonathan Larmour wrote: > > It may want some variation on the qSupported "qXfer:features:read" > > response instead. I'll defer to GDB maintainers in the choice, but perhaps > > qXfer:features:zread ? > > I'd like GDB keeps using qXfer:features:read:target.xml to fetch the xml > file, even it is compressed. We need some changes on qSupported in both > sides, That still makes the result of qXfer:features:read:target.xml dependent on global state ... Why not simply support compressed files by having the stub respond to qXfer:features:read:target.xml.gz (etc) if it has a compressed file image? Optionally we might still add a qSupported feature as you describe; otherwise GDB might just probe whether the stub knows .gz files. Bye, Ulrich -- Dr. Ulrich Weigand GNU Toolchain for Linux on System z and Cell BE Ulrich.Weigand@de.ibm.com