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 11# Map host cpu into the config cpu subdirectory name. 12# The default is $host_cpu. 13 14case "${host_cpu}" in 15 16alpha*) gdb_host_cpu=alpha ;; 17arm*) gdb_host_cpu=arm ;; 18hppa*) gdb_host_cpu=pa ;; 19i[34567]86*) gdb_host_cpu=i386 ;; 20m68*) gdb_host_cpu=m68k ;; 21m88*) gdb_host_cpu=m88k ;; 22mips*) gdb_host_cpu=mips ;; 23powerpc*) gdb_host_cpu=powerpc ;; 24sparcv9 | sparc64) gdb_host_cpu=sparc ;; 25s390*) gdb_host_cpu=s390 ;; 26sh*) gdb_host_cpu=sh ;; 27x86_64*) gdb_host_cpu=i386 ;; 28xscale*) gdb_host_cpu=arm ;; 29m32r*) gdb_host_cpu=m32r ;; 30*) gdb_host_cpu=$host_cpu ;; 31 32esac 33 34# map host info into gdb names. 35 36case "${host}" in 37 38alpha*-*-osf1*) gdb_host=alpha-osf1 ;; 39alpha*-*-osf2*) gdb_host=alpha-osf2 ;; 40alpha*-*-osf[3456789]*) gdb_host=alpha-osf3 ;; 41alpha*-*-linux*) gdb_host=alpha-linux ;; 42alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu) 43 gdb_host=fbsd ;; 44alpha*-*-netbsd* | alpha*-*-knetbsd*-gnu) 45 gdb_host=nbsd ;; 46alpha*-*-openbsd*) gdb_host=obsd ;; 47 48arm*-*-linux*) gdb_host=linux ;; 49arm*-*-netbsdelf* | arm*-*-knetbsd*-gnu) 50 gdb_host=nbsdelf ;; 51arm*-*-netbsd*) gdb_host=nbsdaout ;; 52arm*-*-openbsd*) gdb_host=nbsdelf ;; 53 54hppa*-*-hiux*) gdb_host=hppahpux ;; 55hppa*-*-hpux10.20) gdb_host=hpux1020 ;; 56hppa*64*-*-hpux11*) gdb_host=hpux11w ;; 57hppa*-*-hpux11*) gdb_host=hpux11 ;; 58hppa*-*-hpux*) gdb_host=hppahpux ;; 59hppa*-*-linux*) gdb_host=linux ;; 60hppa*-*-openbsd*) gdb_host=obsd ;; 61 62i[34567]86-ncr-*) gdb_host=ncr3000 ;; 63i[34567]86-*-dgux*) gdb_host=i386v4 ;; 64i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu) 65 gdb_host=fbsd ;; 66i[34567]86-*-netbsdelf* | i[34567]86-*-knetbsd*-gnu) 67 gdb_host=nbsdelf ;; 68i[34567]86-*-netbsd*) gdb_host=nbsdaout ;; 69i[34567]86-*-go32*) gdb_host=go32 ;; 70i[34567]86-*-msdosdjgpp*) gdb_host=go32 ;; 71i[34567]86-*-linux*) gdb_host=linux ;; 72i[34567]86-*-lynxos*) gdb_host=i386lynx ;; 73i[34567]86-*-gnu*) gdb_host=i386gnu ;; 74i[3456]86-*-nto*) gdb_host=nto ;; 75i[34567]86-*-openbsd[0-2].* | i[34567]86-*-openbsd3.[0-3]) 76 gdb_host=obsdaout ;; 77i[34567]86-*-openbsd*) gdb_host=obsd ;; 78i[34567]86-*-sco3.2v5*) gdb_host=i386sco5 ;; 79i[34567]86-*-sco3.2v4*) gdb_host=i386sco4 ;; 80i[34567]86-*-sco*) gdb_host=i386sco ;; 81i[34567]86-*-solaris*) gdb_host=i386sol2 ;; 82i[34567]86-*-sysv4.2*) gdb_host=i386v42mp ;; 83i[34567]86-*-sysv4*) gdb_host=i386v4 ;; 84i[34567]86-*-sysv5*) gdb_host=i386v42mp ;; 85i[34567]86-*-unixware2*) gdb_host=i386v42mp ;; 86i[34567]86-*-unixware*) gdb_host=i386v4 ;; 87i[34567]86-*-sysv*) gdb_host=i386v ;; 88i[34567]86-*-isc*) gdb_host=i386v ;; 89i[34567]86-*-cygwin*) gdb_host=cygwin ;; 90 91ia64-*-aix*) gdb_host=aix ;; 92ia64-*-linux*) gdb_host=linux ;; 93 94m68*-*-linux*) gdb_host=linux ;; 95m68*-*-netbsdelf* | m68*-*-knetbsd*-gnu) 96 gdb_host=nbsdelf ;; 97m68*-*-netbsd*) gdb_host=nbsdaout ;; 98m68*-*-openbsd*) gdb_host=obsd ;; 99 100m88*-*-openbsd*) gdb_host=obsd ;; 101 102mips-sgi-irix5*) gdb_host=irix5 ;; 103mips-sgi-irix6*) gdb_host=irix6 ;; 104mips*-*-linux*) gdb_host=linux ;; 105mips*-*-netbsd* | mips*-*-knetbsd*-gnu) 106 gdb_host=nbsd ;; 107mips64*-*-openbsd*) gdb_host=obsd64 ;; 108 109ns32k-*-netbsd*) gdb_host=nbsdaout ;; 110 111powerpc-*-aix*) gdb_host=aix ;; 112powerpc-*-linux*) gdb_host=linux ;; 113powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu) 114 gdb_host=nbsd ;; 115powerpc-*-openbsd*) gdb_host=obsd ;; 116powerpc64-*-openbsd*) gdb_host=obsd64 ;; 117 118powerpc64-*-linux*) gdb_host=ppc64-linux ;; 119 120rs6000-*-lynxos*) gdb_host=rs6000lynx ;; 121rs6000-*-aix4*) gdb_host=aix4 ;; 122rs6000-*-*) gdb_host=rs6000 ;; 123 124s390*-*-*) gdb_host=s390 ;; 125 126sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu) 127 gdb_host=nbsd ;; 128sh*-*-openbsd*) gdb_host=obsd ;; 129 130sparc64-*-freebsd* | sparc64-*-kfreebsd*-gnu) 131 gdb_host=fbsd ;; 132sparc-*-linux*) gdb_host=linux ;; 133sparc64-*-linux*) gdb_host=linux64 ;; 134sparc-*-netbsdelf* | sparc-*-knetbsd*-gnu) 135 gdb_host=nbsdelf ;; 136sparc-*-netbsdaout*) gdb_host=nbsdaout ;; 137sparc-*-netbsd*) gdb_host=nbsdaout ;; 138sparc64-*-netbsd* | sparc64-*-knetbsd*-gnu) 139 gdb_host=nbsd64 ;; 140sparc-*-openbsd*) gdb_host=nbsdelf ;; 141sparc64-*-openbsd*) gdb_host=obsd64 ;; 142sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*) 143 gdb_host=sol2 144 ;; 145 146vax-*-bsd*) gdb_host=vax ;; 147vax-*-netbsdelf* | vax-*-knetbsd*-gnu) 148 gdb_host=nbsdelf ;; 149vax-*-netbsd*) gdb_host=nbsdaout ;; 150vax-*-openbsd*) gdb_host=obsd ;; 151vax-*-ultrix*) gdb_host=vax ;; 152 153x86_64-*-linux*) gdb_host=linux64 ;; 154x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu) 155 gdb_host=fbsd64 ;; 156x86_64-*-netbsd* | x86_64-*-knetbsd*-gnu) 157 gdb_host=nbsd64 ;; 158x86_64-*-openbsd*) gdb_host=obsd64 ;; 159 160m32r*-*-linux*) gdb_host=linux ;; 161 162esac 163 164 165 166# Map the host/cpu onto the floatformat correspondong to C's "float", 167# "double" and "long double" types. 168 169case "${host}" in 170i[34567]86-*-*) 171 gdb_host_float_format="&floatformat_ieee_single_little" 172 gdb_host_double_format="&floatformat_ieee_double_little" 173 gdb_host_long_double_format="&floatformat_i387_ext" 174 ;; 175hppa*-*-linux*) 176 gdb_host_float_format="&floatformat_ieee_single_big" 177 gdb_host_double_format="&floatformat_ieee_double_big" 178 gdb_host_long_double_format="&floatformat_ieee_double_big" 179 ;; 180*) 181 gdb_host_float_format=0 182 gdb_host_double_format=0 183 gdb_host_long_double_format=0 184 ;; 185esac 186