This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Add new machine(sim) to the gdb tool chain
- From: mr924352 at cs dot nthu dot edu dot tw
- To: gdb at sources dot redhat dot com
- Date: Fri, 12 Mar 2004 10:32:35 +0800
- Subject: Re: Add new machine(sim) to the gdb tool chain
----- Original Message -----
From: "Andrew Cagney" <cagney@gnu.org>
To: <mr924352@cs.nthu.edu.tw>
Cc: <gdb@sources.redhat.com>
Sent: Friday, March 12, 2004 3:21 AM
Subject: Re: Add new machine(sim) to the gdb tool chain
> > Hello all.
> >
> > I want to add new machine(simulator) to this gnu tool chain.
> > At first, i modify the configure file in the binutils source code
directory.
> > And, i add new machine name "mytest" .
> > After that ,when i configure the soure code ,it show this error message:
> >
> > checking target system type... Invalid configuration `mytest-elf':
machine
> > `mytest' not recognized
> >
> > How can i do? Then,i can configure my new machine with those tool
chains. (ex:
> > binutils gcc newlib gdb)
>
> You'll need to modify files like:
> gdb/configure.tgt
> bfd/config.bfd
> which are called by the corresponding */configure script.
>
> Andrew
Thanks for your reply!
I have built the binutils successsfully.
But when i build the gcc, i encounter some problem.
the error message is as follow:
./genconstants.exe /cygdrive/d/thesis/ASP/gcc-3.4/gcc/config/ASP/ASP.md >
tmp-constants.h
/cygdrive/d/thesis/ASP/gcc-3.4/gcc/config/ASP/ASP.md:439: unknown mode
`CC_C'
/cygdrive/d/thesis/ASP/gcc-3.4/gcc/config/ASP/ASP.md:439: following context
is `CC_REGNUM)'
make[1]: *** [s-constants] Error 1
make[1]: Leaving directory `/cygdrive/d/thesis/build/gcc/gcc'
make: *** [all-gcc] Error 2
make: Leaving directory `/cygdrive/d/thesis/build/gcc'
I name my new machine "ASP".
But i still use the arm data(architecture) for my new machine.
Therefore,i must add the new directory ASP in the source code in
/gcc-3.4/gcc/config.
The ASP directory is the as arm dircetory in /gcc-3.4/gcc/config except the
file name.
For example, arm.c => ASP.c arm.md=>ASP.md.
Then i get the above error message.
How can i do?
thanks a
lot!!