This changes to_info_record to use target delegation.
Also, target_info_record was unused, so this patch removes it.
2014-07-07 Tom Tromey <tromey@redhat.com>
* target-delegates.c: Rebuild.
* target.c (target_info_record): Remove.
* record.c (info_record_command): Unconditionally call
to_info_record.
* target.h (struct target_ops) <to_info_record>: Use
TARGET_DEFAULT_IGNORE.
(target_info_record): Remove.
2014-07-07 Tom Tromey <tromey@redhat.com>
+ * target-delegates.c: Rebuild.
+ * target.c (target_info_record): Remove.
+ * record.c (info_record_command): Unconditionally call
+ to_info_record.
+ * target.h (struct target_ops) <to_info_record>: Use
+ TARGET_DEFAULT_IGNORE.
+ (target_info_record): Remove.
+
+2014-07-07 Tom Tromey <tromey@redhat.com>
+
* target.h (struct target_ops) <to_get_thread_local_address>: Use
TARGET_DEFAULT_NORETURN.
* target.c (generic_tls_error): New function.
}
printf_filtered (_("Active record target: %s\n"), t->to_shortname);
- if (t->to_info_record != NULL)
- t->to_info_record (t);
+ t->to_info_record (t);
}
/* The "record save" command. */
/* See target.h. */
void
-target_info_record (void)
-{
- struct target_ops *t;
-
- for (t = current_target.beneath; t != NULL; t = t->beneath)
- if (t->to_info_record != NULL)
- {
- t->to_info_record (t);
- return;
- }
-
- tcomplain ();
-}
-
-/* See target.h. */
-
-void
target_save_record (const char *filename)
{
current_target.to_save_record (¤t_target, filename);
TARGET_DEFAULT_IGNORE ();
/* Print information about the recording. */
- void (*to_info_record) (struct target_ops *);
+ void (*to_info_record) (struct target_ops *)
+ TARGET_DEFAULT_IGNORE ();
/* Save the recorded execution trace into a file. */
void (*to_save_record) (struct target_ops *, const char *filename)
/* See to_stop_recording in struct target_ops. */
extern void target_stop_recording (void);
-/* See to_info_record in struct target_ops. */
-extern void target_info_record (void);
-
/* See to_save_record in struct target_ops. */
extern void target_save_record (const char *filename);