diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-18 14:52:02 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-19 07:48:17 -0700 |
commit | f6fb29258bb410c212c7bcbc48fb1f715bfd3839 (patch) | |
tree | 29f6cbcf6f96ad1f808d22a7234e107025d99b67 /gdb/target.c | |
parent | e8a6c6ace9d2cc7fa94f8adb81aba5181f77442c (diff) | |
download | gdb-f6fb29258bb410c212c7bcbc48fb1f715bfd3839.zip gdb-f6fb29258bb410c212c7bcbc48fb1f715bfd3839.tar.gz gdb-f6fb29258bb410c212c7bcbc48fb1f715bfd3839.tar.bz2 |
convert to_flash_done
2014-02-19 Tom Tromey <tromey@redhat.com>
* target-delegates.c: Rebuild.
* target.c (target_flash_done): Unconditionally delegate.
* target.h (struct target_ops) <to_flash_done>: Use
TARGET_DEFAULT_NORETURN.
Diffstat (limited to 'gdb/target.c')
-rw-r--r-- | gdb/target.c | 15 |
1 files changed, 3 insertions, 12 deletions
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 |