Add target_ops argument to to_download_trace_state_variable
2014-02-19 Tom Tromey <tromey@redhat.com> * target.h (struct target_ops) <to_download_trace_state_variable>: Add argument. (target_download_trace_state_variable): Add argument. * target.c (update_current_target): Update. * remote.c (remote_download_trace_state_variable): Add 'self' argument.
This commit is contained in:
parent
a52a8357cf
commit
559d2b81f0
@ -1,3 +1,12 @@
|
||||
2014-02-19 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* target.h (struct target_ops) <to_download_trace_state_variable>:
|
||||
Add argument.
|
||||
(target_download_trace_state_variable): Add argument.
|
||||
* target.c (update_current_target): Update.
|
||||
* remote.c (remote_download_trace_state_variable): Add 'self'
|
||||
argument.
|
||||
|
||||
2014-02-19 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* target.h (struct target_ops) <to_can_download_tracepoint>: Add
|
||||
|
@ -10602,7 +10602,8 @@ remote_can_download_tracepoint (struct target_ops *self)
|
||||
|
||||
|
||||
static void
|
||||
remote_download_trace_state_variable (struct trace_state_variable *tsv)
|
||||
remote_download_trace_state_variable (struct target_ops *self,
|
||||
struct trace_state_variable *tsv)
|
||||
{
|
||||
struct remote_state *rs = get_remote_state ();
|
||||
char *p;
|
||||
|
@ -858,7 +858,7 @@ update_current_target (void)
|
||||
(int (*) (struct target_ops *))
|
||||
return_zero);
|
||||
de_fault (to_download_trace_state_variable,
|
||||
(void (*) (struct trace_state_variable *))
|
||||
(void (*) (struct target_ops *, struct trace_state_variable *))
|
||||
tcomplain);
|
||||
de_fault (to_enable_tracepoint,
|
||||
(void (*) (struct bp_location *))
|
||||
|
@ -767,7 +767,8 @@ struct target_ops
|
||||
int (*to_can_download_tracepoint) (struct target_ops *);
|
||||
|
||||
/* Send full details of a trace state variable to the target. */
|
||||
void (*to_download_trace_state_variable) (struct trace_state_variable *tsv);
|
||||
void (*to_download_trace_state_variable) (struct target_ops *,
|
||||
struct trace_state_variable *tsv);
|
||||
|
||||
/* Enable a tracepoint on the target. */
|
||||
void (*to_enable_tracepoint) (struct bp_location *location);
|
||||
@ -1791,7 +1792,7 @@ extern char *target_fileio_read_stralloc (const char *filename);
|
||||
(*current_target.to_can_download_tracepoint) (¤t_target)
|
||||
|
||||
#define target_download_trace_state_variable(tsv) \
|
||||
(*current_target.to_download_trace_state_variable) (tsv)
|
||||
(*current_target.to_download_trace_state_variable) (¤t_target, tsv)
|
||||
|
||||
#define target_enable_tracepoint(loc) \
|
||||
(*current_target.to_enable_tracepoint) (loc)
|
||||
|
Loading…
Reference in New Issue
Block a user