This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] config/rs6000/tm-rs6000.h STAB_REG_TO_REGNUM


Kevin Buettner writes:
 > On Dec 5,  5:31pm, Elena Zannoni wrote:
 > 
 > >  > > +    case 64: /* mq */
 > >  > > +      if (TARGET_ARCHITECTURE->mach == bfd_mach_ppc_601)
 > >  > > +	regnum = 124;
 > >  > 
 > >  > Hmm... I wish we had a symbolic constant for this one.  (It took me
 > >  > a while to figure out why this register number was different.)
 > > 
 > > Hmmm, should these regnums be part of the gdbarch_tdep structure?
 > > That's how I did it for the SH. (Defined to -1 if not applicable) It
 > > seems to me that not all the variants have register (say, for
 > > instance) 67 defined to be the LR register or even exist. This way we
 > > could also do error checking in this routine.
 > 
 > I had occassion to look at SH recently and saw how you did things.  I
 > think the mechanism you propose would be appropriate for PPC too.
 > 
 > Kevin

Okey. I'll do that then.

Thanks!
Elena


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]