aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-12-17 21:47:52 -0700
committerTom Tromey <tromey@redhat.com>2014-02-19 07:46:52 -0700
commit606183ac2c604257107f243f772fb5fb23d47968 (patch)
tree18e662608e6f5bdf234111f4609421115713c2e5
parent307a1b91cc39d8329e09b8d913a9a0391d7ac1ad (diff)
downloadgdb-606183ac2c604257107f243f772fb5fb23d47968.zip
gdb-606183ac2c604257107f243f772fb5fb23d47968.tar.gz
gdb-606183ac2c604257107f243f772fb5fb23d47968.tar.bz2
Add target_ops argument to to_goto_record
2014-02-19 Tom Tromey <tromey@redhat.com> * target.h (struct target_ops) <to_goto_record>: Add argument. * target.c (target_goto_record): Add argument. * record-full.c (record_full_goto): Add 'self' argument. * record-btrace.c (record_btrace_goto): Add 'self' argument.
-rw-r--r--gdb/ChangeLog7
-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, 11 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 7858ae4..8efd299 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,12 @@
2014-02-19 Tom Tromey <tromey@redhat.com>
+ * target.h (struct target_ops) <to_goto_record>: Add argument.
+ * target.c (target_goto_record): Add argument.
+ * record-full.c (record_full_goto): Add 'self' argument.
+ * record-btrace.c (record_btrace_goto): Add 'self' argument.
+
+2014-02-19 Tom Tromey <tromey@redhat.com>
+
* target.h (struct target_ops) <to_goto_record_end>: Add argument.
* target.c (target_goto_record_end): Add argument.
* record-full.c (record_full_goto_end): Add 'self' argument.
diff --git a/gdb/record-btrace.c b/gdb/record-btrace.c
index 25dbe62..7e03556 100644
--- a/gdb/record-btrace.c
+++ b/gdb/record-btrace.c
@@ -1832,7 +1832,7 @@ record_btrace_goto_end (struct target_ops *ops)
/* The to_goto_record method of target record-btrace. */
static void
-record_btrace_goto (ULONGEST insn)
+record_btrace_goto (struct target_ops *self, ULONGEST insn)
{
struct thread_info *tp;
struct btrace_insn_iterator it;
diff --git a/gdb/record-full.c b/gdb/record-full.c
index 468d772..d35165b 100644
--- a/gdb/record-full.c
+++ b/gdb/record-full.c
@@ -1890,7 +1890,7 @@ record_full_goto_end (struct target_ops *self)
/* The "to_goto_record" target method. */
static void
-record_full_goto (ULONGEST target_insn)
+record_full_goto (struct target_ops *self, ULONGEST target_insn)
{
struct record_full_entry *p = NULL;
diff --git a/gdb/target.c b/gdb/target.c
index 0838251..ee5c872 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -4396,7 +4396,7 @@ target_goto_record (ULONGEST insn)
for (t = current_target.beneath; t != NULL; t = t->beneath)
if (t->to_goto_record != NULL)
{
- t->to_goto_record (insn);
+ t->to_goto_record (t, insn);
return;
}
diff --git a/gdb/target.h b/gdb/target.h
index 99abfc4..8f22c67 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -948,7 +948,7 @@ struct target_ops
void (*to_goto_record_end) (struct target_ops *);
/* Go to a specific location in the recorded execution trace. */
- void (*to_goto_record) (ULONGEST insn);
+ void (*to_goto_record) (struct target_ops *, ULONGEST insn);
/* Disassemble SIZE instructions in the recorded execution trace from
the current position.