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]
Other format: [Raw text]

[PATCH] Re: gdb6.1: Problem in building for mips16


At Mon, 21 Jun 2004 10:06:34 +0000 (UTC), "Monika Chaddha" wrote:
> [monika@gnuserver build]$ ../src/configure --target=mips16-elf
> --prefix=/home/monika/gdb6.1/install/
> 
> After that I am running 'make all' but not able to build for mips16

There is an error in the GDB 6.1 MIPS simulator configuration scripts
for the mips16-elf target.

I've just verified that the patch below allows the current head of the
6.1 branch configures/builds for mips16-elf with this patch applied.
The patch should apply cleanly to 6.1 as well.

You'll need to apply this patch, in the sim/mips directory.

Note that in this patch, i've included a patch to both configure.in
and configure.  (Normally, we'd only send the former to the list, then
run autoconf to regenerate the latter.  I've included the patch to
both so that you don't need to run autoconf yourself.)

I've applied this to the 6.1.x branch (so it will appear in future
6.1.x releases) and to the trunk.

Sorry for the inconvenience.



cgd
--
2004-06-25  Chris Demetriou  <cgd@broadcom.com>

	* configure.in (sim_m16_machine): Include mipsIII.
	* configure: Regenerate.

Index: configure.in
===================================================================
RCS file: /cvs/src/src/sim/mips/configure.in,v
retrieving revision 1.6
diff -u -p -r1.6 configure.in
--- configure.in	5 Jan 2003 07:56:59 -0000	1.6
+++ configure.in	25 Jun 2004 18:31:57 -0000
@@ -99,7 +99,7 @@ SIM_AC_OPTION_SMP($mips_smp)
 #
 sim_gen=IGEN
 sim_igen_machine="-M mipsIV"
-sim_m16_machine="-M mips16"
+sim_m16_machine="-M mips16,mipsIII"
 sim_igen_filter="32,64,f"
 sim_m16_filter="16"
 sim_mach_default="mips8000"
Index: configure
===================================================================
RCS file: /cvs/src/src/sim/mips/configure,v
retrieving revision 1.9
diff -u -p -r1.9 configure
--- configure	5 Jan 2003 07:56:59 -0000	1.9
+++ configure	25 Jun 2004 18:31:57 -0000
@@ -4061,7 +4061,7 @@ fi
 #
 sim_gen=IGEN
 sim_igen_machine="-M mipsIV"
-sim_m16_machine="-M mips16"
+sim_m16_machine="-M mips16,mipsIII"
 sim_igen_filter="32,64,f"
 sim_m16_filter="16"
 sim_mach_default="mips8000"


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