+2014-02-19 Tom Tromey <tromey@redhat.com>
+
+ * target.h (struct target_ops) <to_trace_set_readonly_regions>:
+ Add argument.
+ (target_trace_set_readonly_regions): Add argument.
+ * target.c (update_current_target): Update.
+ * remote.c (remote_trace_set_readonly_regions): Add 'self'
+ argument.
+
2014-02-19 Tom Tromey <tromey@redhat.com>
* target.h (struct target_ops) <to_disable_tracepoint>: Add
}
static void
-remote_trace_set_readonly_regions (void)
+remote_trace_set_readonly_regions (struct target_ops *self)
{
asection *s;
bfd *abfd = NULL;
(void (*) (struct target_ops *, struct bp_location *))
tcomplain);
de_fault (to_trace_set_readonly_regions,
- (void (*) (void))
+ (void (*) (struct target_ops *))
tcomplain);
de_fault (to_trace_start,
(void (*) (void))
/* Inform the target info of memory regions that are readonly
(such as text sections), and so it should return data from
those rather than look in the trace buffer. */
- void (*to_trace_set_readonly_regions) (void);
+ void (*to_trace_set_readonly_regions) (struct target_ops *);
/* Start a trace run. */
void (*to_trace_start) (void);
(*current_target.to_trace_start) ()
#define target_trace_set_readonly_regions() \
- (*current_target.to_trace_set_readonly_regions) ()
+ (*current_target.to_trace_set_readonly_regions) (¤t_target)
#define target_get_trace_status(ts) \
(*current_target.to_get_trace_status) (ts)