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.
This commit is contained in:
parent
46ee7e8d84
commit
ad5989bd21
4 changed files with 27 additions and 13 deletions
15
gdb/target.c
15
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue