Add target_ops argument to to_trace_init

2014-02-19  Tom Tromey  <tromey@redhat.com>

	* target.h (struct target_ops) <to_trace_init>: Add argument.
	(target_trace_init): Add argument.
	* target.c (update_current_target): Update.
	* remote.c (remote_trace_init): Add 'self' argument.
This commit is contained in:
Tom Tromey 2013-12-17 21:39:36 -07:00
parent fab5aa7c3f
commit ecae04e1df
4 changed files with 11 additions and 4 deletions

View file

@ -756,7 +756,7 @@ struct target_ops
/* Tracepoint-related operations. */
/* Prepare the target for a tracing run. */
void (*to_trace_init) (void);
void (*to_trace_init) (struct target_ops *);
/* Send full details of a tracepoint location to the target. */
void (*to_download_tracepoint) (struct bp_location *location);
@ -1781,7 +1781,7 @@ extern char *target_fileio_read_stralloc (const char *filename);
/* Tracepoint-related operations. */
#define target_trace_init() \
(*current_target.to_trace_init) ()
(*current_target.to_trace_init) (&current_target)
#define target_download_tracepoint(t) \
(*current_target.to_download_tracepoint) (t)