15796c8dcSSimon Schubert# Mapping of configurations into GDB host definitions. This is 25796c8dcSSimon Schubert# invoked from the autoconf generated configure script. 35796c8dcSSimon Schubert 45796c8dcSSimon Schubert# This file sets the following shell variables: 55796c8dcSSimon Schubert# gdb_host_cpu generic name of host's CPU 65796c8dcSSimon Schubert# gdb_host name of GDB host definition to use 75796c8dcSSimon Schubert# gdb_host_float_format host's float floatformat, or 0 85796c8dcSSimon Schubert# gdb_host_double_format host's double floatformat, or 0 95796c8dcSSimon Schubert# gdb_host_long_double_format host's long double floatformat, or 0 105796c8dcSSimon Schubert# gdb_host_obs host-specific .o files to include 115796c8dcSSimon Schubert 125796c8dcSSimon Schubert# Map host cpu into the config cpu subdirectory name. 135796c8dcSSimon Schubert# The default is $host_cpu. 145796c8dcSSimon Schubert 155796c8dcSSimon Schubertcase $host in 165796c8dcSSimon Schubert alpha*-*-osf1* | \ 175796c8dcSSimon Schubert alpha*-*-osf2* | \ 185796c8dcSSimon Schubert hppa*-*-hiux* | \ 195796c8dcSSimon Schubert i[34567]86-ncr-* | \ 205796c8dcSSimon Schubert i[34567]86-*-dgux* | \ 215796c8dcSSimon Schubert i[34567]86-*-lynxos* | \ 225796c8dcSSimon Schubert i[34567]86-*-sco3.2v5* | \ 235796c8dcSSimon Schubert i[34567]86-*-sco3.2v4* | \ 245796c8dcSSimon Schubert i[34567]86-*-sco* | \ 255796c8dcSSimon Schubert i[34567]86-*-sysv4.2* | \ 265796c8dcSSimon Schubert i[34567]86-*-sysv4* | \ 275796c8dcSSimon Schubert i[34567]86-*-sysv5* | \ 285796c8dcSSimon Schubert i[34567]86-*-unixware2* | \ 295796c8dcSSimon Schubert i[34567]86-*-unixware* | \ 305796c8dcSSimon Schubert i[34567]86-*-sysv* | \ 315796c8dcSSimon Schubert i[34567]86-*-isc* | \ 325796c8dcSSimon Schubert rs6000-*-lynxos* | \ 335796c8dcSSimon Schubert null) 345796c8dcSSimon Schubert echo "*** Configuration $host is obsolete." >&2 355796c8dcSSimon Schubert echo "*** Support has been REMOVED." >&2 365796c8dcSSimon Schubert exit 1 375796c8dcSSimon Schubert ;; 385796c8dcSSimon Schubertesac 395796c8dcSSimon Schubert 405796c8dcSSimon Schubertcase "${host_cpu}" in 415796c8dcSSimon Schubert 42*ef5ccd6cSJohn Marinoaarch64*) gdb_host_cpu=aarch64 ;; 435796c8dcSSimon Schubertalpha*) gdb_host_cpu=alpha ;; 445796c8dcSSimon Schubertarm*) gdb_host_cpu=arm ;; 455796c8dcSSimon Schuberthppa*) gdb_host_cpu=pa ;; 465796c8dcSSimon Schuberti[34567]86*) gdb_host_cpu=i386 ;; 475796c8dcSSimon Schubertm68*) gdb_host_cpu=m68k ;; 485796c8dcSSimon Schubertm88*) gdb_host_cpu=m88k ;; 495796c8dcSSimon Schubertmips*) gdb_host_cpu=mips ;; 505796c8dcSSimon Schubertpowerpc* | rs6000) gdb_host_cpu=powerpc ;; 515796c8dcSSimon Schubertsparcv9 | sparc64) gdb_host_cpu=sparc ;; 525796c8dcSSimon Schuberts390*) gdb_host_cpu=s390 ;; 535796c8dcSSimon Schubertsh*) gdb_host_cpu=sh ;; 54*ef5ccd6cSJohn Marinotilegx*) gdb_host_cpu=tilegx ;; 555796c8dcSSimon Schubertx86_64*) gdb_host_cpu=i386 ;; 565796c8dcSSimon Schubertm32r*) gdb_host_cpu=m32r ;; 575796c8dcSSimon Schubertxtensa*) gdb_host_cpu=xtensa ;; 585796c8dcSSimon Schubert*) gdb_host_cpu=$host_cpu ;; 595796c8dcSSimon Schubert 605796c8dcSSimon Schubertesac 615796c8dcSSimon Schubert 625796c8dcSSimon Schubert# map host info into gdb names. 635796c8dcSSimon Schubert 645796c8dcSSimon Schubertcase "${host}" in 655796c8dcSSimon Schubert 665796c8dcSSimon Schubert*-*-darwin*) gdb_host=darwin ;; 675796c8dcSSimon Schubert 68*ef5ccd6cSJohn Marinoaarch64*-*-linux*) gdb_host=linux ;; 69*ef5ccd6cSJohn Marino 705796c8dcSSimon Schubertalpha*-*-osf[3456789]*) gdb_host=alpha-osf3 ;; 715796c8dcSSimon Schubertalpha*-*-linux*) gdb_host=alpha-linux ;; 725796c8dcSSimon Schubertalpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu) 735796c8dcSSimon Schubert gdb_host=fbsd ;; 745796c8dcSSimon Schubertalpha*-*-netbsd* | alpha*-*-knetbsd*-gnu) 755796c8dcSSimon Schubert gdb_host=nbsd ;; 765796c8dcSSimon Schubertalpha*-*-openbsd*) gdb_host=nbsd ;; 775796c8dcSSimon Schubert 785796c8dcSSimon Schubertarm*-*-linux*) gdb_host=linux ;; 795796c8dcSSimon Schubertarm*-*-netbsdelf* | arm*-*-knetbsd*-gnu) 805796c8dcSSimon Schubert gdb_host=nbsdelf ;; 815796c8dcSSimon Schubertarm*-*-netbsd*) gdb_host=nbsdaout ;; 825796c8dcSSimon Schubertarm*-*-openbsd*) gdb_host=nbsdelf ;; 835796c8dcSSimon Schubert 845796c8dcSSimon Schuberthppa*-*-hpux*) 855796c8dcSSimon Schubert gdb_host=hpux ;; 865796c8dcSSimon Schuberthppa*-*-linux*) gdb_host=linux ;; 875796c8dcSSimon Schuberthppa*-*-netbsd*) gdb_host=nbsd ;; 885796c8dcSSimon Schuberthppa*-*-openbsd*) gdb_host=obsd ;; 895796c8dcSSimon Schubert 905796c8dcSSimon Schuberti[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu) 915796c8dcSSimon Schubert gdb_host=fbsd ;; 925796c8dcSSimon Schuberti[34567]86-*-netbsdelf* | i[34567]86-*-knetbsd*-gnu) 935796c8dcSSimon Schubert gdb_host=nbsdelf ;; 945796c8dcSSimon Schuberti[34567]86-*-netbsd*) gdb_host=nbsdaout ;; 9569e0f06dSSimon Schuberti[34567]86-*-dragonfly*) gdb_host=dfly ;; 965796c8dcSSimon Schuberti[34567]86-*-go32*) gdb_host=go32 ;; 975796c8dcSSimon Schuberti[34567]86-*-mingw32*) gdb_host=mingw 985796c8dcSSimon Schubert gdb_host_obs=mingw-hdep.o 995796c8dcSSimon Schubert ;; 1005796c8dcSSimon Schuberti[34567]86-*-msdosdjgpp*) gdb_host=go32 ;; 1015796c8dcSSimon Schuberti[34567]86-*-linux*) gdb_host=linux ;; 1025796c8dcSSimon Schuberti[34567]86-*-gnu*) gdb_host=i386gnu ;; 1035796c8dcSSimon Schuberti[3456]86-*-nto*) gdb_host=nto ;; 1045796c8dcSSimon Schuberti[34567]86-*-openbsd[0-2].* | i[34567]86-*-openbsd3.[0-3]) 1055796c8dcSSimon Schubert gdb_host=obsdaout ;; 1065796c8dcSSimon Schuberti[34567]86-*-openbsd*) gdb_host=obsd ;; 107cf7f2e2dSJohn Marinoi[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*) 108cf7f2e2dSJohn Marino gdb_host=sol2-64 ;; 1095796c8dcSSimon Schuberti[34567]86-*-solaris*) gdb_host=i386sol2 ;; 1105796c8dcSSimon Schuberti[34567]86-*-cygwin*) gdb_host=cygwin ;; 1115796c8dcSSimon Schubert 112c50c785cSJohn Marinoia64-*-hpux*) gdb_host=hpux ;; 1135796c8dcSSimon Schubertia64-*-linux*) gdb_host=linux ;; 1145796c8dcSSimon Schubert 1155796c8dcSSimon Schubertm68*-*-linux*) gdb_host=linux ;; 1165796c8dcSSimon Schubertm68*-*-netbsdelf* | m68*-*-knetbsd*-gnu) 1175796c8dcSSimon Schubert gdb_host=nbsdelf ;; 1185796c8dcSSimon Schubertm68*-*-netbsd*) gdb_host=nbsdaout ;; 1195796c8dcSSimon Schubertm68*-*-openbsd*) gdb_host=obsd ;; 1205796c8dcSSimon Schubert 1215796c8dcSSimon Schubertm88*-*-openbsd*) gdb_host=obsd ;; 1225796c8dcSSimon Schubert 1235796c8dcSSimon Schubertmips-sgi-irix5*) gdb_host=irix5 ;; 1245796c8dcSSimon Schubertmips-sgi-irix6*) gdb_host=irix6 ;; 1255796c8dcSSimon Schubertmips*-*-linux*) gdb_host=linux ;; 1265796c8dcSSimon Schubertmips*-*-netbsd* | mips*-*-knetbsd*-gnu) 1275796c8dcSSimon Schubert gdb_host=nbsd ;; 1285796c8dcSSimon Schubertmips64*-*-openbsd*) gdb_host=obsd64 ;; 1295796c8dcSSimon Schubert 1305796c8dcSSimon Schubertpowerpc-*-aix* | rs6000-*-*) 1315796c8dcSSimon Schubert gdb_host=aix ;; 132*ef5ccd6cSJohn Marinopowerpc*-*-freebsd*) gdb_host=fbsd ;; 1335796c8dcSSimon Schubertpowerpc-*-linux*) gdb_host=linux ;; 1345796c8dcSSimon Schubertpowerpc-*-netbsd* | powerpc-*-knetbsd*-gnu) 1355796c8dcSSimon Schubert gdb_host=nbsd ;; 1365796c8dcSSimon Schubertpowerpc-*-openbsd*) gdb_host=obsd ;; 1375796c8dcSSimon Schubert 1385796c8dcSSimon Schubertpowerpc64-*-linux*) gdb_host=ppc64-linux 1395796c8dcSSimon Schubert # Support 'pseudo-native' debugging on the Cell BE 1405796c8dcSSimon Schubert if test "${target_cpu}" = "spu"; then 1415796c8dcSSimon Schubert gdb_host=spu-linux 1425796c8dcSSimon Schubert gdb_native=yes 1435796c8dcSSimon Schubert fi 1445796c8dcSSimon Schubert ;; 1455796c8dcSSimon Schubert 1465796c8dcSSimon Schuberts390*-*-*) gdb_host=s390 ;; 1475796c8dcSSimon Schubert 1485796c8dcSSimon Schubertsh*-*-netbsdelf* | sh*-*-knetbsd*-gnu) 1495796c8dcSSimon Schubert gdb_host=nbsd ;; 1505796c8dcSSimon Schubertsh*-*-openbsd*) gdb_host=nbsd ;; 1515796c8dcSSimon Schubert 1525796c8dcSSimon Schubertsparc64-*-freebsd* | sparc64-*-kfreebsd*-gnu) 1535796c8dcSSimon Schubert gdb_host=fbsd ;; 1545796c8dcSSimon Schubertsparc-*-linux*) gdb_host=linux ;; 1555796c8dcSSimon Schubertsparc64-*-linux*) gdb_host=linux64 ;; 1565796c8dcSSimon Schubertsparc-*-netbsdelf* | sparc-*-knetbsd*-gnu) 1575796c8dcSSimon Schubert gdb_host=nbsdelf ;; 1585796c8dcSSimon Schubertsparc-*-netbsdaout*) gdb_host=nbsdaout ;; 1595796c8dcSSimon Schubertsparc-*-netbsd*) gdb_host=nbsdaout ;; 1605796c8dcSSimon Schubertsparc64-*-netbsd* | sparc64-*-knetbsd*-gnu) 1615796c8dcSSimon Schubert gdb_host=nbsd64 ;; 1625796c8dcSSimon Schubertsparc-*-openbsd*) gdb_host=nbsdelf ;; 1635796c8dcSSimon Schubertsparc64-*-openbsd*) gdb_host=nbsd64 ;; 1645796c8dcSSimon Schubertsparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*) 1655796c8dcSSimon Schubert gdb_host=sol2 1665796c8dcSSimon Schubert ;; 1675796c8dcSSimon Schubert 168*ef5ccd6cSJohn Marinotilegx-*-linux*) gdb_host=linux ;; 169*ef5ccd6cSJohn Marino 1705796c8dcSSimon Schubertvax-*-bsd*) gdb_host=vax ;; 1715796c8dcSSimon Schubertvax-*-netbsdelf* | vax-*-knetbsd*-gnu) 1725796c8dcSSimon Schubert gdb_host=nbsdelf ;; 1735796c8dcSSimon Schubertvax-*-netbsd*) gdb_host=nbsdaout ;; 1745796c8dcSSimon Schubertvax-*-openbsd*) gdb_host=obsd ;; 1755796c8dcSSimon Schubertvax-*-ultrix*) gdb_host=vax ;; 1765796c8dcSSimon Schubert 1775796c8dcSSimon Schubertx86_64-*-linux*) gdb_host=linux64 ;; 1785796c8dcSSimon Schubertx86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu) 1795796c8dcSSimon Schubert gdb_host=fbsd64 ;; 1805796c8dcSSimon Schubertx86_64-*-netbsd* | x86_64-*-knetbsd*-gnu) 1815796c8dcSSimon Schubert gdb_host=nbsd64 ;; 1825796c8dcSSimon Schubertx86_64-*-openbsd*) gdb_host=obsd64 ;; 18369e0f06dSSimon Schubertx86_64-*-dragonfly*) gdb_host=dfly64 ;; 1845796c8dcSSimon Schubertx86_64-*-mingw*) gdb_host=mingw64 1855796c8dcSSimon Schubert gdb_host_obs=mingw-hdep.o 1865796c8dcSSimon Schubert ;; 187*ef5ccd6cSJohn Marinox86_64-*-cygwin*) gdb_host=cygwin64 ;; 1885796c8dcSSimon Schubertm32r*-*-linux*) gdb_host=linux ;; 1895796c8dcSSimon Schubert 1905796c8dcSSimon Schubertxtensa*-*-linux*) gdb_host=linux ;; 1915796c8dcSSimon Schubert 1925796c8dcSSimon Schubertesac 1935796c8dcSSimon Schubert 1945796c8dcSSimon Schubert 1955796c8dcSSimon Schubert 1965796c8dcSSimon Schubert# Map the host/cpu onto the floatformat correspondong to C's "float", 1975796c8dcSSimon Schubert# "double" and "long double" types. 1985796c8dcSSimon Schubert 1995796c8dcSSimon Schubertcase "${host}" in 2005796c8dcSSimon Schuberti[34567]86-*-*) 2015796c8dcSSimon Schubert gdb_host_float_format="&floatformat_ieee_single_little" 2025796c8dcSSimon Schubert gdb_host_double_format="&floatformat_ieee_double_little" 2035796c8dcSSimon Schubert gdb_host_long_double_format="&floatformat_i387_ext" 2045796c8dcSSimon Schubert ;; 2055796c8dcSSimon Schuberthppa*-*-linux*) 2065796c8dcSSimon Schubert gdb_host_float_format="&floatformat_ieee_single_big" 2075796c8dcSSimon Schubert gdb_host_double_format="&floatformat_ieee_double_big" 2085796c8dcSSimon Schubert gdb_host_long_double_format="&floatformat_ieee_double_big" 2095796c8dcSSimon Schubert ;; 2105796c8dcSSimon Schubertm68*-*-*) 2115796c8dcSSimon Schubert gdb_host_float_format="&floatformat_ieee_single_big" 2125796c8dcSSimon Schubert gdb_host_double_format="&floatformat_ieee_double_big" 2135796c8dcSSimon Schubert gdb_host_long_double_format="&floatformat_m68881_ext" 2145796c8dcSSimon Schubert ;; 215c50c785cSJohn Marinoia64-*-hpux*) 216c50c785cSJohn Marino gdb_host_float_format="&floatformat_ieee_single_big" 217c50c785cSJohn Marino gdb_host_double_format="&floatformat_ieee_double_big" 218c50c785cSJohn Marino gdb_host_long_double_format="&floatformat_ia64_quad_big" 219c50c785cSJohn Marino ;; 2205796c8dcSSimon Schubert*) 2215796c8dcSSimon Schubert gdb_host_float_format=0 2225796c8dcSSimon Schubert gdb_host_double_format=0 2235796c8dcSSimon Schubert gdb_host_long_double_format=0 2245796c8dcSSimon Schubert ;; 2255796c8dcSSimon Schubertesac 226