* aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
authorJim Blandy <jimb@codesourcery.com>
Tue, 4 May 2004 17:40:40 +0000 (17:40 +0000)
committerJim Blandy <jimb@codesourcery.com>
Tue, 4 May 2004 17:40:40 +0000 (17:40 +0000)
with FPLAST_REGNUM.

gdb/ChangeLog
gdb/aix-thread.c

index 53dd8046df2169be46b878ad31f9d50fad3c609c..8b09fceee7cb2909c8b2078ffab13870a9ab7c0c 100644 (file)
@@ -1,3 +1,8 @@
+2004-05-04  Jim Blandy  <jimb@redhat.com>
+
+       * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
+       with FPLAST_REGNUM.
+
 2004-05-03  Joel Brobecker  <brobecker@gnat.com>
 
        * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
index 1c2063ea527c838f8a7d44a51aed000ca94ea68f..0ce285a6986d52bb9c16068fefb9abd055dc04ae 100644 (file)
@@ -1262,7 +1262,7 @@ fill_fprs (double *vals)
 {
   int regno;
 
-  for (regno = FP0_REGNUM; regno < FPLAST_REGNUM; regno++)
+  for (regno = FP0_REGNUM; regno <= FPLAST_REGNUM; regno++)
     if (register_cached (regno))
       regcache_collect (regno, vals + regno);
 }