From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10335 invoked by alias); 12 Jun 2012 12:44:19 -0000 Received: (qmail 10326 invoked by uid 22791); 12 Jun 2012 12:44:18 -0000 X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 12 Jun 2012 12:43:57 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1SeQRu-0002yJ-5r from Yao_Qi@mentor.com ; Tue, 12 Jun 2012 05:43:54 -0700 Received: from SVR-ORW-FEM-03.mgc.mentorg.com ([147.34.97.39]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Tue, 12 Jun 2012 05:43:53 -0700 Received: from [127.0.0.1] (147.34.91.1) by svr-orw-fem-03.mgc.mentorg.com (147.34.97.39) with Microsoft SMTP Server id 14.1.289.1; Tue, 12 Jun 2012 05:43:52 -0700 Message-ID: <4FD73977.4050702@codesourcery.com> Date: Tue, 12 Jun 2012 12:44:00 -0000 From: Yao Qi User-Agent: Mozilla/5.0 (X11; Linux i686; rv:13.0) Gecko/20120601 Thunderbird/13.0 MIME-Version: 1.0 To: Jonathan Larmour CC: Terry Guo , , , Richard Earnshaw , 'Pedro Alves' , Joey Ye , Subject: Re: [RFC] Enable GDB handle compressed target.xml returned by GDB stub References: <000601cd47a4$33bf34f0$9b3d9ed0$@guo@arm.com> <4FD603E8.1050000@eCosCentric.com> In-Reply-To: <4FD603E8.1050000@eCosCentric.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit 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/msg00335.txt.bz2 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, 1. GDB sends qSupported with new feature like "$qSupported:multiprocess+;qRelocInsn;compressedXML+", means GDB understands compressed xml, 2. Stub replies with ";compressedXML+" to GDB, 3. GDB sends "$qXfer:features:read:target.xml" as usual, 4. Stub replies with compressed xml. If "compressedXML" doesn't appear in either #1 or #2, send target xml in plain text as usual. -- Yao (齐尧)