From: Jim Blandy Date: Tue, 4 May 2004 17:40:40 +0000 (+0000) Subject: * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=edf61169009a4add7b95e1febbfc99bd10f03096;p=binutils-gdb.git * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno with FPLAST_REGNUM. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 53dd8046df2..8b09fceee7c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2004-05-04 Jim Blandy + + * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno + with FPLAST_REGNUM. + 2004-05-03 Joel Brobecker * dwarf2read.c (dwarf2_create_include_psymtab): Fix build diff --git a/gdb/aix-thread.c b/gdb/aix-thread.c index 1c2063ea527..0ce285a6986 100644 --- a/gdb/aix-thread.c +++ b/gdb/aix-thread.c @@ -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); }