Add target_ops argument to to_get_raw_trace_data

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

	* target.h (struct target_ops) <to_get_raw_trace_data>: Add
	argument.
	(target_get_raw_trace_data): Add argument.
	* target.c (update_current_target): Update.
	* remote.c (remote_get_raw_trace_data): Add 'self' argument.
This commit is contained in:
Tom Tromey
2013-12-17 21:42:54 -07:00
parent 181e3713eb
commit 88ee6f45bb
4 changed files with 14 additions and 4 deletions

View File

@ -819,7 +819,7 @@ struct target_ops
int (*to_upload_trace_state_variables) (struct target_ops *,
struct uploaded_tsv **utsvp);
LONGEST (*to_get_raw_trace_data) (gdb_byte *buf,
LONGEST (*to_get_raw_trace_data) (struct target_ops *, gdb_byte *buf,
ULONGEST offset, LONGEST len);
/* Get the minimum length of instruction on which a fast tracepoint
@ -1840,7 +1840,8 @@ extern char *target_fileio_read_stralloc (const char *filename);
(*current_target.to_upload_trace_state_variables) (&current_target, utsvp)
#define target_get_raw_trace_data(buf,offset,len) \
(*current_target.to_get_raw_trace_data) ((buf), (offset), (len))
(*current_target.to_get_raw_trace_data) (&current_target, \
(buf), (offset), (len))
#define target_get_min_fast_tracepoint_insn_len() \
(*current_target.to_get_min_fast_tracepoint_insn_len) ()