aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-12-17 21:47:27 -0700
committerTom Tromey <tromey@redhat.com>2014-02-19 07:46:51 -0700
commit084758178fb0d29f57f4041d89ac027cd32834a3 (patch)
treed8e66a1cb5fd203670353dc31c29cf573e632411
parent1c63c99491f9581d3f76d116cedcbfa5f124ca5a (diff)
downloadgdb-084758178fb0d29f57f4041d89ac027cd32834a3.zip
gdb-084758178fb0d29f57f4041d89ac027cd32834a3.tar.gz
gdb-084758178fb0d29f57f4041d89ac027cd32834a3.tar.bz2
Add target_ops argument to to_goto_record_begin
2014-02-19 Tom Tromey <tromey@redhat.com> * target.h (struct target_ops) <to_goto_record_begin>: Add argument. * target.c (target_goto_record_begin): Add argument. * record-full.c (record_full_goto_begin): Add 'self' argument. * record-btrace.c (record_btrace_goto_begin): Add 'self' argument.
-rw-r--r--gdb/ChangeLog9
-rw-r--r--gdb/record-btrace.c2
-rw-r--r--gdb/record-full.c2
-rw-r--r--gdb/target.c2
-rw-r--r--gdb/target.h2
5 files changed, 13 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 2e0590a..852226a 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,14 @@
2014-02-19 Tom Tromey <tromey@redhat.com>
+ * target.h (struct target_ops) <to_goto_record_begin>: Add
+ argument.
+ * target.c (target_goto_record_begin): Add argument.
+ * record-full.c (record_full_goto_begin): Add 'self' argument.
+ * record-btrace.c (record_btrace_goto_begin): Add 'self'
+ argument.
+
+2014-02-19 Tom Tromey <tromey@redhat.com>
+
* target.h (struct target_ops) <to_record_is_replaying>: Add
argument.
* target.c (target_record_is_replaying): Add argument.
diff --git a/gdb/record-btrace.c b/gdb/record-btrace.c
index 3d51f93..bc42ae4 100644
--- a/gdb/record-btrace.c
+++ b/gdb/record-btrace.c
@@ -1802,7 +1802,7 @@ record_btrace_set_replay (struct thread_info *tp,
/* The to_goto_record_begin method of target record-btrace. */
static void
-record_btrace_goto_begin (void)
+record_btrace_goto_begin (struct target_ops *self)
{
struct thread_info *tp;
struct btrace_insn_iterator begin;
diff --git a/gdb/record-full.c b/gdb/record-full.c
index d7972db..1be84e0 100644
--- a/gdb/record-full.c
+++ b/gdb/record-full.c
@@ -1860,7 +1860,7 @@ record_full_goto_entry (struct record_full_entry *p)
/* The "to_goto_record_begin" target method. */
static void
-record_full_goto_begin (void)
+record_full_goto_begin (struct target_ops *self)
{
struct record_full_entry *p = NULL;
diff --git a/gdb/target.c b/gdb/target.c
index 5c7bb4a..ef02b8e 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -4362,7 +4362,7 @@ target_goto_record_begin (void)
for (t = current_target.beneath; t != NULL; t = t->beneath)
if (t->to_goto_record_begin != NULL)
{
- t->to_goto_record_begin ();
+ t->to_goto_record_begin (t);
return;
}
diff --git a/gdb/target.h b/gdb/target.h
index d37db4a..b494868 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -942,7 +942,7 @@ struct target_ops
int (*to_record_is_replaying) (struct target_ops *);
/* Go to the begin of the execution trace. */
- void (*to_goto_record_begin) (void);
+ void (*to_goto_record_begin) (struct target_ops *);
/* Go to the end of the execution trace. */
void (*to_goto_record_end) (void);