From 630d6a4ad3e46c9fb6f6976030d8edb3ded6cf1c Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 17 Dec 2013 21:46:38 -0700 Subject: [PATCH] Add target_ops argument to to_info_record 2014-02-19 Tom Tromey * target.h (struct target_ops) : 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 | 8 ++++++++ gdb/record-btrace.c | 2 +- gdb/record-full.c | 2 +- gdb/record.c | 2 +- gdb/target.c | 2 +- gdb/target.h | 2 +- 6 files changed, 13 insertions(+), 5 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 70f556cb0d..1bc4d8cd8d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,11 @@ +2014-02-19 Tom Tromey + + * target.h (struct target_ops) : 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 * target.h (struct target_ops) : Add argument. diff --git a/gdb/record-btrace.c b/gdb/record-btrace.c index b34b737e30..fe827848a7 100644 --- a/gdb/record-btrace.c +++ b/gdb/record-btrace.c @@ -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; diff --git a/gdb/record-full.c b/gdb/record-full.c index 5583a7aee8..2d44e8dcc2 100644 --- a/gdb/record-full.c +++ b/gdb/record-full.c @@ -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; diff --git a/gdb/record.c b/gdb/record.c index d8e1098fd7..9dd02e8eae 100644 --- a/gdb/record.c +++ b/gdb/record.c @@ -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. */ diff --git a/gdb/target.c b/gdb/target.c index e8c37f4201..0800ca5f61 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -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; } diff --git a/gdb/target.h b/gdb/target.h index 7335dd9f26..016f63df7a 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -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); -- 2.34.1