This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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);
  }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]