This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: MQ_REGNUM in ppc-bdm.c
- To: Joćo Cadamuro Junior <cadamuro at lit dot cpdtt dot cefetpr dot br>, gdb <gdb at sources dot redhat dot com>
- Subject: Re: MQ_REGNUM in ppc-bdm.c
- From: Kevin Buettner <kevinb at cygnus dot com>
- Date: Tue, 1 Aug 2000 10:14:20 -0700
- References: <398700F2.A68AFEB4@lit.cpdtt.cefetpr.br>
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