From: Tom Tromey Date: Wed, 18 Dec 2013 04:41:40 +0000 (-0700) Subject: Add target_ops argument to to_trace_stop X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=74499f1bf25edf94415bb692a7cf71b719897738;p=binutils-gdb.git Add target_ops argument to to_trace_stop 2014-02-19 Tom Tromey * target.h (struct target_ops) : Add argument. (target_trace_stop): Add argument. * target.c (update_current_target): Update. * remote.c (remote_trace_stop): Add 'self' argument. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b6a692caba3..fd76ca69032 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_stop): Add argument. + * target.c (update_current_target): Update. + * remote.c (remote_trace_stop): Add 'self' argument. + 2014-02-19 Tom Tromey * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument. diff --git a/gdb/remote.c b/gdb/remote.c index c5e1b015f98..74f0b77dcb5 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -10820,7 +10820,7 @@ remote_get_tracepoint_status (struct target_ops *self, struct breakpoint *bp, } static void -remote_trace_stop (void) +remote_trace_stop (struct target_ops *self) { putpkt ("QTStop"); remote_get_noisy_reply (&target_buf, &target_buf_size); diff --git a/gdb/target.c b/gdb/target.c index 19c436d281d..6eaa70b92d9 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -880,7 +880,7 @@ update_current_target (void) struct uploaded_tp *)) tcomplain); de_fault (to_trace_stop, - (void (*) (void)) + (void (*) (struct target_ops *)) tcomplain); de_fault (to_trace_find, (int (*) (enum trace_find_type, int, CORE_ADDR, CORE_ADDR, int *)) diff --git a/gdb/target.h b/gdb/target.h index 39591a52345..33377eb7731 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -794,7 +794,7 @@ struct target_ops struct uploaded_tp *utp); /* Stop a trace run. */ - void (*to_trace_stop) (void); + void (*to_trace_stop) (struct target_ops *); /* Ask the target to find a trace frame of the given type TYPE, using NUM, ADDR1, and ADDR2 as search parameters. Returns the @@ -1816,7 +1816,7 @@ extern char *target_fileio_read_stralloc (const char *filename); (*current_target.to_get_tracepoint_status) (¤t_target, tp, utp) #define target_trace_stop() \ - (*current_target.to_trace_stop) () + (*current_target.to_trace_stop) (¤t_target) #define target_trace_find(type,num,addr1,addr2,tpp) \ (*current_target.to_trace_find) ((type), (num), (addr1), (addr2), (tpp))