From e2d1aae3726343725f2381a7fdca8647b6086584 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 17 Dec 2013 21:41:02 -0700 Subject: [PATCH] Add target_ops argument to to_trace_start 2014-02-19 Tom Tromey * target.h (struct target_ops) : Add argument. (target_trace_start): Add argument. * target.c (update_current_target): Update. * remote.c (remote_trace_start): Add 'self' argument. --- gdb/ChangeLog | 7 +++++++ gdb/remote.c | 2 +- gdb/target.c | 2 +- gdb/target.h | 4 ++-- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1f2e45233f3..cf502b644ea 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2014-02-19 Tom Tromey + + * target.h (struct target_ops) : 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 * target.h (struct target_ops) : diff --git a/gdb/remote.c b/gdb/remote.c index 255545b8523..4afe062ad07 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 cbdce77a20c..cb859b3545c 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 c46b42ba58b..d2e0d80cada 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) -- 2.30.2