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.
This commit is contained in:
Tom Tromey
2013-12-17 21:47:02 -07:00
parent 1390f5296f
commit d1b55219eb
4 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,9 @@
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> 2014-02-19 Tom Tromey <tromey@redhat.com>
* target.h (struct target_ops) <to_save_record>: Add argument. * target.h (struct target_ops) <to_save_record>: Add argument.

View File

@ -1817,7 +1817,7 @@ record_full_info (struct target_ops *self)
/* The "to_record_delete" target method. */ /* The "to_record_delete" target method. */
static void static void
record_full_delete (void) record_full_delete (struct target_ops *self)
{ {
record_full_list_release_following (record_full_list); record_full_list_release_following (record_full_list);
} }

View File

@ -4331,7 +4331,7 @@ target_delete_record (void)
for (t = current_target.beneath; t != NULL; t = t->beneath) for (t = current_target.beneath; t != NULL; t = t->beneath)
if (t->to_delete_record != NULL) if (t->to_delete_record != NULL)
{ {
t->to_delete_record (); t->to_delete_record (t);
return; return;
} }

View File

@ -936,7 +936,7 @@ struct target_ops
void (*to_save_record) (struct target_ops *, const char *filename); void (*to_save_record) (struct target_ops *, const char *filename);
/* Delete the recorded execution trace from the current position onwards. */ /* 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. */ /* Query if the record target is currently replaying. */
int (*to_record_is_replaying) (void); int (*to_record_is_replaying) (void);