aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-12-17 21:41:52 -0700
committerTom Tromey <tromey@redhat.com>2014-02-19 07:46:25 -0700
commitbd4c67938f9885f36df3d5d9635aba4e8870b95d (patch)
tree4a1a9c5202f576c249631c06172a7a9468b7d1aa
parent74499f1bf25edf94415bb692a7cf71b719897738 (diff)
downloadgdb-bd4c67938f9885f36df3d5d9635aba4e8870b95d.zip
gdb-bd4c67938f9885f36df3d5d9635aba4e8870b95d.tar.gz
gdb-bd4c67938f9885f36df3d5d9635aba4e8870b95d.tar.bz2
Add target_ops argument to to_trace_find
2014-02-19 Tom Tromey <tromey@redhat.com> * tracepoint.c (tfile_trace_find): Add 'self' argument. * target.h (struct target_ops) <to_trace_find>: Add argument. (target_trace_find): Add argument. * target.c (update_current_target): Update. * remote.c (remote_trace_find): Add 'self' argument. * ctf.c (ctf_trace_find): Add 'self' argument.
-rw-r--r--gdb/ChangeLog9
-rw-r--r--gdb/ctf.c2
-rw-r--r--gdb/remote.c3
-rw-r--r--gdb/target.c3
-rw-r--r--gdb/target.h6
-rw-r--r--gdb/tracepoint.c2
6 files changed, 19 insertions, 6 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index fd76ca6..67e8494 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,14 @@
2014-02-19 Tom Tromey <tromey@redhat.com>
+ * tracepoint.c (tfile_trace_find): Add 'self' argument.
+ * target.h (struct target_ops) <to_trace_find>: Add argument.
+ (target_trace_find): Add argument.
+ * target.c (update_current_target): Update.
+ * remote.c (remote_trace_find): Add 'self' argument.
+ * ctf.c (ctf_trace_find): Add 'self' argument.
+
+2014-02-19 Tom Tromey <tromey@redhat.com>
+
* target.h (struct target_ops) <to_trace_stop>: Add argument.
(target_trace_stop): Add argument.
* target.c (update_current_target): Update.
diff --git a/gdb/ctf.c b/gdb/ctf.c
index b31c987..b2b0e86 100644
--- a/gdb/ctf.c
+++ b/gdb/ctf.c
@@ -1633,7 +1633,7 @@ ctf_get_traceframe_address (void)
number in it. Return traceframe number when matched. */
static int
-ctf_trace_find (enum trace_find_type type, int num,
+ctf_trace_find (struct target_ops *self, enum trace_find_type type, int num,
CORE_ADDR addr1, CORE_ADDR addr2, int *tpp)
{
int ret = -1;
diff --git a/gdb/remote.c b/gdb/remote.c
index 74f0b77..509e8b3 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -10831,7 +10831,8 @@ remote_trace_stop (struct target_ops *self)
}
static int
-remote_trace_find (enum trace_find_type type, int num,
+remote_trace_find (struct target_ops *self,
+ enum trace_find_type type, int num,
CORE_ADDR addr1, CORE_ADDR addr2,
int *tpp)
{
diff --git a/gdb/target.c b/gdb/target.c
index 6eaa70b..56036f9 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -883,7 +883,8 @@ update_current_target (void)
(void (*) (struct target_ops *))
tcomplain);
de_fault (to_trace_find,
- (int (*) (enum trace_find_type, int, CORE_ADDR, CORE_ADDR, int *))
+ (int (*) (struct target_ops *,
+ enum trace_find_type, int, CORE_ADDR, CORE_ADDR, int *))
return_minus_one);
de_fault (to_get_trace_state_variable_value,
(int (*) (int, LONGEST *))
diff --git a/gdb/target.h b/gdb/target.h
index 33377eb..0754050 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -801,7 +801,8 @@ struct target_ops
number of the trace frame, and also the tracepoint number at
TPP. If no trace frame matches, return -1. May throw if the
operation fails. */
- int (*to_trace_find) (enum trace_find_type type, int num,
+ int (*to_trace_find) (struct target_ops *,
+ enum trace_find_type type, int num,
CORE_ADDR addr1, CORE_ADDR addr2, int *tpp);
/* Get the value of the trace state variable number TSV, returning
@@ -1819,7 +1820,8 @@ extern char *target_fileio_read_stralloc (const char *filename);
(*current_target.to_trace_stop) (&current_target)
#define target_trace_find(type,num,addr1,addr2,tpp) \
- (*current_target.to_trace_find) ((type), (num), (addr1), (addr2), (tpp))
+ (*current_target.to_trace_find) (&current_target, \
+ (type), (num), (addr1), (addr2), (tpp))
#define target_get_trace_state_variable_value(tsv,val) \
(*current_target.to_get_trace_state_variable_value) ((tsv), (val))
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c
index 6698dd6..5d034b5 100644
--- a/gdb/tracepoint.c
+++ b/gdb/tracepoint.c
@@ -4839,7 +4839,7 @@ tfile_get_traceframe_address (off_t tframe_offset)
each. */
static int
-tfile_trace_find (enum trace_find_type type, int num,
+tfile_trace_find (struct target_ops *self, enum trace_find_type type, int num,
CORE_ADDR addr1, CORE_ADDR addr2, int *tpp)
{
short tpnum;