From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8932 invoked by alias); 3 May 2004 23:55: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 8919 invoked from network); 3 May 2004 23:55:50 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 3 May 2004 23:55:50 -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 i43NtnkG012198 for ; Mon, 3 May 2004 19:55:49 -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 i43Ntlv08430; Mon, 3 May 2004 19:55:48 -0400 To: gdb-patches@sources.redhat.com Subject: RFA: let gdbarch define FP0_REGNUM on rs6000 From: Jim Blandy Date: Mon, 03 May 2004 23:55: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-05/txt/msg00082.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 */ - /* Notice when a new child process is started. */ #define TARGET_CREATE_INFERIOR_HOOK rs6000_create_inferior --- 64,69 ---- diff -cr src.no-gplast-fplast/gdb/rs6000-tdep.c src/gdb/rs6000-tdep.c *** gdb/rs6000-tdep.c 2004-05-03 17:32:35.000000000 -0500 --- gdb/rs6000-tdep.c 2004-05-03 17:40:46.000000000 -0500 *************** *** 2718,2723 **** --- 2718,2724 ---- set_gdbarch_pc_regnum (gdbarch, 64); set_gdbarch_sp_regnum (gdbarch, 1); set_gdbarch_deprecated_fp_regnum (gdbarch, 1); + set_gdbarch_fp0_regnum (gdbarch, 32); if (sysv_abi && wordsize == 8) set_gdbarch_return_value (gdbarch, ppc64_sysv_abi_return_value); else if (sysv_abi && wordsize == 4)