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

* target.h (struct target_ops) <to_goto_record_begin>: Add
argument.
* target.c (target_goto_record_begin): Add argument.
* record-full.c (record_full_goto_begin): Add 'self' argument.
* record-btrace.c (record_btrace_goto_begin): Add 'self'
argument.

gdb/ChangeLog
gdb/record-btrace.c
gdb/record-full.c
gdb/target.c
gdb/target.h

index 2e0590ac200d858825ae870dc38f99e238f09fe2..852226a64c754b8c39cbdd477c4b1eb6469a2406 100644 (file)
@@ -1,3 +1,12 @@
+2014-02-19  Tom Tromey  <tromey@redhat.com>
+
+       * target.h (struct target_ops) <to_goto_record_begin>: Add
+       argument.
+       * target.c (target_goto_record_begin): Add argument.
+       * record-full.c (record_full_goto_begin): Add 'self' argument.
+       * record-btrace.c (record_btrace_goto_begin): Add 'self'
+       argument.
+
 2014-02-19  Tom Tromey  <tromey@redhat.com>
 
        * target.h (struct target_ops) <to_record_is_replaying>: Add
index 3d51f93a97711a48d38d48e49351d054dda91ce3..bc42ae42dacd77a3a8392a8d1384b594a7fa87a4 100644 (file)
@@ -1802,7 +1802,7 @@ record_btrace_set_replay (struct thread_info *tp,
 /* The to_goto_record_begin method of target record-btrace.  */
 
 static void
-record_btrace_goto_begin (void)
+record_btrace_goto_begin (struct target_ops *self)
 {
   struct thread_info *tp;
   struct btrace_insn_iterator begin;
index d7972db33edce6466163dc8740f696a851c35383..1be84e0c3ceeafb57a2e72f2b8ab2feda95cf8bc 100644 (file)
@@ -1860,7 +1860,7 @@ record_full_goto_entry (struct record_full_entry *p)
 /* The "to_goto_record_begin" target method.  */
 
 static void
-record_full_goto_begin (void)
+record_full_goto_begin (struct target_ops *self)
 {
   struct record_full_entry *p = NULL;
 
index 5c7bb4a282ebca12c03460b7c48090a32b69cf11..ef02b8e4fe22804e330bb089a71838fadf74ff42 100644 (file)
@@ -4362,7 +4362,7 @@ target_goto_record_begin (void)
   for (t = current_target.beneath; t != NULL; t = t->beneath)
     if (t->to_goto_record_begin != NULL)
       {
-       t->to_goto_record_begin ();
+       t->to_goto_record_begin (t);
        return;
       }
 
index d37db4a8f6f19c4a46bc8fb3e160b212b3313c0d..b49486808e815519d414b82954822650714ffea8 100644 (file)
@@ -942,7 +942,7 @@ struct target_ops
     int (*to_record_is_replaying) (struct target_ops *);
 
     /* Go to the begin of the execution trace.  */
-    void (*to_goto_record_begin) (void);
+    void (*to_goto_record_begin) (struct target_ops *);
 
     /* Go to the end of the execution trace.  */
     void (*to_goto_record_end) (void);
This page took 0.031723 seconds and 4 git commands to generate.