Add target_ops argument to to_trace_set_readonly_regions
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.
This commit is contained in:
parent
780b049caa
commit
583f9a86a4
@ -1,3 +1,12 @@
|
||||
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
|
||||
|
@ -10661,7 +10661,7 @@ remote_disable_tracepoint (struct target_ops *self,
|
||||
}
|
||||
|
||||
static void
|
||||
remote_trace_set_readonly_regions (void)
|
||||
remote_trace_set_readonly_regions (struct target_ops *self)
|
||||
{
|
||||
asection *s;
|
||||
bfd *abfd = NULL;
|
||||
|
@ -867,7 +867,7 @@ update_current_target (void)
|
||||
(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))
|
||||
|
@ -781,7 +781,7 @@ struct target_ops
|
||||
/* 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);
|
||||
@ -1806,7 +1806,7 @@ extern char *target_fileio_read_stralloc (const char *filename);
|
||||
(*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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user