From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11510 invoked by alias); 4 May 2004 13:52:19 -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 11494 invoked from network); 4 May 2004 13:52:18 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 4 May 2004 13:52:18 -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 i44DqIkI031469 for ; Tue, 4 May 2004 09:52:18 -0400 Received: from localhost.redhat.com (to-dhcp51.toronto.redhat.com [172.16.14.151]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i44DqHv08772; Tue, 4 May 2004 09:52:17 -0400 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id C461E2B9D; Tue, 4 May 2004 09:52:18 -0400 (EDT) Message-ID: <4097A012.2050409@gnu.org> Date: Tue, 04 May 2004 13:52:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-GB; rv:1.4.1) Gecko/20040217 MIME-Version: 1.0 To: Jim Blandy Cc: gdb-patches@sources.redhat.com Subject: Re: RFA: let gdbarch define FP0_REGNUM on rs6000 References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-05/txt/msg00092.txt.bz2 > 2004-05-03 Jim Blandy > > * config/rs6000/tm-rs6000.h (FP0_REGNUM): Delete. Let gdbarch.h > define this. > * rs6000-tdep.c (rs6000_gdbarch_init): Set gdbarch_fp0_regnum. > > diff -cr src.no-gplast-fplast/gdb/config/rs6000/tm-rs6000.h src/gdb/config/rs6000/tm-rs6000.h > *** gdb/config/rs6000/tm-rs6000.h 2004-05-03 17:32:42.000000000 -0500 > --- gdb/config/rs6000/tm-rs6000.h 2004-05-03 17:39:34.000000000 -0500 > *************** > *** 64,78 **** > #define PROCESS_LINENUMBER_HOOK() aix_process_linenos () > extern void aix_process_linenos (void); > > - /* Register numbers of various important registers. > - Note that some of these values are "real" register numbers, > - and correspond to the general registers of the machine, > - and some are "phony" register numbers which are too large > - to be actual register numbers as far as the user is concerned > - but do serve to get the desired values when passed to read_register. */ > - > - #define FP0_REGNUM 32 /* Floating point register 0 */ Note that FP0_REGNUM is on the deprecate hit list, it's superseeded by things like reggroups and regsets. As with other code, you should s/FP0_REGNUM/RS6000_FP0_REGNUM/ where possible. Andrew