mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 20:28:28 +08:00
Add target_ops argument to to_save_trace_data
2014-02-19 Tom Tromey <tromey@redhat.com> * target.h (struct target_ops) <to_save_trace_data>: Add argument. (target_save_trace_data): Add argument. * target.c (update_current_target): Update. * remote.c (remote_save_trace_data): Add 'self' argument.
This commit is contained in:
@ -811,7 +811,7 @@ struct target_ops
|
||||
int (*to_get_trace_state_variable_value) (struct target_ops *,
|
||||
int tsv, LONGEST *val);
|
||||
|
||||
int (*to_save_trace_data) (const char *filename);
|
||||
int (*to_save_trace_data) (struct target_ops *, const char *filename);
|
||||
|
||||
int (*to_upload_tracepoints) (struct uploaded_tp **utpp);
|
||||
|
||||
@ -1829,7 +1829,7 @@ extern char *target_fileio_read_stralloc (const char *filename);
|
||||
(tsv), (val))
|
||||
|
||||
#define target_save_trace_data(filename) \
|
||||
(*current_target.to_save_trace_data) (filename)
|
||||
(*current_target.to_save_trace_data) (¤t_target, filename)
|
||||
|
||||
#define target_upload_tracepoints(utpp) \
|
||||
(*current_target.to_upload_tracepoints) (utpp)
|
||||
|
Reference in New Issue
Block a user