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

* target.h (struct target_ops) <to_stop_recording>: Add argument.
* target.c (target_stop_recording): Add argument.
* record.c (record_stop): Add argument.
* record-btrace.c (record_btrace_stop_recording): Add 'self'
argument.

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

index 3480224dbe7105f18aec0b56f493b1b45f813582..70f556cb0dfc0a4f87b34098e450c09f06bb974a 100644 (file)
@@ -1,3 +1,11 @@
+2014-02-19  Tom Tromey  <tromey@redhat.com>
+
+       * target.h (struct target_ops) <to_stop_recording>: Add argument.
+       * target.c (target_stop_recording): Add argument.
+       * record.c (record_stop): Add argument.
+       * record-btrace.c (record_btrace_stop_recording): Add 'self'
+       argument.
+
 2014-02-19  Tom Tromey  <tromey@redhat.com>
 
        * target.h (struct target_ops) <to_read_btrace>: Add argument.
index 4e808e47151e0a240fbb3ff47c4c7ded37d94bfa..b34b737e30d20304018c99f07a8f12ed887da5ed 100644 (file)
@@ -195,7 +195,7 @@ record_btrace_open (char *args, int from_tty)
 /* The to_stop_recording method of target record-btrace.  */
 
 static void
-record_btrace_stop_recording (void)
+record_btrace_stop_recording (struct target_ops *self)
 {
   struct thread_info *tp;
 
index 41e167fc2ae16bc64efa156de22a4a2fce467441..d8e1098fd72a173d903d0c04692876e4e737f6f3 100644 (file)
@@ -115,7 +115,7 @@ record_stop (struct target_ops *t)
   DEBUG ("stop %s", t->to_shortname);
 
   if (t->to_stop_recording != NULL)
-    t->to_stop_recording ();
+    t->to_stop_recording (t);
 }
 
 /* Unpush the record target.  */
index 7d3d587ca2095464abc8c16c7a42de5905ff2a09..e8c37f4201102ea447e40b50524eac318e7d779e 100644 (file)
@@ -4266,7 +4266,7 @@ target_stop_recording (void)
   for (t = current_target.beneath; t != NULL; t = t->beneath)
     if (t->to_stop_recording != NULL)
       {
-       t->to_stop_recording ();
+       t->to_stop_recording (t);
        return;
       }
 
index b9ff0351deacb13a2dce6312571dea19b4ddb84e..7335dd9f2600f34af02ed57e4eeadea3968f0909 100644 (file)
@@ -927,7 +927,7 @@ struct target_ops
                                         enum btrace_read_type type);
 
     /* Stop trace recording.  */
-    void (*to_stop_recording) (void);
+    void (*to_stop_recording) (struct target_ops *);
 
     /* Print information about the recording.  */
     void (*to_info_record) (void);
This page took 0.053324 seconds and 4 git commands to generate.