+2014-02-19 Tom Tromey <tromey@redhat.com>
+
+ * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
+ * target.h (struct target_ops) <to_get_tracepoint_status>: Add
+ argument.
+ (target_get_tracepoint_status): Add argument.
+ * target.c (update_current_target): Update.
+ * remote.c (remote_get_tracepoint_status): Add 'self' argument.
+
2014-02-19 Tom Tromey <tromey@redhat.com>
* tracepoint.c (tfile_get_trace_status): Add 'self' argument.
}
static void
-remote_get_tracepoint_status (struct breakpoint *bp,
+remote_get_tracepoint_status (struct target_ops *self, struct breakpoint *bp,
struct uploaded_tp *utp)
{
struct remote_state *rs = get_remote_state ();
(int (*) (struct target_ops *, struct trace_status *))
return_minus_one);
de_fault (to_get_tracepoint_status,
- (void (*) (struct breakpoint *, struct uploaded_tp *))
+ (void (*) (struct target_ops *, struct breakpoint *,
+ struct uploaded_tp *))
tcomplain);
de_fault (to_trace_stop,
(void (*) (void))
/* Get the current status of a tracing run. */
int (*to_get_trace_status) (struct target_ops *, struct trace_status *ts);
- void (*to_get_tracepoint_status) (struct breakpoint *tp,
+ void (*to_get_tracepoint_status) (struct target_ops *,
+ struct breakpoint *tp,
struct uploaded_tp *utp);
/* Stop a trace run. */
(*current_target.to_get_trace_status) (¤t_target, ts)
#define target_get_tracepoint_status(tp,utp) \
- (*current_target.to_get_tracepoint_status) (tp, utp)
+ (*current_target.to_get_tracepoint_status) (¤t_target, tp, utp)
#define target_trace_stop() \
(*current_target.to_trace_stop) ()
}
static void
-tfile_get_tracepoint_status (struct breakpoint *tp, struct uploaded_tp *utp)
+tfile_get_tracepoint_status (struct target_ops *self,
+ struct breakpoint *tp, struct uploaded_tp *utp)
{
/* Other bits of trace status were collected as part of opening the
trace files, so nothing to do here. */