From ad5989bd21c9941358ea33a79e6fad47a93c2b47 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 18 Dec 2013 14:30:22 -0700 Subject: convert to_fetch_registers 2014-02-19 Tom Tromey * target-delegates.c: Rebuild. * target.c (target_fetch_registers): 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 0432dfd..f656db3 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -3758,18 +3758,9 @@ debug_print_register (const char * func, void target_fetch_registers (struct regcache *regcache, int regno) { - struct target_ops *t; - - for (t = current_target.beneath; t != NULL; t = t->beneath) - { - if (t->to_fetch_registers != NULL) - { - t->to_fetch_registers (t, regcache, regno); - if (targetdebug) - debug_print_register ("target_fetch_registers", regcache, regno); - return; - } - } + current_target.to_fetch_registers (¤t_target, regcache, regno); + if (targetdebug) + debug_print_register ("target_fetch_registers", regcache, regno); } void -- cgit v1.1