From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1236 invoked by alias); 13 Feb 2002 18:05:16 -0000 Mailing-List: contact insight-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sources.redhat.com Received: (qmail 1191 invoked from network); 13 Feb 2002 18:05:15 -0000 Received: from unknown (HELO localhost.redhat.com) (216.138.202.10) by sources.redhat.com with SMTP; 13 Feb 2002 18:05:15 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id B3D273C8E; Wed, 13 Feb 2002 13:05:14 -0500 (EST) Message-ID: <3C6AAADA.4070201@cygnus.com> Date: Wed, 13 Feb 2002 10:05:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:0.9.8) Gecko/20020210 X-Accept-Language: en-us MIME-Version: 1.0 To: mckennad@esatclear.ie Cc: Keith Seitz , insight@sources.redhat.com Subject: Re: Adding Registers References: <3c932a4a.62b9.0@esatclear.ie> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-q1/txt/msg00122.txt.bz2 Just FYI, The register names in the Arm target are no longer hardwired. Instead functions are used to map between a name and their internal number. Have a look around any of the newer targets for how this is done. Grep for gdbarch_init. Andrew > Thanks for the help. > > Just one or two more questions. > > I have modified tm-arm.h from > > #define NUM_GREGS 16 /* Number of general purpose registers. */ > > to > > #define NUM_GREGS 18 /* Number of general purpose registers. */ > > This increases the number of registers that is seen by GDB/Inishgt by 2. > > I have modified arm-tdep.c from > > "fps", "cpsr"}; /* 24 25 26 27 */ > > to > > "fps", "cpsr", "r13" , "r14" }; /* 24 25 26 27 > */ /*Modified by David > McKenna */ > >