if (regno == -1)
{
+ if (the_low_target.fetch_register != NULL)
+ for (regno = 0; regno < the_low_target.num_regs; regno++)
+ (*the_low_target.fetch_register) (regcache, regno);
+
all = regsets_fetch_inferior_registers (regcache);
- usr_fetch_inferior_registers (regcache, regno, all);
+ usr_fetch_inferior_registers (regcache, -1, all);
}
else
{
+ if (the_low_target.fetch_register != NULL
+ && (*the_low_target.fetch_register) (regcache, regno))
+ return;
+
use_regsets = linux_register_in_regsets (regno);
if (use_regsets)
all = regsets_fetch_inferior_registers (regcache);