diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-17 21:41:02 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-19 07:46:21 -0700 |
commit | e2d1aae3726343725f2381a7fdca8647b6086584 (patch) | |
tree | 0b8e317de8cede7a883f2e070d3e62fe2864975c | |
parent | 583f9a86a41ec94276dd56da8844a40add57f734 (diff) | |
download | gdb-e2d1aae3726343725f2381a7fdca8647b6086584.zip gdb-e2d1aae3726343725f2381a7fdca8647b6086584.tar.gz gdb-e2d1aae3726343725f2381a7fdca8647b6086584.tar.bz2 |
Add target_ops argument to to_trace_start
2014-02-19 Tom Tromey <tromey@redhat.com>
* target.h (struct target_ops) <to_trace_start>: Add argument.
(target_trace_start): Add argument.
* target.c (update_current_target): Update.
* remote.c (remote_trace_start): Add 'self' argument.
-rw-r--r-- | gdb/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/remote.c | 2 | ||||
-rw-r--r-- | gdb/target.c | 2 | ||||
-rw-r--r-- | gdb/target.h | 4 |
4 files changed, 11 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1f2e452..cf502b6 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,12 @@ 2014-02-19 Tom Tromey <tromey@redhat.com> + * target.h (struct target_ops) <to_trace_start>: Add argument. + (target_trace_start): Add argument. + * target.c (update_current_target): Update. + * remote.c (remote_trace_start): Add 'self' argument. + +2014-02-19 Tom Tromey <tromey@redhat.com> + * target.h (struct target_ops) <to_trace_set_readonly_regions>: Add argument. (target_trace_set_readonly_regions): Add argument. diff --git a/gdb/remote.c b/gdb/remote.c index 255545b..4afe062 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -10711,7 +10711,7 @@ Too many sections for read-only sections definition packet.")); } static void -remote_trace_start (void) +remote_trace_start (struct target_ops *self) { putpkt ("QTStart"); remote_get_noisy_reply (&target_buf, &target_buf_size); diff --git a/gdb/target.c b/gdb/target.c index cbdce77..cb859b3 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -870,7 +870,7 @@ update_current_target (void) (void (*) (struct target_ops *)) tcomplain); de_fault (to_trace_start, - (void (*) (void)) + (void (*) (struct target_ops *)) tcomplain); de_fault (to_get_trace_status, (int (*) (struct trace_status *)) diff --git a/gdb/target.h b/gdb/target.h index c46b42b..d2e0d80 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -784,7 +784,7 @@ struct target_ops void (*to_trace_set_readonly_regions) (struct target_ops *); /* Start a trace run. */ - void (*to_trace_start) (void); + void (*to_trace_start) (struct target_ops *); /* Get the current status of a tracing run. */ int (*to_get_trace_status) (struct trace_status *ts); @@ -1803,7 +1803,7 @@ extern char *target_fileio_read_stralloc (const char *filename); (*current_target.to_disable_tracepoint) (¤t_target, loc) #define target_trace_start() \ - (*current_target.to_trace_start) () + (*current_target.to_trace_start) (¤t_target) #define target_trace_set_readonly_regions() \ (*current_target.to_trace_set_readonly_regions) (¤t_target) |