* linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
authorAleksandar Ristovski <aristovski@qnx.com>
Mon, 22 Jun 2009 19:33:41 +0000 (19:33 +0000)
committerAleksandar Ristovski <aristovski@qnx.com>
Mon, 22 Jun 2009 19:33:41 +0000 (19:33 +0000)
* 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.

gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-low.c
gdb/gdbserver/proc-service.c
gdb/gdbserver/regcache.c
gdb/gdbserver/spu-low.c
gdb/gdbserver/win32-low.c

index b973d55a679ca3665474006bb7d035eb1bedcf86..f2d55c45daf346274da2e9b1d65f2ab9b88aae92 100644 (file)
@@ -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>
 
index 21bf523a9e0714b17cb7b2239b53b6f8dd5ffc51..7ff112e5c77260d4de235fa35d9cb58d0ba032f4 100644 (file)
@@ -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
index 7999f4ad96a105ebaa8d3dc80b33e043e79b9842..76eb424888e76a26f2681f4e70aeeb7602d81e86 100644 (file)
@@ -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;
index 9b9330740cbf0df0c1cbbcb77528bbff2202285c..c61a6052420e0c93f42f9f64696b8c9e1a435dfb 100644 (file)
@@ -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;
     }
 
index 8307c4edba0ac6a08cfc9278ffc043bb3bf60935..89d80c259187f2d2e6746b3fb3c9afe9cb53a230 100644 (file)
@@ -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;
index f3943abfd90d17b545cfe161e4f4d620b2156d42..869a1cdba79f1edd36431c8b093780575396bafe 100644 (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++)