diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-18 14:30:22 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-19 07:48:07 -0700 |
commit | ad5989bd21c9941358ea33a79e6fad47a93c2b47 (patch) | |
tree | 54a40079b70da14c286f8e0b1d9e28d47db597c3 /gdb/target.c | |
parent | 46ee7e8d84bb33c3c6c5dc8673ee2ca5457462b0 (diff) | |
download | binutils-ad5989bd21c9941358ea33a79e6fad47a93c2b47.zip binutils-ad5989bd21c9941358ea33a79e6fad47a93c2b47.tar.gz binutils-ad5989bd21c9941358ea33a79e6fad47a93c2b47.tar.bz2 |
convert to_fetch_registers
2014-02-19 Tom Tromey <tromey@redhat.com>
* target-delegates.c: Rebuild.
* target.c (target_fetch_registers): Unconditionally delegate.
* target.h (struct target_ops) <to_fetch_registers>: 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 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 |