mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 19:50:13 +08:00
Add target_ops argument to to_trace_find
2014-02-19 Tom Tromey <tromey@redhat.com> * tracepoint.c (tfile_trace_find): Add 'self' argument. * target.h (struct target_ops) <to_trace_find>: Add argument. (target_trace_find): Add argument. * target.c (update_current_target): Update. * remote.c (remote_trace_find): Add 'self' argument. * ctf.c (ctf_trace_find): Add 'self' argument.
This commit is contained in:
@ -801,7 +801,8 @@ struct target_ops
|
||||
number of the trace frame, and also the tracepoint number at
|
||||
TPP. If no trace frame matches, return -1. May throw if the
|
||||
operation fails. */
|
||||
int (*to_trace_find) (enum trace_find_type type, int num,
|
||||
int (*to_trace_find) (struct target_ops *,
|
||||
enum trace_find_type type, int num,
|
||||
CORE_ADDR addr1, CORE_ADDR addr2, int *tpp);
|
||||
|
||||
/* Get the value of the trace state variable number TSV, returning
|
||||
@ -1819,7 +1820,8 @@ extern char *target_fileio_read_stralloc (const char *filename);
|
||||
(*current_target.to_trace_stop) (¤t_target)
|
||||
|
||||
#define target_trace_find(type,num,addr1,addr2,tpp) \
|
||||
(*current_target.to_trace_find) ((type), (num), (addr1), (addr2), (tpp))
|
||||
(*current_target.to_trace_find) (¤t_target, \
|
||||
(type), (num), (addr1), (addr2), (tpp))
|
||||
|
||||
#define target_get_trace_state_variable_value(tsv,val) \
|
||||
(*current_target.to_get_trace_state_variable_value) ((tsv), (val))
|
||||
|
Reference in New Issue
Block a user