From: Tom Tromey Date: Wed, 18 Dec 2013 04:40:50 +0000 (-0700) Subject: Add target_ops argument to to_trace_set_readonly_regions X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=583f9a86a41ec94276dd56da8844a40add57f734;p=binutils-gdb.git Add target_ops argument to to_trace_set_readonly_regions 2014-02-19 Tom Tromey * target.h (struct target_ops) : Add argument. (target_trace_set_readonly_regions): Add argument. * target.c (update_current_target): Update. * remote.c (remote_trace_set_readonly_regions): Add 'self' argument. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5e1e2ae3afe..1f2e45233f3 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,12 @@ +2014-02-19 Tom Tromey + + * target.h (struct target_ops) : + Add argument. + (target_trace_set_readonly_regions): Add argument. + * target.c (update_current_target): Update. + * remote.c (remote_trace_set_readonly_regions): Add 'self' + argument. + 2014-02-19 Tom Tromey * target.h (struct target_ops) : Add diff --git a/gdb/remote.c b/gdb/remote.c index c7dd65c311f..255545b8523 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -10661,7 +10661,7 @@ remote_disable_tracepoint (struct target_ops *self, } static void -remote_trace_set_readonly_regions (void) +remote_trace_set_readonly_regions (struct target_ops *self) { asection *s; bfd *abfd = NULL; diff --git a/gdb/target.c b/gdb/target.c index 69ee7562a3f..cbdce77a20c 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -867,7 +867,7 @@ update_current_target (void) (void (*) (struct target_ops *, struct bp_location *)) tcomplain); de_fault (to_trace_set_readonly_regions, - (void (*) (void)) + (void (*) (struct target_ops *)) tcomplain); de_fault (to_trace_start, (void (*) (void)) diff --git a/gdb/target.h b/gdb/target.h index 7e3ad87cb71..c46b42ba58b 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -781,7 +781,7 @@ struct target_ops /* Inform the target info of memory regions that are readonly (such as text sections), and so it should return data from those rather than look in the trace buffer. */ - void (*to_trace_set_readonly_regions) (void); + void (*to_trace_set_readonly_regions) (struct target_ops *); /* Start a trace run. */ void (*to_trace_start) (void); @@ -1806,7 +1806,7 @@ extern char *target_fileio_read_stralloc (const char *filename); (*current_target.to_trace_start) () #define target_trace_set_readonly_regions() \ - (*current_target.to_trace_set_readonly_regions) () + (*current_target.to_trace_set_readonly_regions) (¤t_target) #define target_get_trace_status(ts) \ (*current_target.to_get_trace_status) (ts)