+2014-02-19 Tom Tromey <tromey@redhat.com>
+
+ * target.h (struct target_ops) <to_trace_stop>: Add argument.
+ (target_trace_stop): Add argument.
+ * target.c (update_current_target): Update.
+ * remote.c (remote_trace_stop): Add 'self' argument.
+
2014-02-19 Tom Tromey <tromey@redhat.com>
* tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
}
static void
-remote_trace_stop (void)
+remote_trace_stop (struct target_ops *self)
{
putpkt ("QTStop");
remote_get_noisy_reply (&target_buf, &target_buf_size);
struct uploaded_tp *))
tcomplain);
de_fault (to_trace_stop,
- (void (*) (void))
+ (void (*) (struct target_ops *))
tcomplain);
de_fault (to_trace_find,
(int (*) (enum trace_find_type, int, CORE_ADDR, CORE_ADDR, int *))
struct uploaded_tp *utp);
/* Stop a trace run. */
- void (*to_trace_stop) (void);
+ void (*to_trace_stop) (struct target_ops *);
/* Ask the target to find a trace frame of the given type TYPE,
using NUM, ADDR1, and ADDR2 as search parameters. Returns the
(*current_target.to_get_tracepoint_status) (¤t_target, tp, utp)
#define target_trace_stop() \
- (*current_target.to_trace_stop) ()
+ (*current_target.to_trace_stop) (¤t_target)
#define target_trace_find(type,num,addr1,addr2,tpp) \
(*current_target.to_trace_find) ((type), (num), (addr1), (addr2), (tpp))