From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26068 invoked by alias); 24 Mar 2004 16:17:51 -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 25860 invoked from network); 24 Mar 2004 16:17:49 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 24 Mar 2004 16:17:49 -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 i2OGHmWA028495 for ; Wed, 24 Mar 2004 11:17:48 -0500 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 i2OGHlj12450; Wed, 24 Mar 2004 11:17:48 -0500 To: gdb-patches@sources.redhat.com Subject: RFA: put fpscr in right place in core file From: Jim Blandy Date: Wed, 24 Mar 2004 16:17:00 -0000 Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2004-03/txt/msg00563.txt.bz2 This fixes a failure in gcore.exp. 2004-02-29 Jim Blandy * ppc-linux-nat.c (fill_fpregset): Place the 32-bit value of the fpscr in the right end of the 64-bit slot for it in the fpregset array. Index: gdb/ppc-linux-nat.c =================================================================== RCS file: /cvs/cvsfiles/devo/gdb/ppc-linux-nat.c,v retrieving revision 2.19.6.4 diff -c -r2.19.6.4 ppc-linux-nat.c *** gdb/ppc-linux-nat.c 29 Feb 2004 07:51:24 -0000 2.19.6.4 --- gdb/ppc-linux-nat.c 1 Mar 2004 04:51:15 -0000 *************** *** 1032,1038 **** regcache_collect (FP0_REGNUM + regi, (char *) (*fpregsetp + regi)); } if ((regno == -1) || regno == tdep->ppc_fpscr_regnum) ! regcache_collect (tdep->ppc_fpscr_regnum, (char *) (*fpregsetp + regi)); } --- 1032,1044 ---- regcache_collect (FP0_REGNUM + regi, (char *) (*fpregsetp + regi)); } if ((regno == -1) || regno == tdep->ppc_fpscr_regnum) ! { ! /* The FPSCR is stored in the low order word of the last ! doubleword in the fpregset. */ ! int offset = (TARGET_BYTE_ORDER == BFD_ENDIAN_BIG) ? 4 : 0; ! regcache_collect (tdep->ppc_fpscr_regnum, ! (char *) (*fpregsetp + regi) + offset); ! } }