case "${target_cpu}" in
-alpha) gdb_target_cpu=alpha ;;
+alpha*) gdb_target_cpu=alpha ;;
c[12]) gdb_target_cpu=convex ;;
hppa*) gdb_target_cpu=pa ;;
i[3456]86*) gdb_target_cpu=i386 ;;
pn) gdb_target_cpu=gould ;;
pyramid) gdb_target_cpu=pyr ;;
sparc*) gdb_target_cpu=sparc ;;
+thumb*) gdb_target_cpu=arm ;;
*) gdb_target_cpu=$target_cpu ;;
esac
a29k-*-udi*) gdb_target=a29k-udi ;;
a29k-*-vxworks*) gdb_target=vx29k ;;
-alpha-*-osf*) gdb_target=alpha-osf1 ;;
-alpha-*-linux*) gdb_target=alpha-linux ;;
+alpha*-*-osf*) gdb_target=alpha-osf1 ;;
+alpha*-*-linux*) gdb_target=alpha-linux ;;
arc-*-*) gdb_target=arc ;;
-arm-*-*) gdb_target=arm ;;
+arm-*-* | thumb-*-*) gdb_target=arm
+
+ # rdi doesn't work for wingdb yet
+ case $gdb_host in
+ windows) ;;
+ *)
+ configdirs="$configdirs rdi-share"
+ CONFIG_OBS="$CONFIG_OBS remote-rdi.o rdi-share/libangsd.a"
+ ;;
+ esac
+ ;;
c1-*-*) gdb_target=convex ;;
c2-*-*) gdb_target=convex ;;
configdirs="${configdirs} gdbserver" ;;
i[3456]86-*-isc*) gdb_target=i386v ;;
i[3456]86-*-mach3*) gdb_target=i386m3 ;;
-i[3456]86-*-mach*) gdb_target=i386mach ;;
i[3456]86-*-gnu*) gdb_target=i386gnu ;;
i[3456]86-*-netware*) gdb_target=i386nw
configdirs="${configdirs} nlm" ;;
m88*-harris-cxux*) gdb_target=cxux ;;
m88*-motorola-sysv4*) gdb_target=delta88v4 ;;
-m88*-*-mach3*) gdb_target=mach3 ;;
m88*-motorola-*) gdb_target=delta88 ;;
m88*-*-*) gdb_target=m88k ;;
mips*-dec-*) gdb_target=decstation ;;
mips64*el-*-ecoff*) gdb_target=embedl64 ;;
mips64*-*-ecoff*) gdb_target=embed64 ;;
+# start-sanitize-vr4320
+mips64*vr4320*el-*-elf*)gdb_target=vr4300el ;;
+mips64*vr4320*-*-elf*) gdb_target=vr4320 ;;
+# end-sanitize-vr4320
mips64*vr4300*el-*-elf*) gdb_target=vr4300el ;;
mips64*vr4300*-*-elf*) gdb_target=vr4300 ;;
mips64*vr4100*el-*-elf*) gdb_target=vr4300el ;;
-mips64*vr4100*-*-elf*) gdb_target=vr4300 ;;
+mips64*vr4100*-*-elf*) gdb_target=vr4xxx ;;
mips64*vr5000*el-*-elf*) gdb_target=vr5000el ;;
mips64*vr5000*-*-elf*) gdb_target=vr5000
configdirs="${configdirs} gdbserver" ;;
+# start-sanitize-vr5400
+mips64*vr5400*el-*-elf*) gdb_target=vr5000el ;;
+mips64*vr5400*-*-elf*) gdb_target=vr5000
+ configdirs="${configdirs} gdbserver" ;;
+# end-sanitize-vr5400
+# start-sanitize-sky
+mips64*r5900*-sky-elf*) gdb_target=txvu ;;
+# end-sanitize-sky
# start-sanitize-r5900
-mips64*r5900*-*-elf*) gdb_target=vr5000el ;;
+mips64*r5900*-*-elf*) gdb_target=r5900 ;;
# end-sanitize-r5900
# start-sanitize-tx19
mips-tx19*el-* | mips*tx19*el-*-*)
- gdb_target=tx19el ;;
+ gdb_target=tx19l ;;
mips-tx19*-* | mips*tx19*-*-*)
gdb_target=tx19 ;;
# end-sanitize-tx19
-mips*tx39*el*-elf*) gdb_target=tx39el ;;
+mips*tx39*el*-elf*) gdb_target=tx39l ;;
mips*tx39*-elf*) gdb_target=tx39 ;;
+# start-sanitize-tx49
+mips64*tx49*el-*-elf*) gdb_target=tx49el ;;
+mips64*tx49*-*-elf*) gdb_target=tx49 ;;
+# end-sanitize-tx49
mips64*el-*-elf*) gdb_target=embedl64 ;;
mips64*-*-elf*) gdb_target=embed64 ;;
mips*el-*-ecoff*) gdb_target=embedl ;;
mips*-*-ecoff*) gdb_target=embed ;;
-# start-sanitize-gm
-mips*-*-magic*) gdb_target=embed ;;
-# end-sanitize-gm
mips*el-*-elf*) gdb_target=embedl ;;
mips*-*-elf*) gdb_target=embed ;;
mips*-little-*) gdb_target=littlemips ;;
mips*-sgi-irix6*) gdb_target=irix5 ;;
mips*-sgi-*) gdb_target=irix3 ;;
mips*-sony-*) gdb_target=bigmips ;;
-mips*-*-mach3*) gdb_target=mach3 ;;
+mips*-*-mach3*) gdb_target=mipsm3 ;;
mips*-*-sysv4*) gdb_target=mipsv4 ;;
mips*-*-sysv*) gdb_target=bigmips ;;
mips*-*-riscos*) gdb_target=bigmips ;;
np1-*-*) gdb_target=np1 ;;
-ns32k-*-mach3*) gdb_target=mach3 ;;
+ns32k-*-mach3*) gdb_target=ns32km3 ;;
ns32k-*-netbsd*) gdb_target=nbsd ;;
ns32k-utek-sysv*) gdb_target=merlin ;;
ns32k-utek-*) gdb_target=umax ;;
powerpc-*-netware*) gdb_target=ppc-nw
configdirs="${configdirs} nlm" ;;
-powerpc-*-aix4*) gdb_target=aix4 ;;
powerpc-*-aix*) gdb_target=aix ;;
powerpcle-*-cygwin32) gdb_target=cygwin32 ;;
powerpcle-*-solaris*) gdb_target=solaris ;;
sparc-*-aout*) gdb_target=sparc-em ;;
sparc-*-coff*) gdb_target=sparc-em ;;
sparc-*-elf*) gdb_target=sparc-em ;;
+sparc-*-linux*) gdb_target=linux ;;
sparc-*-lynxos*) gdb_target=sparclynx
configdirs="${configdirs} gdbserver" ;;
sparc-*-netbsd*) gdb_target=nbsd ;;
sparc-*-vxworks*) gdb_target=vxsparc ;;
sparc-*-*) gdb_target=sun4os4 ;;
sparclet-*-*) gdb_target=sparclet;;
-sparclite*-*-*) gdb_target=sparclite ;;
+sparclite-*-*) gdb_target=sparclite ;;
+sparc86x-*-*) gdb_target=sparclite ;;
# It's not clear what the right solution for "v8plus" systems is yet.
# For now, stick with sparc-sun-solaris2 since that's what config.guess
# should return. Work is still needed to get gdb to print the 64 bit
LIBS="${LIBS} v850.lib" ;;
esac
;;
-v850eq-*-*) gdb_target=v850
+v850ea-*-*) gdb_target=v850
gdb_target_cpu=v850
case $gdb_host in
windows)