From d1b55219eb0c67cb9fa2d1079e52dd289b07342f Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 17 Dec 2013 21:47:02 -0700 Subject: [PATCH] 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. --- gdb/ChangeLog | 6 ++++++ gdb/record-full.c | 2 +- gdb/target.c | 2 +- gdb/target.h | 2 +- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 18e40812bc..30e4bbf187 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 535d6a9ce2..67296070b5 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 9f4945cb03..9773f57874 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 9fecbedf8a..004c25fa56 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); -- 2.34.1