1# Mapping of configurations into GDB host definitions. This is 2# invoked from the autoconf generated configure script. 3 4# This file sets the following shell variables: 5# gdb_host_cpu generic name of host's CPU 6# gdb_host name of GDB host definition to use 7# gdb_host_float_format host's float floatformat, or 0 8# gdb_host_double_format host's double floatformat, or 0 9# gdb_host_long_double_format host's long double floatformat, or 0 10# gdb_host_obs host-specific .o files to include 11 12# Map host cpu into the config cpu subdirectory name. 13# The default is $host_cpu. 14 15case $host in 16 *-*-irix* | \ 17 *-*-solaris2.[01] | *-*-solaris2.[2-9]* | *-*-solaris2.10* | \ 18 alpha*-*-osf* | \ 19 alpha*-*-freebsd* | \ 20 alpha*-*-kfreebsd*-gnu | \ 21 arm*-*-netbsdaout* | \ 22 hppa*-*-hiux* | \ 23 i[34567]86-ncr-* | \ 24 i[34567]86-*-dgux* | \ 25 i[34567]86-*-lynxos* | \ 26 i[34567]86-*-netbsdaout* | \ 27 i[34567]86-*-openbsd[0-2].* | i[34567]86-*-openbsd3.[0-3] | \ 28 i[34567]86-*-sco3.2v5* | \ 29 i[34567]86-*-sco3.2v4* | \ 30 i[34567]86-*-sco* | \ 31 i[34567]86-*-sysv4.2* | \ 32 i[34567]86-*-sysv4* | \ 33 i[34567]86-*-sysv5* | \ 34 i[34567]86-*-unixware2* | \ 35 i[34567]86-*-unixware* | \ 36 i[34567]86-*-sysv* | \ 37 i[34567]86-*-isc* | \ 38 m68*-*-netbsdaout* | \ 39 sparc-*-netbsdaout* | \ 40 rs6000-*-lynxos* | \ 41 vax-*-bsd* | \ 42 vax-*-netbsdaout* | \ 43 vax-*-ultrix* | \ 44 hppa*-*-hpux* | \ 45 ia64-*-hpux* | \ 46 null) 47 echo "*** Configuration $host is obsolete." >&2 48 echo "*** Support has been REMOVED." >&2 49 exit 1 50 ;; 51esac 52 53case "${host_cpu}" in 54 55aarch64*) gdb_host_cpu=aarch64 ;; 56alpha*) gdb_host_cpu=alpha ;; 57arc*) gdb_host_cpu=arc ;; 58arm*) gdb_host_cpu=arm ;; 59hppa*) gdb_host_cpu=pa ;; 60i[34567]86*) gdb_host_cpu=i386 ;; 61loongarch*) gdb_host_cpu=loongarch ;; 62m68*) gdb_host_cpu=m68k ;; 63mips*) gdb_host_cpu=mips ;; 64powerpc* | rs6000) gdb_host_cpu=powerpc ;; 65sparcv9 | sparc64) gdb_host_cpu=sparc ;; 66s390*) gdb_host_cpu=s390 ;; 67sh*) gdb_host_cpu=sh ;; 68tilegx*) gdb_host_cpu=tilegx ;; 69x86_64*) gdb_host_cpu=i386 ;; 70m32r*) gdb_host_cpu=m32r ;; 71xtensa*) gdb_host_cpu=xtensa ;; 72*) gdb_host_cpu=$host_cpu ;; 73 74esac 75 76# map host info into gdb names. 77 78case "${host}" in 79 80*-*-darwin*) gdb_host=darwin ;; 81 82aarch64*-*-linux*) gdb_host=linux ;; 83aarch64*-*-netbsd*) gdb_host=nbsd ;; 84aarch64*-*-freebsd*) gdb_host=fbsd ;; 85 86alpha*-*-linux*) gdb_host=alpha-linux ;; 87alpha*-*-netbsd* | alpha*-*-knetbsd*-gnu) 88 gdb_host=nbsd ;; 89alpha*-*-openbsd*) gdb_host=nbsd ;; 90 91arc*-*-linux*) gdb_host=linux ;; 92 93arm*-*-freebsd*) gdb_host=fbsd ;; 94arm*-*-linux*) gdb_host=linux ;; 95arm*-*-netbsd* | arm*-*-knetbsd*-gnu) 96 gdb_host=nbsd ;; 97arm*-*-openbsd*) gdb_host=nbsd ;; 98 99hppa*-*-linux*) gdb_host=linux ;; 100hppa*-*-netbsd*) gdb_host=nbsd ;; 101hppa*-*-openbsd*) gdb_host=obsd ;; 102 103i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu) 104 gdb_host=fbsd ;; 105i[34567]86-*-netbsd* | i[34567]86-*-knetbsd*-gnu) 106 gdb_host=nbsd ;; 107i[34567]86-*-go32*) gdb_host=go32 ;; 108i[34567]86-*-mingw32*) gdb_host=mingw 109 gdb_host_obs=mingw-hdep.o 110 ;; 111i[34567]86-*-msdosdjgpp*) gdb_host=go32 ;; 112i[34567]86-*-linux*) gdb_host=linux ;; 113i[34567]86-*-gnu*) gdb_host=i386gnu ;; 114i[3456]86-*-nto*) gdb_host=nto ;; 115i[34567]86-*-openbsd*) gdb_host=obsd ;; 116i[34567]86-*-solaris2* | x86_64-*-solaris2*) 117 gdb_host=sol2 ;; 118i[34567]86-*-cygwin*) gdb_host=cygwin ;; 119 120ia64-*-linux*) gdb_host=linux ;; 121 122loongarch*-linux*) gdb_host=linux ;; 123 124m68*-*-linux*) gdb_host=linux ;; 125m68*-*-netbsd* | m68*-*-knetbsd*-gnu | m5407-*-netbsd*) 126 gdb_host=nbsd ;; 127m68*-*-openbsd*) gdb_host=obsd ;; 128 129m88*-*-openbsd*) gdb_host=obsd ;; 130 131mips*-*-linux*) gdb_host=linux ;; 132mips*-*-netbsd* | mips*-*-knetbsd*-gnu) 133 gdb_host=nbsd ;; 134mips*-*-freebsd*) gdb_host=fbsd ;; 135mips64*-*-openbsd*) gdb_host=obsd64 ;; 136 137or1k-*-linux*) gdb_host=linux ;; 138 139powerpc-*-aix* | rs6000-*-* | powerpc64-*-aix*) 140 gdb_host=aix ;; 141powerpc*-*-freebsd*) gdb_host=fbsd ;; 142powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu) 143 gdb_host=nbsd ;; 144powerpc64-*-netbsd* | powerpc64-*-knetbsd*-gnu) 145 gdb_host=ppc64-nbsd ;; 146powerpc-*-openbsd*) gdb_host=obsd ;; 147 148powerpc64*-*-linux*) gdb_host=ppc64-linux ;; 149powerpc*-*-linux*) gdb_host=linux ;; 150 151riscv*-*-freebsd*) gdb_host=fbsd ;; 152riscv*-*-linux*) gdb_host=linux ;; 153riscv*-*-netbsd*) gdb_host=nbsd ;; 154 155s390*-*-linux*) gdb_host=linux ;; 156 157sh*-*-netbsd* | sh*-*-knetbsd*-gnu) 158 gdb_host=nbsd ;; 159sh*-*-openbsd*) gdb_host=nbsd ;; 160 161sparc64-*-freebsd* | sparc64-*-kfreebsd*-gnu) 162 gdb_host=fbsd ;; 163sparc-*-linux*) gdb_host=linux ;; 164sparc64-*-linux*) gdb_host=linux64 ;; 165sparc-*-netbsd* | sparc-*-knetbsd*-gnu) 166 gdb_host=nbsd ;; 167sparc64-*-netbsd* | sparc64-*-knetbsd*-gnu) 168 gdb_host=nbsd64 ;; 169sparc-*-openbsd*) gdb_host=nbsd ;; 170sparc64-*-openbsd*) gdb_host=obsd64 ;; 171sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*) 172 gdb_host=sol2 173 ;; 174 175tilegx-*-linux*) gdb_host=linux ;; 176 177vax-*-netbsd* | vax-*-knetbsd*-gnu) 178 gdb_host=nbsd ;; 179vax-*-openbsd*) gdb_host=obsd ;; 180 181x86_64-*-linux*) gdb_host=linux64 ;; 182x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu) 183 gdb_host=fbsd64 ;; 184x86_64-*-netbsd* | x86_64-*-knetbsd*-gnu) 185 gdb_host=nbsd64 ;; 186x86_64-*-openbsd*) gdb_host=obsd64 ;; 187x86_64-*-mingw*) gdb_host=mingw64 188 gdb_host_obs=mingw-hdep.o 189 ;; 190x86_64-*-cygwin*) gdb_host=cygwin64 ;; 191m32r*-*-linux*) gdb_host=linux ;; 192 193xtensa*-*-linux*) gdb_host=linux ;; 194 195esac 196 197 198 199# Map the host/cpu onto the floatformat correspondong to C's "float", 200# "double" and "long double" types. 201 202case "${host}" in 203i[34567]86-*-*|x86_64-*-*) 204 gdb_host_float_format="&floatformat_ieee_single_little" 205 gdb_host_double_format="&floatformat_ieee_double_little" 206 gdb_host_long_double_format="&floatformat_i387_ext" 207 ;; 208hppa*-*-linux*) 209 gdb_host_float_format="&floatformat_ieee_single_big" 210 gdb_host_double_format="&floatformat_ieee_double_big" 211 gdb_host_long_double_format="&floatformat_ieee_double_big" 212 ;; 213m68*-*-*) 214 gdb_host_float_format="&floatformat_ieee_single_big" 215 gdb_host_double_format="&floatformat_ieee_double_big" 216 gdb_host_long_double_format="&floatformat_m68881_ext" 217 ;; 218*) 219 gdb_host_float_format=0 220 gdb_host_double_format=0 221 gdb_host_long_double_format=0 222 ;; 223esac 224