+2014-02-19 Tom Tromey <tromey@redhat.com>
+
+ * tracepoint.c (tfile_trace_find): Add 'self' argument.
+ * target.h (struct target_ops) <to_trace_find>: Add argument.
+ (target_trace_find): Add argument.
+ * target.c (update_current_target): Update.
+ * remote.c (remote_trace_find): Add 'self' argument.
+ * ctf.c (ctf_trace_find): Add 'self' argument.
+
2014-02-19 Tom Tromey <tromey@redhat.com>
* target.h (struct target_ops) <to_trace_stop>: Add argument.
number in it. Return traceframe number when matched. */
static int
-ctf_trace_find (enum trace_find_type type, int num,
+ctf_trace_find (struct target_ops *self, enum trace_find_type type, int num,
CORE_ADDR addr1, CORE_ADDR addr2, int *tpp)
{
int ret = -1;
}
static int
-remote_trace_find (enum trace_find_type type, int num,
+remote_trace_find (struct target_ops *self,
+ enum trace_find_type type, int num,
CORE_ADDR addr1, CORE_ADDR addr2,
int *tpp)
{
(void (*) (struct target_ops *))
tcomplain);
de_fault (to_trace_find,
- (int (*) (enum trace_find_type, int, CORE_ADDR, CORE_ADDR, int *))
+ (int (*) (struct target_ops *,
+ enum trace_find_type, int, CORE_ADDR, CORE_ADDR, int *))
return_minus_one);
de_fault (to_get_trace_state_variable_value,
(int (*) (int, LONGEST *))
number of the trace frame, and also the tracepoint number at
TPP. If no trace frame matches, return -1. May throw if the
operation fails. */
- int (*to_trace_find) (enum trace_find_type type, int num,
+ int (*to_trace_find) (struct target_ops *,
+ enum trace_find_type type, int num,
CORE_ADDR addr1, CORE_ADDR addr2, int *tpp);
/* Get the value of the trace state variable number TSV, returning
(*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))
+ (*current_target.to_trace_find) (¤t_target, \
+ (type), (num), (addr1), (addr2), (tpp))
#define target_get_trace_state_variable_value(tsv,val) \
(*current_target.to_get_trace_state_variable_value) ((tsv), (val))
each. */
static int
-tfile_trace_find (enum trace_find_type type, int num,
+tfile_trace_find (struct target_ops *self, enum trace_find_type type, int num,
CORE_ADDR addr1, CORE_ADDR addr2, int *tpp)
{
short tpnum;