Add target_ops argument to to_can_execute_reverse
2014-02-19 Tom Tromey <tromey@redhat.com> * target.h (struct target_ops) <to_can_execute_reverse>: Add argument. (target_can_execute_reverse): Add argument. * remote.c (remote_can_execute_reverse): Add 'self' argument. * record-full.c (record_full_can_execute_reverse): Add 'self' argument. * record-btrace.c (record_btrace_can_execute_reverse): Add 'self' argument.
This commit is contained in:
parent
1e6b91a4bf
commit
19db3e69f3
5 changed files with 16 additions and 5 deletions
|
@ -1,3 +1,14 @@
|
|||
2014-02-19 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* target.h (struct target_ops) <to_can_execute_reverse>: Add
|
||||
argument.
|
||||
(target_can_execute_reverse): Add argument.
|
||||
* remote.c (remote_can_execute_reverse): Add 'self' argument.
|
||||
* record-full.c (record_full_can_execute_reverse): Add 'self'
|
||||
argument.
|
||||
* record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
|
||||
argument.
|
||||
|
||||
2014-02-19 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
|
||||
|
|
|
@ -1717,7 +1717,7 @@ record_btrace_wait (struct target_ops *ops, ptid_t ptid,
|
|||
/* The to_can_execute_reverse method of target record-btrace. */
|
||||
|
||||
static int
|
||||
record_btrace_can_execute_reverse (void)
|
||||
record_btrace_can_execute_reverse (struct target_ops *self)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -1693,7 +1693,7 @@ record_full_remove_breakpoint (struct target_ops *ops,
|
|||
/* "to_can_execute_reverse" method for process record target. */
|
||||
|
||||
static int
|
||||
record_full_can_execute_reverse (void)
|
||||
record_full_can_execute_reverse (struct target_ops *self)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -10215,7 +10215,7 @@ remote_command (char *args, int from_tty)
|
|||
}
|
||||
|
||||
static int
|
||||
remote_can_execute_reverse (void)
|
||||
remote_can_execute_reverse (struct target_ops *self)
|
||||
{
|
||||
if (remote_protocol_packets[PACKET_bs].support == PACKET_ENABLE
|
||||
|| remote_protocol_packets[PACKET_bc].support == PACKET_ENABLE)
|
||||
|
|
|
@ -663,7 +663,7 @@ struct target_ops
|
|||
CORE_ADDR *found_addrp);
|
||||
|
||||
/* Can target execute in reverse? */
|
||||
int (*to_can_execute_reverse) (void);
|
||||
int (*to_can_execute_reverse) (struct target_ops *);
|
||||
|
||||
/* The direction the target is currently executing. Must be
|
||||
implemented on targets that support reverse execution and async
|
||||
|
@ -1698,7 +1698,7 @@ extern int target_masked_watch_num_registers (CORE_ADDR addr, CORE_ADDR mask);
|
|||
/* Target can execute in reverse? */
|
||||
#define target_can_execute_reverse \
|
||||
(current_target.to_can_execute_reverse ? \
|
||||
current_target.to_can_execute_reverse () : 0)
|
||||
current_target.to_can_execute_reverse (¤t_target) : 0)
|
||||
|
||||
extern const struct target_desc *target_read_description (struct target_ops *);
|
||||
|
||||
|
|
Loading…
Reference in a new issue