This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 2/9] add target_ops fields use_agent and can_use_agent


On 02/24/2012 01:00 PM, Yao Qi wrote:
> 2012-02-17  Yao Qi  <yao@codesourcery.com>
> 
> 	* target.h (struct target_ops) <to_use_agent>: New field.
> 	(struct target_ops) <to_can_use_agent>: New field.
> 	(target_use_agent, target_can_use_agent): New macro.
> 	* target.c (update_current_target): Update.
> 	* remote.c: New enum `PACKET_QAgent'.
> 	(remote_protocol_features): Add a new element.
> 	(remote_use_agent, remote_can_use_agent): New.
> 	(init_remote_ops): Initialize field `can_use_agent' with
> 	remote_can_use_agent.  Intiailize field `use_agent' with
> 	remote_use_agent.
> 	* common/agent.c (use_agent): New global.
> 	* common/agent.h: Declare it.
> 	* tracepoint.c (info_static_tracepoint_markers_command): Add
> 	comment.
> 
> gdb/gdbserver:
> 
> 2012-02-17  Yao Qi  <yao@codesourcery.com>
> 
> 	* linux-low.c (linux_supports_agent): New.
> 	(linux_target_ops): Initialize field `supports_agent' with
> 	linux_supports_agent.
> 	* target.h (struct target_ops) <supports_agent>: New.
> 	(target_supports_agent): New macro.
> 	* server.c (handle_general_set): Handle packet 'QAgent'.
> 	(handle_query): Send `QAgent+'.
> 	* Makefile.in (server.o): Depends on agent.h

This version is okay.

-- 
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]