mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 01:50:24 +08:00
Add target_ops argument to to_can_use_agent
2014-02-19 Tom Tromey <tromey@redhat.com> * target.h (struct target_ops) <to_can_use_agent>: Add argument. (target_can_use_agent): Add argument. * target.c (update_current_target): Update. * remote.c (remote_can_use_agent): Add 'self' argument. * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
This commit is contained in:
@ -1,3 +1,11 @@
|
|||||||
|
2014-02-19 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
|
* target.h (struct target_ops) <to_can_use_agent>: Add argument.
|
||||||
|
(target_can_use_agent): Add argument.
|
||||||
|
* target.c (update_current_target): Update.
|
||||||
|
* remote.c (remote_can_use_agent): Add 'self' argument.
|
||||||
|
* inf-child.c (inf_child_can_use_agent): Add 'self' argument.
|
||||||
|
|
||||||
2014-02-19 Tom Tromey <tromey@redhat.com>
|
2014-02-19 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
* target.h (struct target_ops) <to_use_agent>: Add argument.
|
* target.h (struct target_ops) <to_use_agent>: Add argument.
|
||||||
|
@ -384,7 +384,7 @@ inf_child_use_agent (struct target_ops *self, int use)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
inf_child_can_use_agent (void)
|
inf_child_can_use_agent (struct target_ops *self)
|
||||||
{
|
{
|
||||||
return agent_loaded_p ();
|
return agent_loaded_p ();
|
||||||
}
|
}
|
||||||
|
@ -11214,7 +11214,7 @@ remote_use_agent (struct target_ops *self, int use)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
remote_can_use_agent (void)
|
remote_can_use_agent (struct target_ops *self)
|
||||||
{
|
{
|
||||||
return (remote_protocol_packets[PACKET_QAgent].support != PACKET_DISABLE);
|
return (remote_protocol_packets[PACKET_QAgent].support != PACKET_DISABLE);
|
||||||
}
|
}
|
||||||
|
@ -944,7 +944,7 @@ update_current_target (void)
|
|||||||
(int (*) (struct target_ops *, int))
|
(int (*) (struct target_ops *, int))
|
||||||
tcomplain);
|
tcomplain);
|
||||||
de_fault (to_can_use_agent,
|
de_fault (to_can_use_agent,
|
||||||
(int (*) (void))
|
(int (*) (struct target_ops *))
|
||||||
return_zero);
|
return_zero);
|
||||||
de_fault (to_augmented_libraries_svr4_read,
|
de_fault (to_augmented_libraries_svr4_read,
|
||||||
(int (*) (void))
|
(int (*) (void))
|
||||||
|
@ -895,7 +895,7 @@ struct target_ops
|
|||||||
int (*to_use_agent) (struct target_ops *, int use);
|
int (*to_use_agent) (struct target_ops *, int use);
|
||||||
|
|
||||||
/* Is the target able to use agent in current state? */
|
/* Is the target able to use agent in current state? */
|
||||||
int (*to_can_use_agent) (void);
|
int (*to_can_use_agent) (struct target_ops *);
|
||||||
|
|
||||||
/* Check whether the target supports branch tracing. */
|
/* Check whether the target supports branch tracing. */
|
||||||
int (*to_supports_btrace) (struct target_ops *)
|
int (*to_supports_btrace) (struct target_ops *)
|
||||||
@ -1882,7 +1882,7 @@ extern char *target_fileio_read_stralloc (const char *filename);
|
|||||||
(*current_target.to_use_agent) (¤t_target, use)
|
(*current_target.to_use_agent) (¤t_target, use)
|
||||||
|
|
||||||
#define target_can_use_agent() \
|
#define target_can_use_agent() \
|
||||||
(*current_target.to_can_use_agent) ()
|
(*current_target.to_can_use_agent) (¤t_target)
|
||||||
|
|
||||||
#define target_augmented_libraries_svr4_read() \
|
#define target_augmented_libraries_svr4_read() \
|
||||||
(*current_target.to_augmented_libraries_svr4_read) ()
|
(*current_target.to_augmented_libraries_svr4_read) ()
|
||||||
|
Reference in New Issue
Block a user