* 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:
Aleksandar Ristovski
2009-06-22 19:33:41 +00:00
parent f667014e3f
commit 4463ce244d
6 changed files with 13 additions and 8 deletions

View File

@@ -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++)