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

* target.h (struct target_ops)
<to_supports_enable_disable_tracepoint>: Add argument.
(target_supports_enable_disable_tracepoint): Add argument.
* target.c (update_current_target): Update.
* remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
argument.

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

index eeef934528b373df69cb120851a6b08335e51eb7..ad04f80843381b7d63b5d2e43a378c5ad0fcdab7 100644 (file)
@@ -1,3 +1,12 @@
+2014-02-19  Tom Tromey  <tromey@redhat.com>
+
+       * target.h (struct target_ops)
+       <to_supports_enable_disable_tracepoint>: Add argument.
+       (target_supports_enable_disable_tracepoint): Add argument.
+       * target.c (update_current_target): Update.
+       * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
+       argument.
+
 2014-02-19  Tom Tromey  <tromey@redhat.com>
 
        * target.h (struct target_ops) <to_supports_multi_process>: Add
index 72e4771355d470b8143ad6e484f0e221eb2f57fa..77a5166fc3711ee7313dff9681a2ccdbd87eb154 100644 (file)
@@ -10290,7 +10290,7 @@ remote_supports_install_in_trace (void)
 }
 
 static int
-remote_supports_enable_disable_tracepoint (void)
+remote_supports_enable_disable_tracepoint (struct target_ops *self)
 {
   struct remote_state *rs = get_remote_state ();
 
index 768b911ce3e7dc5d6b42a80abb40f0be7554a137..f65f8befc9008602decec5108cd97fb14aa741bb 100644 (file)
@@ -843,7 +843,7 @@ update_current_target (void)
            (int (*) (struct target_ops *))
            return_zero);
   de_fault (to_supports_enable_disable_tracepoint,
-           (int (*) (void))
+           (int (*) (struct target_ops *))
            return_zero);
   de_fault (to_supports_string_tracing,
            (int (*) (void))
index cb58f4cb30c5aaca3f510f921e6724e527a06cde..a196fe4cd2c6a76695f37e99f59708277f06cfee 100644 (file)
@@ -676,7 +676,7 @@ struct target_ops
 
     /* Does this target support enabling and disabling tracepoints while a trace
        experiment is running?  */
-    int (*to_supports_enable_disable_tracepoint) (void);
+    int (*to_supports_enable_disable_tracepoint) (struct target_ops *);
 
     /* Does this target support disabling address space randomization?  */
     int (*to_supports_disable_randomization) (void);
@@ -1114,7 +1114,7 @@ int target_supports_disable_randomization (void);
    while a trace experiment is running.  */
 
 #define target_supports_enable_disable_tracepoint() \
-  (*current_target.to_supports_enable_disable_tracepoint) ()
+  (*current_target.to_supports_enable_disable_tracepoint) (&current_target)
 
 #define target_supports_string_tracing() \
   (*current_target.to_supports_string_tracing) ()