]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Add target_ops argument to to_get_tracepoint_status
authorTom Tromey <tromey@redhat.com>
Wed, 18 Dec 2013 04:41:27 +0000 (21:41 -0700)
committerTom Tromey <tromey@redhat.com>
Wed, 19 Feb 2014 14:46:23 +0000 (07:46 -0700)
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.
(target_get_tracepoint_status): Add argument.
* target.c (update_current_target): Update.
* remote.c (remote_get_tracepoint_status): Add 'self' argument.

gdb/ChangeLog
gdb/remote.c
gdb/target.c
gdb/target.h
gdb/tracepoint.c

index b337fa39aeacdca492b8ede6ef9fc6fd65bb0ef9..b6a692caba3e4e02b6030cb39794fdbc576e6e7d 100644 (file)
@@ -1,3 +1,12 @@
+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.
+       (target_get_tracepoint_status): Add argument.
+       * target.c (update_current_target): Update.
+       * remote.c (remote_get_tracepoint_status): Add 'self' argument.
+
 2014-02-19  Tom Tromey  <tromey@redhat.com>
 
        * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
index 58a6d4b1e92af11052ad605fdaba43e363a5a3ad..c5e1b015f98f3675dafee3d217c384395a96abcb 100644 (file)
@@ -10773,7 +10773,7 @@ remote_get_trace_status (struct target_ops *self, struct trace_status *ts)
 }
 
 static void
-remote_get_tracepoint_status (struct breakpoint *bp,
+remote_get_tracepoint_status (struct target_ops *self, struct breakpoint *bp,
                              struct uploaded_tp *utp)
 {
   struct remote_state *rs = get_remote_state ();
index 1d069b73dffe77f060e2a10518e6f13843bbfa74..19c436d281dd7a3e32272a738e9b9c1705aa5797 100644 (file)
@@ -876,7 +876,8 @@ update_current_target (void)
            (int (*) (struct target_ops *, struct trace_status *))
            return_minus_one);
   de_fault (to_get_tracepoint_status,
-           (void (*) (struct breakpoint *, struct uploaded_tp *))
+           (void (*) (struct target_ops *, struct breakpoint *,
+                      struct uploaded_tp *))
            tcomplain);
   de_fault (to_trace_stop,
            (void (*) (void))
index e53977814788b5dfe8394d90f9397e4261db66c4..39591a52345878816137a1463bbca3423c71e054 100644 (file)
@@ -789,7 +789,8 @@ struct target_ops
     /* Get the current status of a tracing run.  */
     int (*to_get_trace_status) (struct target_ops *, struct trace_status *ts);
 
-    void (*to_get_tracepoint_status) (struct breakpoint *tp,
+    void (*to_get_tracepoint_status) (struct target_ops *,
+                                     struct breakpoint *tp,
                                      struct uploaded_tp *utp);
 
     /* Stop a trace run.  */
@@ -1812,7 +1813,7 @@ extern char *target_fileio_read_stralloc (const char *filename);
   (*current_target.to_get_trace_status) (&current_target, ts)
 
 #define target_get_tracepoint_status(tp,utp)           \
-  (*current_target.to_get_tracepoint_status) (tp, utp)
+  (*current_target.to_get_tracepoint_status) (&current_target, tp, utp)
 
 #define target_trace_stop() \
   (*current_target.to_trace_stop) ()
index d20a99e4d503bd5af9279e18ce74a4ddf3111b21..6698dd6e131dd4bb1d1c721ff186901954423034 100644 (file)
@@ -4793,7 +4793,8 @@ tfile_get_trace_status (struct target_ops *self, struct trace_status *ts)
 }
 
 static void
-tfile_get_tracepoint_status (struct breakpoint *tp, struct uploaded_tp *utp)
+tfile_get_tracepoint_status (struct target_ops *self,
+                            struct breakpoint *tp, struct uploaded_tp *utp)
 {
   /* Other bits of trace status were collected as part of opening the
      trace files, so nothing to do here.  */