This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
Re: Adding Registers
- From: Andrew Cagney <ac131313 at cygnus dot com>
- To: mckennad at esatclear dot ie
- Cc: Keith Seitz <keiths at redhat dot com>, insight at sources dot redhat dot com
- Date: Wed, 13 Feb 2002 13:05:14 -0500
- Subject: Re: Adding Registers
- References: <3c932a4a.62b9.0@esatclear.ie>
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 */
>
>