Re: [patch 3/8] Command `set agent on|off'

Eli Zaretskii
2012-01-24T05:49:34Z

> Date: Tue, 24 Jan 2012 07:46:46 +0800
> From: Yao Qi <yao@codesourcery.com>
> CC: <gdb-patches@sourceware.org>
>
> 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"),

Thanks, but I think this goes too far. I suggest this shorter
description:

If ON, GDB will delegate some of the debugging operations to the
agent, if the target supports it. This will speed up those
operations that are supported by the agent.
If OFF GDB will not use agent, even if such is supported by the
target.

Also note that your last sentence lacks a period at its end.