diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-17 21:46:50 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-19 07:46:48 -0700 |
commit | 1390f5296ff85f0d84d7acc36d80ea3b83b555c0 (patch) | |
tree | 7d94fc8907fd7c5a839ada91b124d8b1a4959c2d | |
parent | 630d6a4ad3e46c9fb6f6976030d8edb3ded6cf1c (diff) | |
download | gdb-1390f5296ff85f0d84d7acc36d80ea3b83b555c0.zip gdb-1390f5296ff85f0d84d7acc36d80ea3b83b555c0.tar.gz gdb-1390f5296ff85f0d84d7acc36d80ea3b83b555c0.tar.bz2 |
Add target_ops argument to to_save_record
2014-02-19 Tom Tromey <tromey@redhat.com>
* target.h (struct target_ops) <to_save_record>: Add argument.
* target.c (target_save_record): Add argument.
* record-full.c (record_full_save): Add 'self' argument.
(record_full_save): Add 'self' argument.
-rw-r--r-- | gdb/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/record-full.c | 5 | ||||
-rw-r--r-- | gdb/target.c | 2 | ||||
-rw-r--r-- | gdb/target.h | 2 |
4 files changed, 12 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1bc4d8c..18e4081 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,12 @@ 2014-02-19 Tom Tromey <tromey@redhat.com> + * target.h (struct target_ops) <to_save_record>: Add argument. + * target.c (target_save_record): Add argument. + * record-full.c (record_full_save): Add 'self' argument. + (record_full_save): Add 'self' argument. + +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. diff --git a/gdb/record-full.c b/gdb/record-full.c index 2d44e8d..535d6a9 100644 --- a/gdb/record-full.c +++ b/gdb/record-full.c @@ -230,7 +230,8 @@ static struct cmd_list_element *record_full_cmdlist; static void record_full_goto_insn (struct record_full_entry *entry, enum exec_direction_kind dir); -static void record_full_save (const char *recfilename); +static void record_full_save (struct target_ops *self, + const char *recfilename); /* Alloc and free functions for record_full_reg, record_full_mem, and record_full_end entries. */ @@ -2487,7 +2488,7 @@ record_full_save_cleanups (void *data) format, with an extra section for our data. */ static void -record_full_save (const char *recfilename) +record_full_save (struct target_ops *self, const char *recfilename) { struct record_full_entry *cur_record_full_list; uint32_t magic; diff --git a/gdb/target.c b/gdb/target.c index 0800ca5..9f4945c 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -4300,7 +4300,7 @@ target_save_record (const char *filename) for (t = current_target.beneath; t != NULL; t = t->beneath) if (t->to_save_record != NULL) { - t->to_save_record (filename); + t->to_save_record (t, filename); return; } diff --git a/gdb/target.h b/gdb/target.h index 016f63d..9fecbed 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -933,7 +933,7 @@ struct target_ops void (*to_info_record) (struct target_ops *); /* Save the recorded execution trace into a file. */ - void (*to_save_record) (const char *filename); + void (*to_save_record) (struct target_ops *, const char *filename); /* Delete the recorded execution trace from the current position onwards. */ void (*to_delete_record) (void); |