summaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-12-17 21:40:13 -0700
committerTom Tromey <tromey@redhat.com>2014-02-19 07:46:18 -0700
commit559d2b81f07720cc7d28ae0c496448c7905db049 (patch)
tree8e97a001ef34cd8a753588dca854389ec753df4e /gdb
parenta52a8357cfeebe84e18276371ec29c8dd563adbf (diff)
downloadbinutils-gdb-559d2b81f07720cc7d28ae0c496448c7905db049.tar.gz
Add target_ops argument to to_download_trace_state_variable
2014-02-19 Tom Tromey <tromey@redhat.com> * target.h (struct target_ops) <to_download_trace_state_variable>: Add argument. (target_download_trace_state_variable): Add argument. * target.c (update_current_target): Update. * remote.c (remote_download_trace_state_variable): Add 'self' argument.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog9
-rw-r--r--gdb/remote.c3
-rw-r--r--gdb/target.c2
-rw-r--r--gdb/target.h5
4 files changed, 15 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index d16053311c2..473c0ac9dfe 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_download_trace_state_variable>:
+ Add argument.
+ (target_download_trace_state_variable): Add argument.
+ * target.c (update_current_target): Update.
+ * remote.c (remote_download_trace_state_variable): Add 'self'
+ argument.
+
+2014-02-19 Tom Tromey <tromey@redhat.com>
+
* target.h (struct target_ops) <to_can_download_tracepoint>: Add
argument.
(target_can_download_tracepoint): Add argument.
diff --git a/gdb/remote.c b/gdb/remote.c
index e91eea318be..8586bbce948 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -10602,7 +10602,8 @@ remote_can_download_tracepoint (struct target_ops *self)
static void
-remote_download_trace_state_variable (struct trace_state_variable *tsv)
+remote_download_trace_state_variable (struct target_ops *self,
+ struct trace_state_variable *tsv)
{
struct remote_state *rs = get_remote_state ();
char *p;
diff --git a/gdb/target.c b/gdb/target.c
index db0c866d1f8..594d620353b 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -858,7 +858,7 @@ update_current_target (void)
(int (*) (struct target_ops *))
return_zero);
de_fault (to_download_trace_state_variable,
- (void (*) (struct trace_state_variable *))
+ (void (*) (struct target_ops *, struct trace_state_variable *))
tcomplain);
de_fault (to_enable_tracepoint,
(void (*) (struct bp_location *))
diff --git a/gdb/target.h b/gdb/target.h
index d71dc97be2c..80c58ca484b 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -767,7 +767,8 @@ struct target_ops
int (*to_can_download_tracepoint) (struct target_ops *);
/* Send full details of a trace state variable to the target. */
- void (*to_download_trace_state_variable) (struct trace_state_variable *tsv);
+ void (*to_download_trace_state_variable) (struct target_ops *,
+ struct trace_state_variable *tsv);
/* Enable a tracepoint on the target. */
void (*to_enable_tracepoint) (struct bp_location *location);
@@ -1791,7 +1792,7 @@ extern char *target_fileio_read_stralloc (const char *filename);
(*current_target.to_can_download_tracepoint) (&current_target)
#define target_download_trace_state_variable(tsv) \
- (*current_target.to_download_trace_state_variable) (tsv)
+ (*current_target.to_download_trace_state_variable) (&current_target, tsv)
#define target_enable_tracepoint(loc) \
(*current_target.to_enable_tracepoint) (loc)