aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-12-17 21:36:42 -0700
committerTom Tromey <tromey@redhat.com>2014-02-19 07:46:03 -0700
commit19db3e69f3d107ea02b97335daf429a660e6cf97 (patch)
tree27a53cc624182c3dead1333152341510f64b40de
parent1e6b91a4bf6911ea68506a73eb8ff7ab3567f005 (diff)
downloadgdb-19db3e69f3d107ea02b97335daf429a660e6cf97.zip
gdb-19db3e69f3d107ea02b97335daf429a660e6cf97.tar.gz
gdb-19db3e69f3d107ea02b97335daf429a660e6cf97.tar.bz2
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.
-rw-r--r--gdb/ChangeLog11
-rw-r--r--gdb/record-btrace.c2
-rw-r--r--gdb/record-full.c2
-rw-r--r--gdb/remote.c2
-rw-r--r--gdb/target.h4
5 files changed, 16 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index cfa06ee..6ac4a50 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,16 @@
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.
* target.h (struct target_ops) <to_get_ada_task_ptid>: Add
argument.
diff --git a/gdb/record-btrace.c b/gdb/record-btrace.c
index 75a1364..4e808e4 100644
--- a/gdb/record-btrace.c
+++ b/gdb/record-btrace.c
@@ -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;
}
diff --git a/gdb/record-full.c b/gdb/record-full.c
index 649ae5c..d9c8072 100644
--- a/gdb/record-full.c
+++ b/gdb/record-full.c
@@ -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;
}
diff --git a/gdb/remote.c b/gdb/remote.c
index 2b499a3..10d87b1 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -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)
diff --git a/gdb/target.h b/gdb/target.h
index 723868e..faaf27d 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -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 (&current_target) : 0)
extern const struct target_desc *target_read_description (struct target_ops *);