+2014-02-19 Tom Tromey <tromey@redhat.com>
+
+ * target.h (struct target_ops) <to_use_agent>: Add argument.
+ (target_use_agent): Add argument.
+ * target.c (update_current_target): Update.
+ * remote.c (remote_use_agent): Add 'self' argument.
+ * inf-child.c (inf_child_use_agent): Add 'self' argument.
+
2014-02-19 Tom Tromey <tromey@redhat.com>
* tracepoint.c (tfile_traceframe_info): Add 'self' argument.
}
static int
-inf_child_use_agent (int use)
+inf_child_use_agent (struct target_ops *self, int use)
{
if (agent_loaded_p ())
{
}
static int
-remote_use_agent (int use)
+remote_use_agent (struct target_ops *self, int use)
{
if (remote_protocol_packets[PACKET_QAgent].support != PACKET_DISABLE)
{
(int (*) (struct target_ops *))
return_zero);
de_fault (to_use_agent,
- (int (*) (int))
+ (int (*) (struct target_ops *, int))
tcomplain);
de_fault (to_can_use_agent,
(int (*) (void))
/* Ask the target to use or not to use agent according to USE. Return 1
successful, 0 otherwise. */
- int (*to_use_agent) (int use);
+ int (*to_use_agent) (struct target_ops *, int use);
/* Is the target able to use agent in current state? */
int (*to_can_use_agent) (void);
(*current_target.to_traceframe_info) (¤t_target)
#define target_use_agent(use) \
- (*current_target.to_use_agent) (use)
+ (*current_target.to_use_agent) (¤t_target, use)
#define target_can_use_agent() \
(*current_target.to_can_use_agent) ()