aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-12-17 21:48:41 -0700
committerTom Tromey <tromey@redhat.com>2014-02-19 07:46:56 -0700
commit5df2fcba0d0547af4245d210370e7fdcecae7e15 (patch)
tree4cd593e09b37abd91ad9eb0d0cf5af3d97a3569b
parent4e99c6b708b232d1cd61c29148e2d8290b625786 (diff)
downloadgdb-5df2fcba0d0547af4245d210370e7fdcecae7e15.zip
gdb-5df2fcba0d0547af4245d210370e7fdcecae7e15.tar.gz
gdb-5df2fcba0d0547af4245d210370e7fdcecae7e15.tar.bz2
Add target_ops argument to to_call_history
2014-02-19 Tom Tromey <tromey@redhat.com> * target.h (struct target_ops) <to_call_history>: Add argument. * target.c (target_call_history): Add argument. * record-btrace.c (record_btrace_call_history): Add 'self' argument.
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/record-btrace.c2
-rw-r--r--gdb/target.c2
-rw-r--r--gdb/target.h2
4 files changed, 10 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 18495bf..0c9946f 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_call_history>: Add argument.
+ * target.c (target_call_history): Add argument.
+ * record-btrace.c (record_btrace_call_history): Add 'self'
+ argument.
+
+2014-02-19 Tom Tromey <tromey@redhat.com>
+
* target.h (struct target_ops) <to_insn_history_range>: Add
argument.
* target.c (target_insn_history_range): Add argument.
diff --git a/gdb/record-btrace.c b/gdb/record-btrace.c
index b022d59..7af9c89 100644
--- a/gdb/record-btrace.c
+++ b/gdb/record-btrace.c
@@ -617,7 +617,7 @@ btrace_call_history (struct ui_out *uiout,
/* The to_call_history method of target record-btrace. */
static void
-record_btrace_call_history (int size, int flags)
+record_btrace_call_history (struct target_ops *self, int size, int flags)
{
struct btrace_thread_info *btinfo;
struct btrace_call_history *history;
diff --git a/gdb/target.c b/gdb/target.c
index b27098c..8743083 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -4464,7 +4464,7 @@ target_call_history (int size, int flags)
for (t = current_target.beneath; t != NULL; t = t->beneath)
if (t->to_call_history != NULL)
{
- t->to_call_history (size, flags);
+ t->to_call_history (t, size, flags);
return;
}
diff --git a/gdb/target.h b/gdb/target.h
index d1be473..27f79aa 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -971,7 +971,7 @@ struct target_ops
/* Print a function trace of the recorded execution trace.
If SIZE < 0, print abs (SIZE) preceding functions; otherwise, print SIZE
succeeding functions. */
- void (*to_call_history) (int size, int flags);
+ void (*to_call_history) (struct target_ops *, int size, int flags);
/* Print a function trace of the recorded execution trace starting
at function FROM.