From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13990 invoked by alias); 14 Jun 2012 01:11:52 -0000 Received: (qmail 13982 invoked by uid 22791); 14 Jun 2012 01:11:51 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,MSGID_MULTIPLE_AT,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from service87.mimecast.com (HELO service87.mimecast.com) (91.220.42.44) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 14 Jun 2012 01:11:39 +0000 Received: from cam-owa1.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.21]) by service87.mimecast.com; Thu, 14 Jun 2012 02:11:36 +0100 Received: from shawin053 ([10.1.255.212]) by cam-owa1.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.0); Thu, 14 Jun 2012 02:12:01 +0100 From: "Terry Guo" To: "'Jonathan Larmour'" , "Ulrich Weigand" Cc: "'Pedro Alves'" , "Yao Qi" , , , "Richard Earnshaw" , "Joey Ye" References: <201206131312.q5DDCUfK028160@d06av02.portsmouth.uk.ibm.com> <4FD899D8.7080903@eCosCentric.com> In-Reply-To: <4FD899D8.7080903@eCosCentric.com> Subject: RE: [RFC] Enable GDB handle compressed target.xml returned by GDB stub Date: Thu, 14 Jun 2012 01:11:00 -0000 Message-ID: <000401cd49ca$b905f810$2b11e830$@guo@arm.com> MIME-Version: 1.0 X-MC-Unique: 112061402113600501 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable 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: 2012-06/txt/msg00455.txt.bz2 > -----Original Message----- > From: Jonathan Larmour [mailto:jifl@ecoscentric.com] > Sent: Wednesday, June 13, 2012 9:47 PM > To: Ulrich Weigand > Cc: Terry Guo; 'Pedro Alves'; Yao Qi; gdb-patches@sourceware.org; > tromey@redhat.com; Richard Earnshaw; Joey Ye > Subject: Re: [RFC] Enable GDB handle compressed target.xml returned by > GDB stub >=20 > On 13/06/12 14:12, Ulrich Weigand wrote: > > Terry Guo wrote: > > > >> Yes, we need to consider xi:includes which means we have to involve > a > >> global state. > > > > Not necessarily; the way I had intended my suggestion to work was > that > > GDB always adds ".gz" (or some other suffix if we actually are not > > compatible with the .gz file format) to *every* file it fetches, not > > just to the initial target.xml, but also to other files fetched via > > xi:include statements ... > > > > If the compressed version of the file is not available, GDB would > > then fall back to the original file name (on a file-by-file basis). >=20 > I agree. >=20 > This also means that the target can choose whether to return any file > as > compressed or not, rather than having to have everything compressed > from > then on, even if some XML files might take up more space compressed > than > uncompressed, or might need to be generated - but not all files. It's > getting a bit hypothetical at this point, it's true, but not > unreasonably so. >=20 Thanks Ulrich and Jonathan, I think I get your points. Now the only remaining question is about the suffix. How about just the .z, like "qXfer:features:read:target.xml.z" which means the host gdb is trying to request something compressed by zlib? BR, Terry