+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'
}
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;
(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 **))
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);
(tsv), (val))
#define target_save_trace_data(filename) \
- (*current_target.to_save_trace_data) (filename)
+ (*current_target.to_save_trace_data) (¤t_target, filename)
#define target_upload_tracepoints(utpp) \
(*current_target.to_upload_tracepoints) (utpp)