This is the mail archive of the gdb@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]

Re: MQ_REGNUM in ppc-bdm.c


On Aug 1,  1:55pm, Joćo Cadamuro Junior wrote:

> I'm trying to compile the insight snapshot 20000730 (host cygwin 1.1.3
> and target powerpc-eabi), and I found two known problems:
> 
> 1. NUM_REGS in dink32-rom.c, and
> 2. MQ_REGNUM in ppc-bdm.c
> 
> NUM_REGS I removed from dink32-rom.c, because I'll not use DINK 32 rom
> monitor...
> 
> But I'll try to use BDM for PowerPC. How can I proceed? Should I remove
> the references to MQ_REGNUM in the ppc-bdm.c code, or reinclude its
> definition as "#define MQ_REGNUM 70" in the ./config/rs6000/tm-rs6000.h
> ? (... or none of them). What's the best for me???

None of the above.  :-)

Your problems are fixed by my patch of yesterday, specifically:

	* dink32-rom.c (dink32_regnames): Make array size implicit.

	* ppc-bdm.h (ppc-tdep.h): Include.

	* rs6000-tdep.c, ppc-linux-tdep.c, ppc-bdm.h, ppc-tdep.h
	(GP0_REGNUM, TOC_REGNUM, PS_REGNUM, CR_REGNUM, LR_REGNUM,
	CTR_REGNUM, XER_REGNUM, MQ_REGNUM): Add PPC_ prefix.

I think that all that you need to do is fetch a more recent snapshot.
Alternately, you might consider using CVS because keeping your sources
up-to-date will be easier that way.

Please let me know of any further PPC related problems that you run
into.

Thanks,

Kevin

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