[RFA] Arm: change #defines to enums

Michael Snyder msnyder@redhat.com
Fri Apr 19 16:42:00 GMT 2002


Elena Zannoni wrote:
> 
> Michael Snyder writes:
>  > Richard Earnshaw wrote:
>  > >
>  > > > Is this OK with folks?
>  > > >
>  > > > 2002-04-18  Michael Snyder  <msnyder@redhat.com>
>  > > >
>  > > >       * arm-tdep.h: Change defines to enums for ease of debugging.
>  > >
>  > > I'm happy with the change to the regnums, but not with the other bits.
> 
> Actually, would it be better to put the regnums inside the tdep
> structure, like sh and powerpc do? That has really helped a lot when
> adding a variant that has different registers.

That's a separate issue, I think (I have no idea if some of these
regnums may change from one variant to another).  All I wanted
was to be able to cut and paste an expression that uses these
constants, and evaluate it.

Michael



More information about the Gdb-patches mailing list