-arm*-*-netbsd*) gdb_host=nbsd ;;
-arm*-*-*) gdb_host=arm ;;
-
-hppa*-*-bsd*) gdb_host=hppabsd ;;
-hppa*-*-hiux*) gdb_host=hppahpux ;;
-hppa*-*-hpux10.20) gdb_host=hpux1020 ;;
-hppa*64*-*-hpux11*) gdb_host=hpux11w ;;
-hppa*-*-hpux11*) gdb_host=hpux11 ;;
-hppa*-*-hpux*) gdb_host=hppahpux ;;
-hppa*-*-osf*) gdb_host=hppaosf ;;
-
-i[3456]86-ncr-*) gdb_host=ncr3000 ;;
-i[3456]86-sequent-bsd*) gdb_host=symmetry ;; # dynix
-i[3456]86-sequent-sysv4*) gdb_host=ptx4 ;;
-i[3456]86-sequent-sysv*) gdb_host=ptx ;;
-i[3456]86-*-aix*) gdb_host=i386aix ;;
-i[3456]86-*-bsd*) gdb_host=i386bsd ;;
-i[3456]86-*-dgux*) gdb_host=i386dgux ;;
-i[3456]86-*-freebsd*) gdb_host=fbsd ;;
-i[3456]86-*-netbsdelf*) gdb_host=nbsdelf ;;
-i[3456]86-*-netbsdaout*) gdb_host=nbsd ;;
-i[3456]86-*-netbsd*) gdb_host=nbsd ;;
-i[3456]86-*-go32*) gdb_host=go32 ;;
-i[3456]86-*-msdosdjgpp*) gdb_host=go32 ;;
-i[3456]86-*-linux*) gdb_host=linux ;;
-i[3456]86-*-lynxos*) gdb_host=i386lynx ;;
-i[3456]86-*-mach3*) gdb_host=i386m3 ;;
-i[3456]86-*-mach*) gdb_host=i386mach ;;
-i[3456]86-*-gnu*) gdb_host=i386gnu ;;
-i[3456]86-*-openbsd*) gdb_host=obsd ;;
-i[3456]86-*-osf1mk*) gdb_host=i386mk ;;
-i[3456]86-*-sco3.2v5*) gdb_host=i386sco5 ;;
-i[3456]86-*-sco3.2v4*) gdb_host=i386sco4 ;;
-i[3456]86-*-sco*) gdb_host=i386sco ;;
-i[3456]86-*-solaris*) gdb_host=i386sol2 ;;
-i[3456]86-*-sysv3.2*) gdb_host=i386v32 ;;
-i[3456]86-*-sysv32*) gdb_host=i386v32 ;;
-i[3456]86-*-sysv4.2*) gdb_host=i386v42mp ;;
-i[3456]86-*-sysv4*) gdb_host=i386v4 ;;
-i[3456]86-*-sysv5*) gdb_host=i386v42mp ;;
-i[3456]86-*-unixware2*) gdb_host=i386v42mp ;;
-i[3456]86-*-unixware*) gdb_host=i386v4 ;;
-i[3456]86-*-sysv*) gdb_host=i386v ;;
-i[3456]86-*-isc*) gdb_host=i386v32 ;;
-i[3456]86-*-cygwin*) gdb_host=cygwin ;;
-
-ia64-*-aix*) gdb_host=aix ;;
-ia64-*-linux*) gdb_host=linux ;;
+arm*-*-netbsdelf* | arm*-*-knetbsd*-gnu)
+ gdb_host=nbsdelf ;;
+arm*-*-openbsd*) gdb_host=nbsdelf ;;
+
+hppa*-*-linux*) gdb_host=linux ;;
+hppa*-*-netbsd*) gdb_host=nbsd ;;
+hppa*-*-openbsd*) gdb_host=obsd ;;
+
+i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
+ gdb_host=fbsd ;;
+i[34567]86-*-netbsdelf* | i[34567]86-*-knetbsd*-gnu)
+ gdb_host=nbsdelf ;;
+i[34567]86-*-go32*) gdb_host=go32 ;;
+i[34567]86-*-mingw32*) gdb_host=mingw
+ gdb_host_obs=mingw-hdep.o
+ ;;
+i[34567]86-*-msdosdjgpp*) gdb_host=go32 ;;
+i[34567]86-*-linux*) gdb_host=linux ;;
+i[34567]86-*-gnu*) gdb_host=i386gnu ;;
+i[3456]86-*-nto*) gdb_host=nto ;;
+i[34567]86-*-openbsd*) gdb_host=obsd ;;
+i[34567]86-*-solaris2* | x86_64-*-solaris2*)
+ gdb_host=sol2 ;;
+i[34567]86-*-cygwin*) gdb_host=cygwin ;;