From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12479 invoked by alias); 1 Oct 2002 05:30:17 -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 12470 invoked from network); 1 Oct 2002 05:30:14 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 1 Oct 2002 05:30:14 -0000 Received: from int-mx2.corp.redhat.com (nat-pool-rdu-dmz.redhat.com [172.16.52.200]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id g915BZi31394 for ; Tue, 1 Oct 2002 01:11:35 -0400 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx2.corp.redhat.com (8.11.6/8.11.6) with ESMTP id g915UCl28302 for ; Tue, 1 Oct 2002 01:30:12 -0400 Received: from localhost.redhat.com (romulus-int.sfbay.redhat.com [172.16.27.251]) by potter.sfbay.redhat.com (8.11.6/8.11.6) with ESMTP id g915UBw09967 for ; Mon, 30 Sep 2002 22:30:12 -0700 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id BE3103DD5 for ; Tue, 1 Oct 2002 01:30:00 -0400 (EDT) Message-ID: <3D9932D8.8030007@redhat.com> Date: Mon, 30 Sep 2002 22:30:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.0) Gecko/20020824 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gdb-patches@sources.redhat.com Subject: [rfa:ppc+5.3] Fix "vrsave" regnum Content-Type: multipart/mixed; boundary="------------040906010003020704090407" X-SW-Source: 2002-09/txt/msg00799.txt.bz2 This is a multi-part message in MIME format. --------------040906010003020704090407 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-length: 229 Hello, The attached fixes the number of the vrsave register (for the powerpc:7400 variant). Without the patch, ``info vector'' gets an internal error - 153 >= NUM_REGS+NUM_PSEUDO_REGS==153. Ok? HEAD and 5.3 branch? Andrew --------------040906010003020704090407 Content-Type: text/plain; name="diffs" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="diffs" Content-length: 648 2002-10-01 Andrew Cagney * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix "vrsave"'s register number. Index: rs6000-tdep.c =================================================================== RCS file: /cvs/src/src/gdb/rs6000-tdep.c,v retrieving revision 1.85 diff -u -r1.85 rs6000-tdep.c --- rs6000-tdep.c 26 Sep 2002 22:34:07 -0000 1.85 +++ rs6000-tdep.c 1 Oct 2002 05:26:27 -0000 @@ -2793,7 +2793,7 @@ break; case bfd_mach_ppc_7400: tdep->ppc_vr0_regnum = 119; - tdep->ppc_vrsave_regnum = 153; + tdep->ppc_vrsave_regnum = 152; tdep->ppc_ev0_regnum = -1; tdep->ppc_ev31_regnum = -1; break; --------------040906010003020704090407--