diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-17 21:46:38 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-19 07:46:47 -0700 |
commit | 630d6a4ad3e46c9fb6f6976030d8edb3ded6cf1c (patch) | |
tree | 8ee0e3298368274db9830291992507dc7a755366 | |
parent | c6cd7c02d1b67aafe4c791e2828c58733c68c03d (diff) | |
download | gdb-630d6a4ad3e46c9fb6f6976030d8edb3ded6cf1c.zip gdb-630d6a4ad3e46c9fb6f6976030d8edb3ded6cf1c.tar.gz gdb-630d6a4ad3e46c9fb6f6976030d8edb3ded6cf1c.tar.bz2 |
Add target_ops argument to to_info_record
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.
-rw-r--r-- | gdb/ChangeLog | 8 | ||||
-rw-r--r-- | gdb/record-btrace.c | 2 | ||||
-rw-r--r-- | gdb/record-full.c | 2 | ||||
-rw-r--r-- | gdb/record.c | 2 | ||||
-rw-r--r-- | gdb/target.c | 2 | ||||
-rw-r--r-- | gdb/target.h | 2 |
6 files changed, 13 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 70f556c..1bc4d8c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,13 @@ 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. * target.c (target_stop_recording): Add argument. * record.c (record_stop): Add argument. diff --git a/gdb/record-btrace.c b/gdb/record-btrace.c index b34b737..fe82784 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 5583a7a..2d44e8d 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 d8e1098..9dd02e8 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 e8c37f4..0800ca5 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 7335dd9..016f63d 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); |