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 ;;
-# start-sanitize-arc
arc-*-*) gdb_target=arc ;;
-# end-sanitize-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 ;;
-# start-sanitize-d10v
d10v-*-*) gdb_target=d10v ;;
-# end-sanitize-d10v
+# start-sanitize-d30v
+d30v-*-*) gdb_target=d30v ;;
+# end-sanitize-d30v
h8300-*-*) gdb_target=h8300 ;;
h8500-*-*) gdb_target=h8500 ;;
configdirs="${configdirs} gdbserver" ;;
i[3456]86-*-solaris*) gdb_target=i386sol2 ;;
i[3456]86-*-sunos*) gdb_target=sun386 ;;
+i[3456]86-*-sysv4.2MP) gdb_target=i386v42mp ;;
i[3456]86-*-sysv4*) gdb_target=i386v4 ;;
+i[3456]86-*-unixware2*) gdb_target=i386v42mp ;;
+i[3456]86-*-unixware*) gdb_target=i386v4 ;;
i[3456]86-*-sco*) gdb_target=i386v ;;
i[3456]86-*-sysv*) gdb_target=i386v ;;
i[3456]86-*-linux*) gdb_target=linux
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" ;;
i960-*-nindy*) gdb_target=nindy960 ;;
i960-*-vxworks*) gdb_target=vxworks960 ;;
-# start-sanitize-m32r
m32r-*-elf*) gdb_target=m32r ;;
-# end-sanitize-m32r
m68000-*-sunos3*) gdb_target=sun2os3 ;;
m68000-*-sunos4*) gdb_target=sun2os4 ;;
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 ;;
+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=r5900 ;;
+# end-sanitize-r5900
+# start-sanitize-tx19
+mips-tx19*el-* | mips*tx19*el-*-*)
+ gdb_target=tx19l ;;
+mips-tx19*-* | mips*tx19*-*-*)
+ gdb_target=tx19 ;;
+# end-sanitize-tx19
+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*-*-lnews*) gdb_target=embedl ;;
mips*-sgi-irix5*) gdb_target=irix5 ;;
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 ;;
mips*-*-vxworks*) gdb_target=vxmips ;;
+mn10200-*-*) gdb_target=mn10200 ;;
mn10300-*-*) gdb_target=mn10300 ;;
none-*-*) gdb_target=none ;;
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 ;;
powerpc-*-eabi* | powerpc-*-linux* | powerpc-*-sysv* | powerpc-*-elf*)
- if test x"$powerpc_sim" = x"yes"; then
+ if test -f ../sim/ppc/Makefile; then
gdb_target=ppc-sim
else
gdb_target=ppc-eabi
fi ;;
powerpcle-*-eabi* | powerpcle-*-sysv* | powerpcle-*-elf*)
- if test x"$powerpc_sim" = x"yes"; then
+ if test -f ../sim/ppc/Makefile; then
gdb_target=ppcle-sim
else
gdb_target=ppcle-eabi
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
tahoe-*-*) gdb_target=tahoe ;;
-vax-*-*) gdb_target=vax ;;
+# start-sanitize-tic80
+tic80-*-*) gdb_target=tic80
+ configdirs="${configdirs} gdbserver" ;;
+# end-sanitize-tic80
-# start-sanitize-v850
-v850-*-*) gdb_target=v850 ;;
+vax-*-*) gdb_target=vax ;;
-# end-sanitize-v850
+v850-*-*) gdb_target=v850
+ case $gdb_host in
+ windows)
+ CONFIG_OBS="${CONFIG_OBS} v850ice.o"
+ LIBS="${LIBS} necmsg.lib" ;;
+ esac
+ ;;
+# start-sanitize-v850e
+v850e-*-*) gdb_target=v850
+ gdb_target_cpu=v850
+ case $gdb_host in
+ windows)
+ CONFIG_OBS="${CONFIG_OBS} v850ice.o"
+ LIBS="${LIBS} v850.lib" ;;
+ esac
+ ;;
+v850ea-*-*) gdb_target=v850
+ gdb_target_cpu=v850
+ case $gdb_host in
+ windows)
+ CONFIG_OBS="${CONFIG_OBS} v850ice.o"
+ LIBS="${LIBS} v850.lib" ;;
+ esac
+ ;;
+# end-sanitize-v850e
w65-*-*) gdb_target=w65 ;;
z8k-*-coff*) gdb_target=z8k ;;