[patch 5/8] Doc for agent

Pedro Alves palves@redhat.com
Fri Feb 10 15:01:00 GMT 2012


On 02/10/2012 01:29 PM, Yao Qi wrote:
> On 02/10/2012 03:54 AM, Pedro Alves wrote:
>> Some things, like the new target-side breakpoint conditions, and tracepoints,
>> use agent expressions as well, without having an agent loaded in the inferior.
>> Do you think it still makes sense to move the whole section considering that?
> 
> No, I don't think it makes sense anymore, because agent expression is being
> used in non-agent cases.  My patch should be updated as well.  We
> can add a new chapter for "Agent", which is about how to control
> agent by commands, and leave original appendix GDB Agent Expression
> Mechanism there, with some minor changes, where needed.  WDYT?

Sounds good.

Re. "control agent by commands".  So you're planning on making the agent speak
some other command set other than RSP?  I'd think that making it talk exactly
RSP would be the best, since #1, you need some kind of command set anyway;
#2, the agent should be able to support debugging (stepping, breakpoints,
etc.) without gdbserver involved, and for that you'd want to support
the RSP anyway so that GDB can connect.  Unless you're coming up with some
new rpc/marshaling protocol that's clearly superior to RSP?

-- 
Pedro Alves



More information about the Gdb-patches mailing list