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

* target.h (struct target_ops) <to_info_record>: Add argument.
* target.c (target_info_record): Add argument.
* record.c (info_record_command): Add argument.
* record-full.c (record_full_info): Add 'self' argument.
* record-btrace.c (record_btrace_info): Add 'self' argument.

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

index 70f556cb0dfc0a4f87b34098e450c09f06bb974a..1bc4d8cd8d78645ae8cdf75cb753d48189e1d94e 100644 (file)
@@ -1,3 +1,11 @@
+2014-02-19  Tom Tromey  <tromey@redhat.com>
+
+       * target.h (struct target_ops) <to_info_record>: Add argument.
+       * target.c (target_info_record): Add argument.
+       * record.c (info_record_command): Add argument.
+       * record-full.c (record_full_info): Add 'self' argument.
+       * record-btrace.c (record_btrace_info): Add 'self' argument.
+
 2014-02-19  Tom Tromey  <tromey@redhat.com>
 
        * target.h (struct target_ops) <to_stop_recording>: Add argument.
index b34b737e30d20304018c99f07a8f12ed887da5ed..fe827848a786d8fc412d2d14538eb20797e78a3d 100644 (file)
@@ -228,7 +228,7 @@ record_btrace_close (struct target_ops *self)
 /* The to_info_record method of target record-btrace.  */
 
 static void
-record_btrace_info (void)
+record_btrace_info (struct target_ops *self)
 {
   struct btrace_thread_info *btinfo;
   struct thread_info *tp;
index 5583a7aee80a69f06aa65eae070e5cf55775de22..2d44e8dcc27399913617132c7da5835622b30758 100644 (file)
@@ -1770,7 +1770,7 @@ record_full_execution_direction (struct target_ops *self)
 }
 
 static void
-record_full_info (void)
+record_full_info (struct target_ops *self)
 {
   struct record_full_entry *p;
 
index d8e1098fd72a173d903d0c04692876e4e737f6f3..9dd02e8eae2989809438efbaa6386d7617d0eee0 100644 (file)
@@ -287,7 +287,7 @@ info_record_command (char *args, int from_tty)
 
   printf_filtered (_("Active record target: %s\n"), t->to_shortname);
   if (t->to_info_record != NULL)
-    t->to_info_record ();
+    t->to_info_record (t);
 }
 
 /* The "record save" command.  */
index e8c37f4201102ea447e40b50524eac318e7d779e..0800ca5f611c7f65bb466f49cf8779fd6b9c46a7 100644 (file)
@@ -4283,7 +4283,7 @@ target_info_record (void)
   for (t = current_target.beneath; t != NULL; t = t->beneath)
     if (t->to_info_record != NULL)
       {
-       t->to_info_record ();
+       t->to_info_record (t);
        return;
       }
 
index 7335dd9f2600f34af02ed57e4eeadea3968f0909..016f63df7a48fca4acddbb9daef997e62be98ef4 100644 (file)
@@ -930,7 +930,7 @@ struct target_ops
     void (*to_stop_recording) (struct target_ops *);
 
     /* Print information about the recording.  */
-    void (*to_info_record) (void);
+    void (*to_info_record) (struct target_ops *);
 
     /* Save the recorded execution trace into a file.  */
     void (*to_save_record) (const char *filename);
This page took 0.034687 seconds and 4 git commands to generate.