Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* RFA: Fix off-by-one error in aix-threads.c
@ 2004-05-03 21:03 Jim Blandy
  2004-05-04 15:47 ` Kevin Buettner
  0 siblings, 1 reply; 3+ messages in thread
From: Jim Blandy @ 2004-05-03 21:03 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 148 bytes --]


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.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: fix off-by-one error in regno comparison --]
[-- Type: text/x-patch, Size: 813 bytes --]

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-05-04 17:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-03 21:03 RFA: Fix off-by-one error in aix-threads.c Jim Blandy
2004-05-04 15:47 ` Kevin Buettner
2004-05-04 17:40   ` Jim Blandy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox