aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog9
-rw-r--r--gdb/remote.c2
-rw-r--r--gdb/target.c2
-rw-r--r--gdb/target.h4
4 files changed, 13 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 5e1e2ae..1f2e452 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,14 @@
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.
+ * target.c (update_current_target): Update.
+ * remote.c (remote_trace_set_readonly_regions): Add 'self'
+ argument.
+
+2014-02-19 Tom Tromey <tromey@redhat.com>
+
* target.h (struct target_ops) <to_disable_tracepoint>: Add
argument.
(target_disable_tracepoint): Add argument.
diff --git a/gdb/remote.c b/gdb/remote.c
index c7dd65c..255545b 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 69ee756..cbdce77 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 7e3ad87..c46b42b 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) (&current_target)
#define target_get_trace_status(ts) \
(*current_target.to_get_trace_status) (ts)