+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.
+ * target.c (update_current_target): Update.
+ * remote.c (remote_can_download_tracepoint): Add 'self' argument.
+
2014-02-19 Tom Tromey <tromey@redhat.com>
* target.h (struct target_ops) <to_download_tracepoint>: Add
}
static int
-remote_can_download_tracepoint (void)
+remote_can_download_tracepoint (struct target_ops *self)
{
struct remote_state *rs = get_remote_state ();
struct trace_status *ts;
(void (*) (struct target_ops *, struct bp_location *))
tcomplain);
de_fault (to_can_download_tracepoint,
- (int (*) (void))
+ (int (*) (struct target_ops *))
return_zero);
de_fault (to_download_trace_state_variable,
(void (*) (struct trace_state_variable *))
/* Is the target able to download tracepoint locations in current
state? */
- int (*to_can_download_tracepoint) (void);
+ 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);
(*current_target.to_download_tracepoint) (¤t_target, t)
#define target_can_download_tracepoint() \
- (*current_target.to_can_download_tracepoint) ()
+ (*current_target.to_can_download_tracepoint) (¤t_target)
#define target_download_trace_state_variable(tsv) \
(*current_target.to_download_trace_state_variable) (tsv)