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: [RFC/patch 5.1] change NUM_REALREGS to NUM_REGS


Andrew Volkov writes:
 > The attached patch replace NUM_REALREGS macro to NUM_REGS, 
 > and NUM_REGS to NUM_REGS + NUM_PSEUDO_REGS.
 > 
 > I need this for H8300 maltiarching.
 > 
 > Any suggestions/comments ?
 > 
 > Andrey Volkov
 > 

Andrey,
You should also eliminate the definitions of the NUM_REALREGS macro.

One definition of that macro is in config/h8300/tm-h8300.h (defined to
10). Hmm, h8300-tdep.c defines NUM_REGS to 11, instead. Oh, and look(!)
config/tm-h8300.h defines NUM_REGS to 13.

You also compile remote-e7000.c when the target triplet is one of
sh-*-hms, sh-*-coff*, sh-*-elf*, sh-*-linux*. The definition of
NUM_REALREGS then comes from config/sh/tm-sh.h (in this case is 59).

Pretty messy. Maybe Kazu has some more insights on the h8300
definitions of NUM_REGS.

Elena


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