aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-12-17 21:49:06 -0700
committerTom Tromey <tromey@redhat.com>2014-02-19 07:46:58 -0700
commitf0d960ea2fd9c7ffd2e6462b07b47280053738f3 (patch)
treeddfbeace3668caa205ee89b3695f049015164aa0
parentec0aea0490879ef1c44ba795ad97e492128ffb45 (diff)
downloadgdb-f0d960ea2fd9c7ffd2e6462b07b47280053738f3.zip
gdb-f0d960ea2fd9c7ffd2e6462b07b47280053738f3.tar.gz
gdb-f0d960ea2fd9c7ffd2e6462b07b47280053738f3.tar.bz2
Add target_ops argument to to_call_history_range
2014-02-19 Tom Tromey <tromey@redhat.com> * target.h (struct target_ops) <to_call_history_range>: Add argument. * target.c (target_call_history_range): Add argument. * record-btrace.c (record_btrace_call_history_range): Add 'self' argument. (record_btrace_call_history_from): Update.
-rw-r--r--gdb/ChangeLog9
-rw-r--r--gdb/record-btrace.c5
-rw-r--r--gdb/target.c2
-rw-r--r--gdb/target.h3
4 files changed, 15 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 1dd83d7..c606930 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_call_history_range>: Add
+ argument.
+ * target.c (target_call_history_range): Add argument.
+ * record-btrace.c (record_btrace_call_history_range): Add 'self'
+ argument.
+ (record_btrace_call_history_from): Update.
+
+2014-02-19 Tom Tromey <tromey@redhat.com>
+
* target.h (struct target_ops) <to_call_history_from>: Add
argument.
* target.c (target_call_history_from): Add argument.
diff --git a/gdb/record-btrace.c b/gdb/record-btrace.c
index fafe5e1..e343f38 100644
--- a/gdb/record-btrace.c
+++ b/gdb/record-btrace.c
@@ -706,7 +706,8 @@ record_btrace_call_history (struct target_ops *self, int size, int flags)
/* The to_call_history_range method of target record-btrace. */
static void
-record_btrace_call_history_range (ULONGEST from, ULONGEST to, int flags)
+record_btrace_call_history_range (struct target_ops *self,
+ ULONGEST from, ULONGEST to, int flags)
{
struct btrace_thread_info *btinfo;
struct btrace_call_history *history;
@@ -786,7 +787,7 @@ record_btrace_call_history_from (struct target_ops *self,
end = ULONGEST_MAX;
}
- record_btrace_call_history_range (begin, end, flags);
+ record_btrace_call_history_range (self, begin, end, flags);
}
/* The to_record_is_replaying method of target record-btrace. */
diff --git a/gdb/target.c b/gdb/target.c
index d2c4da8..d3f9fb8 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -4498,7 +4498,7 @@ target_call_history_range (ULONGEST begin, ULONGEST end, int flags)
for (t = current_target.beneath; t != NULL; t = t->beneath)
if (t->to_call_history_range != NULL)
{
- t->to_call_history_range (begin, end, flags);
+ t->to_call_history_range (t, begin, end, flags);
return;
}
diff --git a/gdb/target.h b/gdb/target.h
index de7412b..69fd0b9 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -982,7 +982,8 @@ struct target_ops
/* Print a function trace of an execution trace section from function BEGIN
(inclusive) to function END (inclusive). */
- void (*to_call_history_range) (ULONGEST begin, ULONGEST end, int flags);
+ void (*to_call_history_range) (struct target_ops *,
+ ULONGEST begin, ULONGEST end, int flags);
/* Nonzero if TARGET_OBJECT_LIBRARIES_SVR4 may be read with a
non-empty annex. */