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

* target.h (struct target_ops) <to_get_raw_trace_data>: Add
argument.
(target_get_raw_trace_data): Add argument.
* target.c (update_current_target): Update.
* remote.c (remote_get_raw_trace_data): Add 'self' argument.

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

index 0d53cdb6d7cc44001dc1513794917eb0e17ebfd3..b625897d6ea4cba49562b08989170a6835e370a0 100644 (file)
@@ -1,3 +1,11 @@
+2014-02-19  Tom Tromey  <tromey@redhat.com>
+
+       * target.h (struct target_ops) <to_get_raw_trace_data>: Add
+       argument.
+       (target_get_raw_trace_data): Add argument.
+       * target.c (update_current_target): Update.
+       * remote.c (remote_get_raw_trace_data): Add 'self' argument.
+
 2014-02-19  Tom Tromey  <tromey@redhat.com>
 
        * target.h (struct target_ops) <to_upload_trace_state_variables>:
 2014-02-19  Tom Tromey  <tromey@redhat.com>
 
        * target.h (struct target_ops) <to_upload_trace_state_variables>:
index 869a320c82914897c773362da2bf368ebd572349..d5ce8c18aaceb1206f84ef0b8b99b0271fbcbbf4 100644 (file)
@@ -10968,7 +10968,8 @@ remote_save_trace_data (struct target_ops *self, const char *filename)
    not be unhappy if we don't get as much as we ask for.  */
 
 static LONGEST
    not be unhappy if we don't get as much as we ask for.  */
 
 static LONGEST
-remote_get_raw_trace_data (gdb_byte *buf, ULONGEST offset, LONGEST len)
+remote_get_raw_trace_data (struct target_ops *self,
+                          gdb_byte *buf, ULONGEST offset, LONGEST len)
 {
   struct remote_state *rs = get_remote_state ();
   char *reply;
 {
   struct remote_state *rs = get_remote_state ();
   char *reply;
index ab596dcbdff88ebf8ecedb059bfed84f9e885e36..c7e6f3e7d1a32f807c261d89735ad2a99cd28d23 100644 (file)
@@ -899,7 +899,7 @@ update_current_target (void)
            (int (*) (struct target_ops *, struct uploaded_tsv **))
            return_zero);
   de_fault (to_get_raw_trace_data,
            (int (*) (struct target_ops *, struct uploaded_tsv **))
            return_zero);
   de_fault (to_get_raw_trace_data,
-           (LONGEST (*) (gdb_byte *, ULONGEST, LONGEST))
+           (LONGEST (*) (struct target_ops *, gdb_byte *, ULONGEST, LONGEST))
            tcomplain);
   de_fault (to_get_min_fast_tracepoint_insn_len,
            (int (*) (void))
            tcomplain);
   de_fault (to_get_min_fast_tracepoint_insn_len,
            (int (*) (void))
index d4b539bd8215deb5676d210f77fec74e5771a337..18bb852b61358628f21ced38b8927c91526de598 100644 (file)
@@ -819,7 +819,7 @@ struct target_ops
     int (*to_upload_trace_state_variables) (struct target_ops *,
                                            struct uploaded_tsv **utsvp);
 
     int (*to_upload_trace_state_variables) (struct target_ops *,
                                            struct uploaded_tsv **utsvp);
 
-    LONGEST (*to_get_raw_trace_data) (gdb_byte *buf,
+    LONGEST (*to_get_raw_trace_data) (struct target_ops *, gdb_byte *buf,
                                      ULONGEST offset, LONGEST len);
 
     /* Get the minimum length of instruction on which a fast tracepoint
                                      ULONGEST offset, LONGEST len);
 
     /* Get the minimum length of instruction on which a fast tracepoint
@@ -1840,7 +1840,8 @@ extern char *target_fileio_read_stralloc (const char *filename);
   (*current_target.to_upload_trace_state_variables) (&current_target, utsvp)
 
 #define target_get_raw_trace_data(buf,offset,len) \
   (*current_target.to_upload_trace_state_variables) (&current_target, utsvp)
 
 #define target_get_raw_trace_data(buf,offset,len) \
-  (*current_target.to_get_raw_trace_data) ((buf), (offset), (len))
+  (*current_target.to_get_raw_trace_data) (&current_target,    \
+                                          (buf), (offset), (len))
 
 #define target_get_min_fast_tracepoint_insn_len() \
   (*current_target.to_get_min_fast_tracepoint_insn_len) ()
 
 #define target_get_min_fast_tracepoint_insn_len() \
   (*current_target.to_get_min_fast_tracepoint_insn_len) ()
This page took 0.034692 seconds and 4 git commands to generate.