aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-12-17 21:42:17 -0700
committerTom Tromey <tromey@redhat.com>2014-02-19 07:46:27 -0700
commitdc3decafdd646f0f61f68322e56fb423e306efa9 (patch)
treeeb51b43e8f65e54241c27b9c105c4756b9085106
parent4011015ba220e1f55b4e105e9feb7eaf78703681 (diff)
downloadgdb-dc3decafdd646f0f61f68322e56fb423e306efa9.zip
gdb-dc3decafdd646f0f61f68322e56fb423e306efa9.tar.gz
gdb-dc3decafdd646f0f61f68322e56fb423e306efa9.tar.bz2
Add target_ops argument to to_save_trace_data
2014-02-19 Tom Tromey <tromey@redhat.com> * target.h (struct target_ops) <to_save_trace_data>: Add argument. (target_save_trace_data): Add argument. * target.c (update_current_target): Update. * remote.c (remote_save_trace_data): Add 'self' argument.
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/remote.c2
-rw-r--r--gdb/target.c2
-rw-r--r--gdb/target.h4
4 files changed, 11 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 1111eec..b639af8 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_save_trace_data>: Add argument.
+ (target_save_trace_data): Add argument.
+ * target.c (update_current_target): Update.
+ * remote.c (remote_save_trace_data): Add 'self' argument.
+
+2014-02-19 Tom Tromey <tromey@redhat.com>
+
* tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
argument.
* target.h (struct target_ops)
diff --git a/gdb/remote.c b/gdb/remote.c
index 8d4e29e..b518174 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -10939,7 +10939,7 @@ remote_get_trace_state_variable_value (struct target_ops *self,
}
static int
-remote_save_trace_data (const char *filename)
+remote_save_trace_data (struct target_ops *self, const char *filename)
{
struct remote_state *rs = get_remote_state ();
char *p, *reply;
diff --git a/gdb/target.c b/gdb/target.c
index 0860a56..75e3a8a 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -890,7 +890,7 @@ update_current_target (void)
(int (*) (struct target_ops *, int, LONGEST *))
return_zero);
de_fault (to_save_trace_data,
- (int (*) (const char *))
+ (int (*) (struct target_ops *, const char *))
tcomplain);
de_fault (to_upload_tracepoints,
(int (*) (struct uploaded_tp **))
diff --git a/gdb/target.h b/gdb/target.h
index 16caa29..638931d 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -811,7 +811,7 @@ struct target_ops
int (*to_get_trace_state_variable_value) (struct target_ops *,
int tsv, LONGEST *val);
- int (*to_save_trace_data) (const char *filename);
+ int (*to_save_trace_data) (struct target_ops *, const char *filename);
int (*to_upload_tracepoints) (struct uploaded_tp **utpp);
@@ -1829,7 +1829,7 @@ extern char *target_fileio_read_stralloc (const char *filename);
(tsv), (val))
#define target_save_trace_data(filename) \
- (*current_target.to_save_trace_data) (filename)
+ (*current_target.to_save_trace_data) (&current_target, filename)
#define target_upload_tracepoints(utpp) \
(*current_target.to_upload_tracepoints) (utpp)