Add target_ops argument to to_enable_tracepoint
authorTom Tromey <tromey@redhat.com>
Wed, 18 Dec 2013 04:40:25 +0000 (21:40 -0700)
committerTom Tromey <tromey@redhat.com>
Wed, 19 Feb 2014 14:46:18 +0000 (07:46 -0700)
2014-02-19  Tom Tromey  <tromey@redhat.com>

* target.h (struct target_ops) <to_enable_tracepoint>: Add
argument.
(target_enable_tracepoint): Add argument.
* target.c (update_current_target): Update.
* remote.c (remote_enable_tracepoint): Add 'self' argument.

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

index 473c0ac9dfe99b0dcf1e577b296af52ae590773f..fa4b5cfdbeb08cb303bb3e65b242f4ac9cae384f 100644 (file)
@@ -1,3 +1,11 @@
+2014-02-19  Tom Tromey  <tromey@redhat.com>
+
+       * target.h (struct target_ops) <to_enable_tracepoint>: Add
+       argument.
+       (target_enable_tracepoint): Add argument.
+       * target.c (update_current_target): Update.
+       * remote.c (remote_enable_tracepoint): Add 'self' argument.
+
 2014-02-19  Tom Tromey  <tromey@redhat.com>
 
        * target.h (struct target_ops) <to_download_trace_state_variable>:
index 8586bbce948ca6b55ed2f737571a8bea2a1edb44..0f8acf3e1d1e5730e22e5bb6e113ec8114e95f23 100644 (file)
@@ -10625,7 +10625,8 @@ remote_download_trace_state_variable (struct target_ops *self,
 }
 
 static void
-remote_enable_tracepoint (struct bp_location *location)
+remote_enable_tracepoint (struct target_ops *self,
+                         struct bp_location *location)
 {
   struct remote_state *rs = get_remote_state ();
   char addr_buf[40];
index 594d620353bc9c57a652c080edea7911997b5d30..cbd090ac7a17e1017c4406056556f5646da8f5e2 100644 (file)
@@ -861,7 +861,7 @@ update_current_target (void)
            (void (*) (struct target_ops *, struct trace_state_variable *))
            tcomplain);
   de_fault (to_enable_tracepoint,
-           (void (*) (struct bp_location *))
+           (void (*) (struct target_ops *, struct bp_location *))
            tcomplain);
   de_fault (to_disable_tracepoint,
            (void (*) (struct bp_location *))
index 80c58ca484be861d792289de83c31c683af48294..2b0ee146e4035e4ceaef79cd50c81900951417ec 100644 (file)
@@ -771,7 +771,8 @@ struct target_ops
                                              struct trace_state_variable *tsv);
 
     /* Enable a tracepoint on the target.  */
-    void (*to_enable_tracepoint) (struct bp_location *location);
+    void (*to_enable_tracepoint) (struct target_ops *,
+                                 struct bp_location *location);
 
     /* Disable a tracepoint on the target.  */
     void (*to_disable_tracepoint) (struct bp_location *location);
@@ -1795,7 +1796,7 @@ extern char *target_fileio_read_stralloc (const char *filename);
   (*current_target.to_download_trace_state_variable) (&current_target, tsv)
 
 #define target_enable_tracepoint(loc) \
-  (*current_target.to_enable_tracepoint) (loc)
+  (*current_target.to_enable_tracepoint) (&current_target, loc)
 
 #define target_disable_tracepoint(loc) \
   (*current_target.to_disable_tracepoint) (loc)
This page took 0.036737 seconds and 4 git commands to generate.