* 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.
This commit is contained in:
parent
f667014e3f
commit
4463ce244d
6 changed files with 13 additions and 8 deletions
|
@ -1,3 +1,12 @@
|
|||
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>
|
||||
|
||||
|
|
|
@ -2054,7 +2054,7 @@ error_exit:;
|
|||
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
|
||||
|
|
|
@ -110,7 +110,7 @@ ps_lgetregs (gdb_ps_prochandle_t ph, lwpid_t lwpid, prgregset_t gregset)
|
|||
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;
|
||||
|
|
|
@ -53,7 +53,7 @@ get_regcache (struct thread_info *inf, int fetch)
|
|||
/* FIXME - fetch registers for INF */
|
||||
if (fetch && regcache->registers_valid == 0)
|
||||
{
|
||||
fetch_inferior_registers (0);
|
||||
fetch_inferior_registers (-1);
|
||||
regcache->registers_valid = 1;
|
||||
}
|
||||
|
||||
|
|
|
@ -471,10 +471,6 @@ spu_fetch_registers (int regno)
|
|||
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;
|
||||
|
|
|
@ -331,7 +331,7 @@ child_fetch_inferior_registers (int r)
|
|||
{
|
||||
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++)
|
||||
|
|
Loading…
Add table
Reference in a new issue