From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13819 invoked by alias); 13 Mar 2004 01:17:13 -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 13808 invoked from network); 13 Mar 2004 01:17:12 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 13 Mar 2004 01:17:12 -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 i2D1HC07000877 for ; Fri, 12 Mar 2004 20:17:12 -0500 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i2D1HC807629 for ; Fri, 12 Mar 2004 20:17:12 -0500 Received: from localhost.localdomain (vpn50-70.rdu.redhat.com [172.16.50.70]) by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id i2D1HBE3007270 for ; Fri, 12 Mar 2004 20:17:12 -0500 Received: from saguaro (saguaro.lan [192.168.64.2]) by localhost.localdomain (8.12.10/8.12.10) with SMTP id i2D1H6cG030477 for ; Fri, 12 Mar 2004 18:17:06 -0700 Date: Sat, 13 Mar 2004 01:17:00 -0000 From: Kevin Buettner To: gdb-patches@sources.redhat.com Subject: [PATCH] Move FR-V regnum constants from frv-tdep.c to frv-tdep.h Message-Id: <20040312181706.1e486b18@saguaro> Organization: Red Hat Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SW-Source: 2004-03.o/txt/msg00295.txt I've just committed the patch below. The constants in question will eventually be needed by frv-linux-tdep.c (which'll be added in a later patch). * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum) (struct_return_regnum, last_gpr_regnum, first_fpr_regnum) (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum) (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum) (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum) (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum) (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum) (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum) definitions from frv-tdep.c to frv-tdep.h. Index: frv-tdep.c =================================================================== RCS file: /cvs/src/src/gdb/frv-tdep.c,v retrieving revision 1.74 diff -u -p -r1.74 frv-tdep.c --- frv-tdep.c 13 Mar 2004 00:50:52 -0000 1.74 +++ frv-tdep.c 13 Mar 2004 01:11:56 -0000 @@ -48,58 +48,6 @@ static gdbarch_breakpoint_from_pc_ftype static gdbarch_adjust_breakpoint_address_ftype frv_gdbarch_adjust_breakpoint_address; static gdbarch_skip_prologue_ftype frv_skip_prologue; -/* Register numbers. The order in which these appear define the - remote protocol, so take care in changing them. */ -enum { - /* Register numbers 0 -- 63 are always reserved for general-purpose - registers. The chip at hand may have less. */ - first_gpr_regnum = 0, - sp_regnum = 1, - fp_regnum = 2, - struct_return_regnum = 3, - last_gpr_regnum = 63, - - /* Register numbers 64 -- 127 are always reserved for floating-point - registers. The chip at hand may have less. */ - first_fpr_regnum = 64, - last_fpr_regnum = 127, - - /* The PC register. */ - pc_regnum = 128, - - /* Register numbers 129 on up are always reserved for special-purpose - registers. */ - first_spr_regnum = 129, - psr_regnum = 129, - ccr_regnum = 130, - cccr_regnum = 131, - fdpic_loadmap_exec_regnum = 132, - fdpic_loadmap_interp_regnum = 133, - tbr_regnum = 135, - brr_regnum = 136, - dbar0_regnum = 137, - dbar1_regnum = 138, - dbar2_regnum = 139, - dbar3_regnum = 140, - lr_regnum = 145, - lcr_regnum = 146, - iacc0h_regnum = 147, - iacc0l_regnum = 148, - last_spr_regnum = 148, - - /* The total number of registers we know exist. */ - frv_num_regs = last_spr_regnum + 1, - - /* Pseudo registers */ - first_pseudo_regnum = frv_num_regs, - - /* iacc0 - the 64-bit concatenation of iacc0h and iacc0l. */ - iacc0_regnum = first_pseudo_regnum + 0, - - last_pseudo_regnum = iacc0_regnum, - frv_num_pseudo_regs = last_pseudo_regnum - first_pseudo_regnum + 1, -}; - static LONGEST frv_call_dummy_words[] = {0}; Index: frv-tdep.h =================================================================== RCS file: /cvs/src/src/gdb/frv-tdep.h,v retrieving revision 1.2 diff -u -p -r1.2 frv-tdep.h --- frv-tdep.h 13 Mar 2004 00:50:52 -0000 1.2 +++ frv-tdep.h 13 Mar 2004 01:11:56 -0000 @@ -25,6 +25,58 @@ enum frv_abi FRV_ABI_FDPIC }; +/* Register numbers. The order in which these appear define the + remote protocol, so take care in changing them. */ +enum { + /* Register numbers 0 -- 63 are always reserved for general-purpose + registers. The chip at hand may have less. */ + first_gpr_regnum = 0, + sp_regnum = 1, + fp_regnum = 2, + struct_return_regnum = 3, + last_gpr_regnum = 63, + + /* Register numbers 64 -- 127 are always reserved for floating-point + registers. The chip at hand may have less. */ + first_fpr_regnum = 64, + last_fpr_regnum = 127, + + /* The PC register. */ + pc_regnum = 128, + + /* Register numbers 129 on up are always reserved for special-purpose + registers. */ + first_spr_regnum = 129, + psr_regnum = 129, + ccr_regnum = 130, + cccr_regnum = 131, + fdpic_loadmap_exec_regnum = 132, + fdpic_loadmap_interp_regnum = 133, + tbr_regnum = 135, + brr_regnum = 136, + dbar0_regnum = 137, + dbar1_regnum = 138, + dbar2_regnum = 139, + dbar3_regnum = 140, + lr_regnum = 145, + lcr_regnum = 146, + iacc0h_regnum = 147, + iacc0l_regnum = 148, + last_spr_regnum = 148, + + /* The total number of registers we know exist. */ + frv_num_regs = last_spr_regnum + 1, + + /* Pseudo registers */ + first_pseudo_regnum = frv_num_regs, + + /* iacc0 - the 64-bit concatenation of iacc0h and iacc0l. */ + iacc0_regnum = first_pseudo_regnum + 0, + + last_pseudo_regnum = iacc0_regnum, + frv_num_pseudo_regs = last_pseudo_regnum - first_pseudo_regnum + 1, +}; + /* Return the FR-V ABI associated with GDBARCH. */ enum frv_abi frv_abi (struct gdbarch *gdbarch); From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13819 invoked by alias); 13 Mar 2004 01:17:13 -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 13808 invoked from network); 13 Mar 2004 01:17:12 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 13 Mar 2004 01:17:12 -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 i2D1HC07000877 for ; Fri, 12 Mar 2004 20:17:12 -0500 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i2D1HC807629 for ; Fri, 12 Mar 2004 20:17:12 -0500 Received: from localhost.localdomain (vpn50-70.rdu.redhat.com [172.16.50.70]) by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id i2D1HBE3007270 for ; Fri, 12 Mar 2004 20:17:12 -0500 Received: from saguaro (saguaro.lan [192.168.64.2]) by localhost.localdomain (8.12.10/8.12.10) with SMTP id i2D1H6cG030477 for ; Fri, 12 Mar 2004 18:17:06 -0700 Date: Fri, 19 Mar 2004 00:09:00 -0000 From: Kevin Buettner To: gdb-patches@sources.redhat.com Subject: [PATCH] Move FR-V regnum constants from frv-tdep.c to frv-tdep.h Message-ID: <20040312181706.1e486b18@saguaro> Organization: Red Hat Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SW-Source: 2004-03/txt/msg00295.txt.bz2 Message-ID: <20040319000900.w7mPayxTxhvjQamQIVaC_a_xR3CMZ5er2ZeZEVVhcYc@z> I've just committed the patch below. The constants in question will eventually be needed by frv-linux-tdep.c (which'll be added in a later patch). * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum) (struct_return_regnum, last_gpr_regnum, first_fpr_regnum) (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum) (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum) (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum) (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum) (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum) (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum) definitions from frv-tdep.c to frv-tdep.h. Index: frv-tdep.c =================================================================== RCS file: /cvs/src/src/gdb/frv-tdep.c,v retrieving revision 1.74 diff -u -p -r1.74 frv-tdep.c --- frv-tdep.c 13 Mar 2004 00:50:52 -0000 1.74 +++ frv-tdep.c 13 Mar 2004 01:11:56 -0000 @@ -48,58 +48,6 @@ static gdbarch_breakpoint_from_pc_ftype static gdbarch_adjust_breakpoint_address_ftype frv_gdbarch_adjust_breakpoint_address; static gdbarch_skip_prologue_ftype frv_skip_prologue; -/* Register numbers. The order in which these appear define the - remote protocol, so take care in changing them. */ -enum { - /* Register numbers 0 -- 63 are always reserved for general-purpose - registers. The chip at hand may have less. */ - first_gpr_regnum = 0, - sp_regnum = 1, - fp_regnum = 2, - struct_return_regnum = 3, - last_gpr_regnum = 63, - - /* Register numbers 64 -- 127 are always reserved for floating-point - registers. The chip at hand may have less. */ - first_fpr_regnum = 64, - last_fpr_regnum = 127, - - /* The PC register. */ - pc_regnum = 128, - - /* Register numbers 129 on up are always reserved for special-purpose - registers. */ - first_spr_regnum = 129, - psr_regnum = 129, - ccr_regnum = 130, - cccr_regnum = 131, - fdpic_loadmap_exec_regnum = 132, - fdpic_loadmap_interp_regnum = 133, - tbr_regnum = 135, - brr_regnum = 136, - dbar0_regnum = 137, - dbar1_regnum = 138, - dbar2_regnum = 139, - dbar3_regnum = 140, - lr_regnum = 145, - lcr_regnum = 146, - iacc0h_regnum = 147, - iacc0l_regnum = 148, - last_spr_regnum = 148, - - /* The total number of registers we know exist. */ - frv_num_regs = last_spr_regnum + 1, - - /* Pseudo registers */ - first_pseudo_regnum = frv_num_regs, - - /* iacc0 - the 64-bit concatenation of iacc0h and iacc0l. */ - iacc0_regnum = first_pseudo_regnum + 0, - - last_pseudo_regnum = iacc0_regnum, - frv_num_pseudo_regs = last_pseudo_regnum - first_pseudo_regnum + 1, -}; - static LONGEST frv_call_dummy_words[] = {0}; Index: frv-tdep.h =================================================================== RCS file: /cvs/src/src/gdb/frv-tdep.h,v retrieving revision 1.2 diff -u -p -r1.2 frv-tdep.h --- frv-tdep.h 13 Mar 2004 00:50:52 -0000 1.2 +++ frv-tdep.h 13 Mar 2004 01:11:56 -0000 @@ -25,6 +25,58 @@ enum frv_abi FRV_ABI_FDPIC }; +/* Register numbers. The order in which these appear define the + remote protocol, so take care in changing them. */ +enum { + /* Register numbers 0 -- 63 are always reserved for general-purpose + registers. The chip at hand may have less. */ + first_gpr_regnum = 0, + sp_regnum = 1, + fp_regnum = 2, + struct_return_regnum = 3, + last_gpr_regnum = 63, + + /* Register numbers 64 -- 127 are always reserved for floating-point + registers. The chip at hand may have less. */ + first_fpr_regnum = 64, + last_fpr_regnum = 127, + + /* The PC register. */ + pc_regnum = 128, + + /* Register numbers 129 on up are always reserved for special-purpose + registers. */ + first_spr_regnum = 129, + psr_regnum = 129, + ccr_regnum = 130, + cccr_regnum = 131, + fdpic_loadmap_exec_regnum = 132, + fdpic_loadmap_interp_regnum = 133, + tbr_regnum = 135, + brr_regnum = 136, + dbar0_regnum = 137, + dbar1_regnum = 138, + dbar2_regnum = 139, + dbar3_regnum = 140, + lr_regnum = 145, + lcr_regnum = 146, + iacc0h_regnum = 147, + iacc0l_regnum = 148, + last_spr_regnum = 148, + + /* The total number of registers we know exist. */ + frv_num_regs = last_spr_regnum + 1, + + /* Pseudo registers */ + first_pseudo_regnum = frv_num_regs, + + /* iacc0 - the 64-bit concatenation of iacc0h and iacc0l. */ + iacc0_regnum = first_pseudo_regnum + 0, + + last_pseudo_regnum = iacc0_regnum, + frv_num_pseudo_regs = last_pseudo_regnum - first_pseudo_regnum + 1, +}; + /* Return the FR-V ABI associated with GDBARCH. */ enum frv_abi frv_abi (struct gdbarch *gdbarch);