aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-12-17 21:47:02 -0700
committerTom Tromey <tromey@redhat.com>2014-02-19 07:46:49 -0700
commitd1b55219eb0c67cb9fa2d1079e52dd289b07342f (patch)
treee25fa94dafe0ab400aac78982100e3e7295a596c
parent1390f5296ff85f0d84d7acc36d80ea3b83b555c0 (diff)
downloadgdb-d1b55219eb0c67cb9fa2d1079e52dd289b07342f.zip
gdb-d1b55219eb0c67cb9fa2d1079e52dd289b07342f.tar.gz
gdb-d1b55219eb0c67cb9fa2d1079e52dd289b07342f.tar.bz2
Add target_ops argument to to_delete_record
2014-02-19 Tom Tromey <tromey@redhat.com> * target.h (struct target_ops) <to_delete_record>: Add argument. * target.c (target_delete_record): Add argument. * record-full.c (record_full_delete): Add 'self' argument.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/record-full.c2
-rw-r--r--gdb/target.c2
-rw-r--r--gdb/target.h2
4 files changed, 9 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 18e4081..30e4bbf 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
2014-02-19 Tom Tromey <tromey@redhat.com>
+ * target.h (struct target_ops) <to_delete_record>: Add argument.
+ * target.c (target_delete_record): Add argument.
+ * record-full.c (record_full_delete): Add 'self' argument.
+
+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.
diff --git a/gdb/record-full.c b/gdb/record-full.c
index 535d6a9..6729607 100644
--- a/gdb/record-full.c
+++ b/gdb/record-full.c
@@ -1817,7 +1817,7 @@ record_full_info (struct target_ops *self)
/* The "to_record_delete" target method. */
static void
-record_full_delete (void)
+record_full_delete (struct target_ops *self)
{
record_full_list_release_following (record_full_list);
}
diff --git a/gdb/target.c b/gdb/target.c
index 9f4945c..9773f57 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -4331,7 +4331,7 @@ target_delete_record (void)
for (t = current_target.beneath; t != NULL; t = t->beneath)
if (t->to_delete_record != NULL)
{
- t->to_delete_record ();
+ t->to_delete_record (t);
return;
}
diff --git a/gdb/target.h b/gdb/target.h
index 9fecbed..004c25f 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -936,7 +936,7 @@ struct target_ops
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);
+ void (*to_delete_record) (struct target_ops *);
/* Query if the record target is currently replaying. */
int (*to_record_is_replaying) (void);