From f6fb29258bb410c212c7bcbc48fb1f715bfd3839 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 18 Dec 2013 14:52:02 -0700 Subject: convert to_flash_done 2014-02-19 Tom Tromey * target-delegates.c: Rebuild. * target.c (target_flash_done): Unconditionally delegate. * target.h (struct target_ops) : Use TARGET_DEFAULT_NORETURN. --- gdb/target.c | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'gdb/target.c') diff --git a/gdb/target.c b/gdb/target.c index b208443..d96f706 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -1766,18 +1766,9 @@ target_flash_erase (ULONGEST address, LONGEST length) void target_flash_done (void) { - struct target_ops *t; - - for (t = current_target.beneath; t != NULL; t = t->beneath) - if (t->to_flash_done != NULL) - { - if (targetdebug) - fprintf_unfiltered (gdb_stdlog, "target_flash_done\n"); - t->to_flash_done (t); - return; - } - - tcomplain (); + if (targetdebug) + fprintf_unfiltered (gdb_stdlog, "target_flash_done\n"); + current_target.to_flash_done (¤t_target); } static void -- cgit v1.1