From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15885 invoked by alias); 3 May 2004 21:03:24 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 15859 invoked from network); 3 May 2004 21:03:23 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 3 May 2004 21:03:23 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.10/8.12.10) with ESMTP id i43L3NkG002183 for ; Mon, 3 May 2004 17:03:23 -0400 Received: from zenia.home.redhat.com (porkchop.devel.redhat.com [172.16.58.2]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i43L3Lv21398; Mon, 3 May 2004 17:03:22 -0400 To: gdb-patches@sources.redhat.com Subject: RFA: Fix off-by-one error in aix-threads.c From: Jim Blandy Date: Mon, 03 May 2004 21:03:00 -0000 Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-SW-Source: 2004-05/txt/msg00065.txt.bz2 --=-=-= Content-length: 148 Maybe obvious? 2004-05-03 Jim Blandy * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno with FPLAST_REGNUM. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=jimb.gdb-aix-thread-FPLAST_REGNUM-oboe.patch Content-Description: fix off-by-one error in regno comparison Content-length: 813 2004-05-03 Jim Blandy * 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); } --=-=-=--