From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1965 invoked by alias); 5 Feb 2012 04:32:34 -0000 Received: (qmail 1830 invoked by uid 22791); 5 Feb 2012 04:32:27 -0000 X-SWARE-Spam-Status: No, hits=-0.4 required=5.0 tests=AWL,BAYES_00,FROM_12LTRDOM 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; Sun, 05 Feb 2012 04:32:07 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1Rttlm-0002Ky-Jk from Yao_Qi@mentor.com for gdb-patches@sourceware.org; Sat, 04 Feb 2012 20:32:06 -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); Sat, 4 Feb 2012 20:31:21 -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; Sat, 4 Feb 2012 20:32:05 -0800 Message-ID: <4F2E0647.4080205@codesourcery.com> Date: Sun, 05 Feb 2012 04:32: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: Subject: [ping] [patch 0/8] GDB/GDBserver talks with agents References: <4F1D55D7.7030506@codesourcery.com> In-Reply-To: <4F1D55D7.7030506@codesourcery.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/msg00056.txt.bz2 On 01/23/2012 08:43 PM, Yao Qi wrote: > When I am working on the new agent library [1], I found that only > gdbserver is able to interact with agent on static tracepoints only. > There are two limitations here, 1) only gdbserver is able to talk with > agent, 2) only static tracepoint operations can be performed by agent. > In order to make the interface of gdbserver and agent more clear, and > new agent library as flexible as possible, these two limitations should > be overcame/removed. > > In this patch set, we generalize the original code in > gdbserver/tracepoint.c to talk with agent for static tracepoint, move > "common" part into gdb/common/agent.c, so that both gdb and gdbserver > can call them to interact with agent. Secondly, the communication > method (sync socket and command buffer) between gdbserver and > libinproctrace.so is kept, but is generalized to some extent, so that, > gdb and gdbserver is able to communicate with agent for other purposes, > such as installing fast tracepoint or evaluating breakpoint conditions. > The operations for static tracepoint are regarded as one sort of > commands on this communication channel. > > This patch set doesn't change any existing functions of gdb and > gdbserver, but it makes gdb and gdbserver easier to communicate with > other agents. > Ping this series of patches. http://sourceware.org/ml/gdb-patches/2012-01/msg00762.html -- Yao (齐尧)