+2014-02-19 Tom Tromey <tromey@redhat.com>
+
+ * target.h (struct target_ops) <to_upload_tracepoints>: Add
+ argument.
+ (target_upload_tracepoints): Add argument.
+ * target.c (update_current_target): Update.
+ * remote.c (remote_upload_tracepoints): Add 'self' argument.
+ (remote_start_remote): Update.
+
2014-02-19 Tom Tromey <tromey@redhat.com>
* target.h (struct target_ops) <to_save_trace_data>: Add argument.
static int remote_get_trace_status (struct target_ops *self,
struct trace_status *ts);
-static int remote_upload_tracepoints (struct uploaded_tp **utpp);
+static int remote_upload_tracepoints (struct target_ops *self,
+ struct uploaded_tp **utpp);
static int remote_upload_trace_state_variables (struct uploaded_tsv **utsvp);
if (current_trace_status ()->running)
printf_filtered (_("Trace is already running on the target.\n"));
- remote_upload_tracepoints (&uploaded_tps);
+ remote_upload_tracepoints (target, &uploaded_tps);
merge_uploaded_tracepoints (&uploaded_tps);
}
collection. */
static int
-remote_upload_tracepoints (struct uploaded_tp **utpp)
+remote_upload_tracepoints (struct target_ops *self, struct uploaded_tp **utpp)
{
struct remote_state *rs = get_remote_state ();
char *p;
(int (*) (struct target_ops *, const char *))
tcomplain);
de_fault (to_upload_tracepoints,
- (int (*) (struct uploaded_tp **))
+ (int (*) (struct target_ops *, struct uploaded_tp **))
return_zero);
de_fault (to_upload_trace_state_variables,
(int (*) (struct uploaded_tsv **))
int (*to_save_trace_data) (struct target_ops *, const char *filename);
- int (*to_upload_tracepoints) (struct uploaded_tp **utpp);
+ int (*to_upload_tracepoints) (struct target_ops *,
+ struct uploaded_tp **utpp);
int (*to_upload_trace_state_variables) (struct uploaded_tsv **utsvp);
(*current_target.to_save_trace_data) (¤t_target, filename)
#define target_upload_tracepoints(utpp) \
- (*current_target.to_upload_tracepoints) (utpp)
+ (*current_target.to_upload_tracepoints) (¤t_target, utpp)
#define target_upload_trace_state_variables(utsvp) \
(*current_target.to_upload_trace_state_variables) (utsvp)