From: Tom Tromey Date: Wed, 18 Dec 2013 04:47:02 +0000 (-0700) Subject: Add target_ops argument to to_delete_record X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d1b55219eb0c67cb9fa2d1079e52dd289b07342f;p=binutils-gdb.git Add target_ops argument to to_delete_record 2014-02-19 Tom Tromey * target.h (struct target_ops) : Add argument. * target.c (target_delete_record): Add argument. * record-full.c (record_full_delete): Add 'self' argument. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 18e40812bc3..30e4bbf1876 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2014-02-19 Tom Tromey + + * target.h (struct target_ops) : Add argument. + * target.c (target_delete_record): Add argument. + * record-full.c (record_full_delete): Add 'self' argument. + 2014-02-19 Tom Tromey * target.h (struct target_ops) : Add argument. diff --git a/gdb/record-full.c b/gdb/record-full.c index 535d6a9ce23..67296070b5f 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 9f4945cb035..9773f578740 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 9fecbedf8a5..004c25fa563 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);