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

* target.h (struct target_ops) <to_trace_init>: Add argument.
(target_trace_init): Add argument.
* target.c (update_current_target): Update.
* remote.c (remote_trace_init): Add 'self' argument.

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

index a15a8f3f7ddfcf1543afd583c961d2f807873453..33394b271d0e59825829dc8c727b75e6f846abbf 100644 (file)
@@ -1,3 +1,10 @@
+2014-02-19  Tom Tromey  <tromey@redhat.com>
+
+       * target.h (struct target_ops) <to_trace_init>: Add argument.
+       (target_trace_init): Add argument.
+       * target.c (update_current_target): Update.
+       * remote.c (remote_trace_init): Add 'self' argument.
+
 2014-02-19  Tom Tromey  <tromey@redhat.com>
 
        * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
index 866c5c00f965457803658537fd6c91292ca14f13..0e12567c3871ddbc8cae025355b26f55f01d40de 100644 (file)
@@ -10326,7 +10326,7 @@ remote_can_run_breakpoint_commands (struct target_ops *self)
 }
 
 static void
-remote_trace_init (void)
+remote_trace_init (struct target_ops *self)
 {
   putpkt ("QTinit");
   remote_get_noisy_reply (&target_buf, &target_buf_size);
index a4c04194e7cb53b5e2de940e678ee3831a80275d..b34ef9c40727b826181bc64470a1cef216a95ba2 100644 (file)
@@ -849,7 +849,7 @@ update_current_target (void)
            (int (*) (struct target_ops *))
            return_zero);
   de_fault (to_trace_init,
-           (void (*) (void))
+           (void (*) (struct target_ops *))
            tcomplain);
   de_fault (to_download_tracepoint,
            (void (*) (struct bp_location *))
index 626da3e4a5d24fd362e4d78686252b503353cfa9..76d2a8a76c0629846cad13431f5a2394a856ba74 100644 (file)
@@ -756,7 +756,7 @@ struct target_ops
     /* Tracepoint-related operations.  */
 
     /* Prepare the target for a tracing run.  */
-    void (*to_trace_init) (void);
+    void (*to_trace_init) (struct target_ops *);
 
     /* Send full details of a tracepoint location to the target.  */
     void (*to_download_tracepoint) (struct bp_location *location);
@@ -1781,7 +1781,7 @@ extern char *target_fileio_read_stralloc (const char *filename);
 /* Tracepoint-related operations.  */
 
 #define target_trace_init() \
-  (*current_target.to_trace_init) ()
+  (*current_target.to_trace_init) (&current_target)
 
 #define target_download_tracepoint(t) \
   (*current_target.to_download_tracepoint) (t)
This page took 0.038747 seconds and 4 git commands to generate.