From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4317 invoked by alias); 6 Apr 2002 20:26:04 -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 4212 invoked from network); 6 Apr 2002 20:25:54 -0000 Received: from unknown (HELO localhost.redhat.com) (24.112.240.27) by sources.redhat.com with SMTP; 6 Apr 2002 20:25:54 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 994D73CB7 for ; Sat, 6 Apr 2002 15:25:46 -0500 (EST) Message-ID: <3CAF59CA.1060304@cygnus.com> Date: Sat, 06 Apr 2002 12:26:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:0.9.9) Gecko/20020328 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gdb-patches@sources.redhat.com Subject: [patch] Add PS_REGNUM. Content-Type: multipart/mixed; boundary="------------090407080300010803080702" X-SW-Source: 2002-04/txt/msg00233.txt.bz2 This is a multi-part message in MIME format. --------------090407080300010803080702 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-length: 320 Hello, This patch just fills in a gap in the current *_REGNUMs by adding PS_REGNUM. Unlike the others. This one really does allow -1 as the default value. (FP_REGNUM et.al. require real values as there is code around that, unfortunatly, depends on there being a real FP register et.al. ulgh). committed, Andrew --------------090407080300010803080702 Content-Type: text/plain; name="diffs" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="diffs" Content-length: 1210 2002-04-06 Andrew Cagney * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1. * gdbarch.c, gdbarch.h: Re-generate. Index: gdbarch.sh =================================================================== RCS file: /cvs/src/src/gdb/gdbarch.sh,v retrieving revision 1.122 diff -u -r1.122 gdbarch.sh --- gdbarch.sh 2002/04/06 03:07:59 1.122 +++ gdbarch.sh 2002/04/06 20:17:23 @@ -431,9 +431,16 @@ # These pseudo-registers may be aliases for other registers, # combinations of other registers, or they may be computed by GDB. v:2:NUM_PSEUDO_REGS:int:num_pseudo_regs::::0:0::0::: + +# GDB's standard (or well known) register numbers. These can map onto +# a real register or a pseudo (computed) register or not be defined at +# all (-1). FIXME: cagney/2002-04-05: As of the time of writing, only +# the PS_REGNUM was optional - code still depends on the others (fp, +# pc, sp) designating registers. v:2:SP_REGNUM:int:sp_regnum::::0:-1 v:2:FP_REGNUM:int:fp_regnum::::0:-1 v:2:PC_REGNUM:int:pc_regnum::::0:-1 +v:2:PS_REGNUM:int:ps_regnum::::-1:-1::0 v:2:FP0_REGNUM:int:fp0_regnum::::0:-1::0 v:2:NPC_REGNUM:int:npc_regnum::::0:-1::0 v:2:NNPC_REGNUM:int:nnpc_regnum::::0:-1::0 --------------090407080300010803080702--