This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
RFA: Fix off-by-one error in aix-threads.c
- From: Jim Blandy <jimb at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: 03 May 2004 15:58:03 -0500
- Subject: RFA: Fix off-by-one error in aix-threads.c
Maybe obvious?
2004-05-03 Jim Blandy <jimb@redhat.com>
* aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
with FPLAST_REGNUM.
2004-05-03 Jim Blandy <jimb@redhat.com>
* aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
with FPLAST_REGNUM.
Index: gdb/aix-thread.c
===================================================================
RCS file: /cvs/src/src/gdb/aix-thread.c,v
retrieving revision 1.16
diff -c -r1.16 aix-thread.c
*** gdb/aix-thread.c 21 Apr 2004 23:52:19 -0000 1.16
--- gdb/aix-thread.c 3 May 2004 21:01:16 -0000
***************
*** 1262,1268 ****
{
int regno;
! for (regno = FP0_REGNUM; regno < FPLAST_REGNUM; regno++)
if (register_cached (regno))
regcache_collect (regno, vals + regno);
}
--- 1262,1268 ----
{
int regno;
! for (regno = FP0_REGNUM; regno <= FPLAST_REGNUM; regno++)
if (register_cached (regno))
regcache_collect (regno, vals + regno);
}