Add target_ops argument to to_upload_trace_state_variables
2014-02-19 Tom Tromey <tromey@redhat.com> * target.h (struct target_ops) <to_upload_trace_state_variables>: Add argument. (target_upload_trace_state_variables): Add argument. * target.c (update_current_target): Update. * remote.c (remote_upload_trace_state_variables): Add 'self' argument. (remote_start_remote): Update.
This commit is contained in:
parent
ab6617cc1b
commit
181e3713eb
4 changed files with 19 additions and 6 deletions
|
@ -1,3 +1,13 @@
|
||||||
|
2014-02-19 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
|
* target.h (struct target_ops) <to_upload_trace_state_variables>:
|
||||||
|
Add argument.
|
||||||
|
(target_upload_trace_state_variables): Add argument.
|
||||||
|
* target.c (update_current_target): Update.
|
||||||
|
* remote.c (remote_upload_trace_state_variables): Add 'self'
|
||||||
|
argument.
|
||||||
|
(remote_start_remote): Update.
|
||||||
|
|
||||||
2014-02-19 Tom Tromey <tromey@redhat.com>
|
2014-02-19 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
* target.h (struct target_ops) <to_upload_tracepoints>: Add
|
* target.h (struct target_ops) <to_upload_tracepoints>: Add
|
||||||
|
|
|
@ -205,7 +205,8 @@ static int remote_get_trace_status (struct target_ops *self,
|
||||||
static int remote_upload_tracepoints (struct target_ops *self,
|
static int remote_upload_tracepoints (struct target_ops *self,
|
||||||
struct uploaded_tp **utpp);
|
struct uploaded_tp **utpp);
|
||||||
|
|
||||||
static int remote_upload_trace_state_variables (struct uploaded_tsv **utsvp);
|
static int remote_upload_trace_state_variables (struct target_ops *self,
|
||||||
|
struct uploaded_tsv **utsvp);
|
||||||
|
|
||||||
static void remote_query_supported (void);
|
static void remote_query_supported (void);
|
||||||
|
|
||||||
|
@ -3443,7 +3444,7 @@ remote_start_remote (int from_tty, struct target_ops *target, int extended_p)
|
||||||
{
|
{
|
||||||
struct uploaded_tsv *uploaded_tsvs = NULL;
|
struct uploaded_tsv *uploaded_tsvs = NULL;
|
||||||
|
|
||||||
remote_upload_trace_state_variables (&uploaded_tsvs);
|
remote_upload_trace_state_variables (target, &uploaded_tsvs);
|
||||||
merge_uploaded_trace_state_variables (&uploaded_tsvs);
|
merge_uploaded_trace_state_variables (&uploaded_tsvs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -11673,7 +11674,8 @@ remote_upload_tracepoints (struct target_ops *self, struct uploaded_tp **utpp)
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
remote_upload_trace_state_variables (struct uploaded_tsv **utsvp)
|
remote_upload_trace_state_variables (struct target_ops *self,
|
||||||
|
struct uploaded_tsv **utsvp)
|
||||||
{
|
{
|
||||||
struct remote_state *rs = get_remote_state ();
|
struct remote_state *rs = get_remote_state ();
|
||||||
char *p;
|
char *p;
|
||||||
|
|
|
@ -896,7 +896,7 @@ update_current_target (void)
|
||||||
(int (*) (struct target_ops *, struct uploaded_tp **))
|
(int (*) (struct target_ops *, struct uploaded_tp **))
|
||||||
return_zero);
|
return_zero);
|
||||||
de_fault (to_upload_trace_state_variables,
|
de_fault (to_upload_trace_state_variables,
|
||||||
(int (*) (struct uploaded_tsv **))
|
(int (*) (struct target_ops *, struct uploaded_tsv **))
|
||||||
return_zero);
|
return_zero);
|
||||||
de_fault (to_get_raw_trace_data,
|
de_fault (to_get_raw_trace_data,
|
||||||
(LONGEST (*) (gdb_byte *, ULONGEST, LONGEST))
|
(LONGEST (*) (gdb_byte *, ULONGEST, LONGEST))
|
||||||
|
|
|
@ -816,7 +816,8 @@ struct target_ops
|
||||||
int (*to_upload_tracepoints) (struct target_ops *,
|
int (*to_upload_tracepoints) (struct target_ops *,
|
||||||
struct uploaded_tp **utpp);
|
struct uploaded_tp **utpp);
|
||||||
|
|
||||||
int (*to_upload_trace_state_variables) (struct uploaded_tsv **utsvp);
|
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) (gdb_byte *buf,
|
||||||
ULONGEST offset, LONGEST len);
|
ULONGEST offset, LONGEST len);
|
||||||
|
@ -1836,7 +1837,7 @@ extern char *target_fileio_read_stralloc (const char *filename);
|
||||||
(*current_target.to_upload_tracepoints) (¤t_target, utpp)
|
(*current_target.to_upload_tracepoints) (¤t_target, utpp)
|
||||||
|
|
||||||
#define target_upload_trace_state_variables(utsvp) \
|
#define target_upload_trace_state_variables(utsvp) \
|
||||||
(*current_target.to_upload_trace_state_variables) (utsvp)
|
(*current_target.to_upload_trace_state_variables) (¤t_target, utsvp)
|
||||||
|
|
||||||
#define target_get_raw_trace_data(buf,offset,len) \
|
#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) ((buf), (offset), (len))
|
||||||
|
|
Loading…
Add table
Reference in a new issue