From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30909 invoked by alias); 10 Feb 2012 13:07:09 -0000 Received: (qmail 30892 invoked by uid 22791); 10 Feb 2012 13:07:07 -0000 X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=AWL,BAYES_00 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; Fri, 10 Feb 2012 13:06:44 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1RvqBX-0003sp-G6 from Yao_Qi@mentor.com ; Fri, 10 Feb 2012 05:06:43 -0800 Received: from SVR-ORW-FEM-02.mgc.mentorg.com ([147.34.96.206]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Fri, 10 Feb 2012 05:06:31 -0800 Received: from [127.0.0.1] (147.34.91.1) by svr-orw-fem-02.mgc.mentorg.com (147.34.96.168) with Microsoft SMTP Server id 14.1.289.1; Fri, 10 Feb 2012 05:06:42 -0800 Message-ID: <4F351659.8070803@codesourcery.com> Date: Fri, 10 Feb 2012 13:07:00 -0000 From: Yao Qi User-Agent: Mozilla/5.0 (X11; Linux i686; rv:9.0) Gecko/20111220 Thunderbird/9.0 MIME-Version: 1.0 To: Pedro Alves CC: Subject: Re: [patch 6/8] Agent's capability References: <4F1D55D7.7030506@codesourcery.com> <4F1D68A2.2080503@codesourcery.com> <4F3427EF.10906@redhat.com> <4F350CB6.80404@codesourcery.com> <4F350F70.5050902@redhat.com> In-Reply-To: <4F350F70.5050902@redhat.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-02/txt/msg00175.txt.bz2 On 02/10/2012 08:37 PM, Pedro Alves wrote: > On 02/10/2012 12:25 PM, Yao Qi wrote: >> On 02/10/2012 04:09 AM, Pedro Alves wrote: >>> That page is obsolete. We've been addressing those kinds of things with >>> qSupported features. I won't stand in the way of this change, but I do >>> wonder whether we shouldn't instead ask the agent about its features with >>> a similar (or exactly the same) mechanism. >> >> qSupported is used for GDB to get the list of features remote stub >> supports. However, agent can talk with GDB or GDBserver directly, so I >> hope GDB and GDBserver can use the same interface to get agent's >> capability. qSupported doesn't help here. > > ??? We have a way to sent commands to the agent, hence, > "I do wonder whether we shouldn't instead ask the agent about its > features with a similar (or exactly the same) mechanism.". Heck, > the agent itself could speak RSP, so we could just have gdb or gdbserver > forward it the tracepoint, breakpoint, etc packets. > Bit flags only allow on/off, and we'll run out of bits at some point. A > qSupported-like mechanism wouldn't have those issues. Just saying. > OK, I get your point. It is reasonable to me. -- Yao (齐尧)