From ee97f592f2d9edf4ae720a68893af5cbaedd1be9 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Thu, 19 Dec 2013 08:21:20 -0700 Subject: convert to_stop_recording 2014-02-19 Tom Tromey * record.c (record_stop): Unconditionally delegate. * target-delegates.c: Rebuild. * target.c (target_stop_recording): Unconditionally delegate. * target.h (struct target_ops) : Use TARGET_DEFAULT_IGNORE. --- gdb/target.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'gdb/target.c') diff --git a/gdb/target.c b/gdb/target.c index 547afcc..ef7374e 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -3818,16 +3818,7 @@ target_read_btrace (VEC (btrace_block_s) **btrace, void target_stop_recording (void) { - struct target_ops *t; - - for (t = current_target.beneath; t != NULL; t = t->beneath) - if (t->to_stop_recording != NULL) - { - t->to_stop_recording (t); - return; - } - - /* This is optional. */ + current_target.to_stop_recording (¤t_target); } /* See target.h. */ -- cgit v1.1