* proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
* regcache.c (get_regcache): Likewise.
* spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
* win32-low.c (child_fetch_inferior_registers): Remove check for
regno 0.
+2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
+
+ * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
+ * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
+ * regcache.c (get_regcache): Likewise.
+ * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
+ * win32-low.c (child_fetch_inferior_registers): Remove check for
+ regno 0.
+
2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
Pedro Alves <pedro@codesourcery.com>
static void
usr_fetch_inferior_registers (int regno)
{
- if (regno == -1 || regno == 0)
+ if (regno == -1)
for (regno = 0; regno < the_low_target.num_regs; regno++)
fetch_register (regno);
else
save_inferior = current_inferior;
current_inferior = reg_inferior;
- the_target->fetch_registers (0);
+ the_target->fetch_registers (-1);
gregset_info()->fill_function (gregset);
current_inferior = save_inferior;
/* FIXME - fetch registers for INF */
if (fetch && regcache->registers_valid == 0)
{
- fetch_inferior_registers (0);
+ fetch_inferior_registers (-1);
regcache->registers_valid = 1;
}
int fd;
CORE_ADDR addr;
- /* ??? Some callers use 0 to mean all registers. */
- if (regno == 0)
- regno = -1;
-
/* We must be stopped on a spu_run system call. */
if (!parse_spufs_run (&fd, &addr))
return;
{
int regno;
win32_thread_info *th = thread_rec (current_inferior_ptid (), TRUE);
- if (r == -1 || r == 0 || r > NUM_REGS)
+ if (r == -1 || r > NUM_REGS)
child_fetch_inferior_registers (NUM_REGS);
else
for (regno = 0; regno < r; regno++)