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:
Tom Tromey 2013-12-17 21:40:50 -07:00
parent 780b049caa
commit 583f9a86a4
4 changed files with 13 additions and 4 deletions

View File

@ -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

View File

@ -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;

View File

@ -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))

View File

@ -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) (&current_target)
#define target_get_trace_status(ts) \
(*current_target.to_get_trace_status) (ts)