aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/remote.c2
-rw-r--r--gdb/target.c2
-rw-r--r--gdb/target.h4
4 files changed, 11 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index b6a692c..fd76ca6 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_stop>: 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 <tromey@redhat.com>
+
* tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
* target.h (struct target_ops) <to_get_tracepoint_status>: Add
argument.
diff --git a/gdb/remote.c b/gdb/remote.c
index c5e1b01..74f0b77 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 19c436d..6eaa70b 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 39591a5..33377eb 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) (&current_target, tp, utp)
#define target_trace_stop() \
- (*current_target.to_trace_stop) ()
+ (*current_target.to_trace_stop) (&current_target)
#define target_trace_find(type,num,addr1,addr2,tpp) \
(*current_target.to_trace_find) ((type), (num), (addr1), (addr2), (tpp))