2014-02-19 Tom Tromey <tromey@redhat.com>
+ * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
+ argument.
+ * target.h (struct target_ops)
+ <to_get_trace_state_variable_value>: Add argument.
+ (target_get_trace_state_variable_value): Add argument.
+ * target.c (update_current_target): Update.
+ * remote.c (remote_get_trace_state_variable_value): Add 'self'
+ argument.
+ * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
+
+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.
true, otherwise return false. */
static int
-ctf_get_trace_state_variable_value (int tsvnum, LONGEST *val)
+ctf_get_trace_state_variable_value (struct target_ops *self,
+ int tsvnum, LONGEST *val)
{
struct bt_iter_pos *pos;
int found = 0;
}
static int
-remote_get_trace_state_variable_value (int tsvnum, LONGEST *val)
+remote_get_trace_state_variable_value (struct target_ops *self,
+ int tsvnum, LONGEST *val)
{
struct remote_state *rs = get_remote_state ();
char *reply;
enum trace_find_type, int, CORE_ADDR, CORE_ADDR, int *))
return_minus_one);
de_fault (to_get_trace_state_variable_value,
- (int (*) (int, LONGEST *))
+ (int (*) (struct target_ops *, int, LONGEST *))
return_zero);
de_fault (to_save_trace_data,
(int (*) (const char *))
/* Get the value of the trace state variable number TSV, returning
1 if the value is known and writing the value itself into the
location pointed to by VAL, else returning 0. */
- int (*to_get_trace_state_variable_value) (int tsv, LONGEST *val);
+ int (*to_get_trace_state_variable_value) (struct target_ops *,
+ int tsv, LONGEST *val);
int (*to_save_trace_data) (const char *filename);
(type), (num), (addr1), (addr2), (tpp))
#define target_get_trace_state_variable_value(tsv,val) \
- (*current_target.to_get_trace_state_variable_value) ((tsv), (val))
+ (*current_target.to_get_trace_state_variable_value) (¤t_target, \
+ (tsv), (val))
#define target_save_trace_data(filename) \
(*current_target.to_save_trace_data) (filename)
block with a matching tsv number. */
static int
-tfile_get_trace_state_variable_value (int tsvnum, LONGEST *val)
+tfile_get_trace_state_variable_value (struct target_ops *self,
+ int tsvnum, LONGEST *val)
{
int pos;
int found = 0;