* rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
authorJim Blandy <jimb@codesourcery.com>
Mon, 10 May 2004 16:52:39 +0000 (16:52 +0000)
committerJim Blandy <jimb@codesourcery.com>
Mon, 10 May 2004 16:52:39 +0000 (16:52 +0000)
loop collecting gprs.

gdb/ChangeLog
gdb/rs6000-tdep.c

index 44005fa789233a97852f3c86e8235b21b2e50d03..b72f6304f932669d753b9dfc7344e274a3acf55c 100644 (file)
@@ -1,3 +1,8 @@
+2004-05-10  Jim Blandy  <jimb@redhat.com>
+
+       * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
+       loop collecting gprs.
+
 2004-05-09  Andrew Cagney  <cagney@redhat.com>
 
        * remote-vx.c (net_step): Delete step-range code.
index 26633248c1e5ef5db3e5be348be6b75b71a8cb07..68e90a3c66baef1d61faa1df1b068cb2baf2c76b 100644 (file)
@@ -257,7 +257,7 @@ ppc_collect_gregset (const struct regset *regset,
   int i;
 
   offset = offsets->r0_offset;
-  for (i = 0; i <= 32; i++, offset += 4)
+  for (i = 0; i < 32; i++, offset += 4)
     {
       if (regnum == -1 || regnum == i)
        ppc_collect_reg (regcache, regnum, gregs, offset);