diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-17 21:42:54 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-19 07:46:30 -0700 |
commit | 88ee6f45bb74169fea3dd75110e626ece3f11401 (patch) | |
tree | f17b03b7898feb038fc3a39e8d0cb4de81139825 | |
parent | 181e3713ebe09eb7ee9119d2d214553ed37f5b29 (diff) | |
download | gdb-88ee6f45bb74169fea3dd75110e626ece3f11401.zip gdb-88ee6f45bb74169fea3dd75110e626ece3f11401.tar.gz gdb-88ee6f45bb74169fea3dd75110e626ece3f11401.tar.bz2 |
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.
-rw-r--r-- | gdb/ChangeLog | 8 | ||||
-rw-r--r-- | gdb/remote.c | 3 | ||||
-rw-r--r-- | gdb/target.c | 2 | ||||
-rw-r--r-- | gdb/target.h | 5 |
4 files changed, 14 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0d53cdb..b625897 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,13 @@ 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. + +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. diff --git a/gdb/remote.c b/gdb/remote.c index 869a320..d5ce8c1 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -10968,7 +10968,8 @@ remote_save_trace_data (struct target_ops *self, const char *filename) not be unhappy if we don't get as much as we ask for. */ static LONGEST -remote_get_raw_trace_data (gdb_byte *buf, ULONGEST offset, LONGEST len) +remote_get_raw_trace_data (struct target_ops *self, + gdb_byte *buf, ULONGEST offset, LONGEST len) { struct remote_state *rs = get_remote_state (); char *reply; diff --git a/gdb/target.c b/gdb/target.c index ab596dc..c7e6f3e 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -899,7 +899,7 @@ update_current_target (void) (int (*) (struct target_ops *, struct uploaded_tsv **)) return_zero); de_fault (to_get_raw_trace_data, - (LONGEST (*) (gdb_byte *, ULONGEST, LONGEST)) + (LONGEST (*) (struct target_ops *, gdb_byte *, ULONGEST, LONGEST)) tcomplain); de_fault (to_get_min_fast_tracepoint_insn_len, (int (*) (void)) diff --git a/gdb/target.h b/gdb/target.h index d4b539b..18bb852 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -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) (¤t_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) (¤t_target, \ + (buf), (offset), (len)) #define target_get_min_fast_tracepoint_insn_len() \ (*current_target.to_get_min_fast_tracepoint_insn_len) () |