Add target_ops argument to to_set_circular_trace_buffer

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

	* target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
	argument.
	(target_set_circular_trace_buffer): Add argument.
	* target.c (update_current_target): Update.
	* remote.c (remote_set_circular_trace_buffer): Add 'self'
	argument.
This commit is contained in:
Tom Tromey
2013-12-17 21:43:31 -07:00
parent 37b2573848
commit 736d5b1fc4
4 changed files with 13 additions and 4 deletions

View File

@ -831,7 +831,7 @@ struct target_ops
/* Set the target's tracing behavior in response to unexpected
disconnection - set VAL to 1 to keep tracing, 0 to stop. */
void (*to_set_disconnected_tracing) (struct target_ops *, int val);
void (*to_set_circular_trace_buffer) (int val);
void (*to_set_circular_trace_buffer) (struct target_ops *, int val);
/* Set the size of trace buffer in the target. */
void (*to_set_trace_buffer_size) (LONGEST val);
@ -1850,7 +1850,7 @@ extern char *target_fileio_read_stralloc (const char *filename);
(*current_target.to_set_disconnected_tracing) (&current_target, val)
#define target_set_circular_trace_buffer(val) \
(*current_target.to_set_circular_trace_buffer) (val)
(*current_target.to_set_circular_trace_buffer) (&current_target, val)
#define target_set_trace_buffer_size(val) \
(*current_target.to_set_trace_buffer_size) (val)