From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31406 invoked by alias); 23 Jan 2012 23:47:05 -0000 Received: (qmail 31396 invoked by uid 22791); 23 Jan 2012 23:47:04 -0000 X-SWARE-Spam-Status: No, hits=-0.4 required=5.0 tests=AWL,BAYES_40 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; Mon, 23 Jan 2012 23:46:51 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1RpTb8-0003ta-MS from Yao_Qi@mentor.com ; Mon, 23 Jan 2012 15:46:50 -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); Mon, 23 Jan 2012 15:46:07 -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; Mon, 23 Jan 2012 15:46:49 -0800 Message-ID: <4F1DF166.7010005@codesourcery.com> Date: Tue, 24 Jan 2012 00:28: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: Eli Zaretskii CC: Subject: Re: [patch 3/8] Command `set agent on|off' References: <4F1D55D7.7030506@codesourcery.com> <4F1D659F.40608@codesourcery.com> <83aa5e2vgp.fsf@gnu.org> In-Reply-To: <83aa5e2vgp.fsf@gnu.org> 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-01/txt/msg00800.txt.bz2 On 01/24/2012 01:13 AM, Eli Zaretskii wrote: >> > + add_setshow_enum_cmd ("agent", class_run, >> > + can_use_agent_enum, >> > + &can_use_agent, _("\ >> > +Set debugger's willingness to use agent as a helper."), _("\ >> > +Show debugger's willingness to use agent as a helper."), _("\ >> > +If on, gdb will use agent as a helper if it is supported by the target.\n\ >> > +If off, gdb will not use agent, even if such is supported by the target\n"), > This doc string should say a little more. In particular, what is the > purpose of using "agent as a helper"? helper to do what? This question made some troubles when I was writing document. The idea of agent work is to delegate some debugging works from gdb/gdbserver to agent, to improve the performance of debugging, because we think some debugging operations are faster executed in agent than in gdb/gdbserver. What sort of debugging works agent can do "as a helper" depends on the agent's capability, so agents can do various things. Current agent libinproctrace.so is a helper for static tracepoint operations. The new agent library we are writing is a helper for 1) operating static tracepoint, 2) installing fast tracepoint, and 3) evaluating breakpoint conditions. How about this, Set debugger's willingness to use agent as a helper."), _("\ Show debugger's willingness to use agent as a helper."), _("\ Agent, a shared library running in the same process of inferior, takes some delegated debugging works from GDB/GDBserver. Since it is faster to execute some debugging operations in agent than in GDB/GDBserver, the performance of debugging can be improved. The delegated debugging works vary on agents, depend on the actual capability of agents. If on, gdb will use agent as a helper if it is supported by the target.\n\ If off, gdb will not use agent, even if such is supported by the target\n"), -- Yao (齐尧)