| 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 | |
| 8 | # Map host cpu into the config cpu subdirectory name. |
| 9 | # The default is $host_cpu. |
| 10 | |
| 11 | case "${host_cpu}" in |
| 12 | |
| 13 | alpha*) gdb_host_cpu=alpha ;; |
| 14 | arm*) gdb_host_cpu=arm ;; |
| 15 | hppa*) gdb_host_cpu=pa ;; |
| 16 | i[34567]86*) gdb_host_cpu=i386 ;; |
| 17 | m68*) gdb_host_cpu=m68k ;; |
| 18 | m88*) gdb_host_cpu=m88k ;; |
| 19 | mips*) gdb_host_cpu=mips ;; |
| 20 | powerpc*) gdb_host_cpu=powerpc ;; |
| 21 | sparcv9 | sparc64) gdb_host_cpu=sparc ;; |
| 22 | s390*) gdb_host_cpu=s390 ;; |
| 23 | sh*) gdb_host_cpu=sh ;; |
| 24 | x86_64*) gdb_host_cpu=i386 ;; |
| 25 | xscale*) gdb_host_cpu=arm ;; |
| 26 | m32r*) gdb_host_cpu=m32r ;; |
| 27 | *) gdb_host_cpu=$host_cpu ;; |
| 28 | |
| 29 | esac |
| 30 | |
| 31 | # map host info into gdb names. |
| 32 | |
| 33 | case "${host}" in |
| 34 | |
| 35 | alpha*-*-osf1*) gdb_host=alpha-osf1 ;; |
| 36 | alpha*-*-osf2*) gdb_host=alpha-osf2 ;; |
| 37 | alpha*-*-osf[3456789]*) gdb_host=alpha-osf3 ;; |
| 38 | alpha*-*-linux*) gdb_host=alpha-linux ;; |
| 39 | alpha*-*-freebsd*) gdb_host=fbsd ;; |
| 40 | alpha*-*-netbsd*) gdb_host=nbsd ;; |
| 41 | alpha*-*-openbsd*) gdb_host=nbsd ;; |
| 42 | |
| 43 | arm*-*-linux*) gdb_host=linux ;; |
| 44 | arm*-*-netbsdelf*) gdb_host=nbsdelf ;; |
| 45 | arm*-*-netbsd*) gdb_host=nbsdaout ;; |
| 46 | |
| 47 | hppa*-*-hiux*) gdb_host=hppahpux ;; |
| 48 | hppa*-*-hpux10.20) gdb_host=hpux1020 ;; |
| 49 | hppa*64*-*-hpux11*) gdb_host=hpux11w ;; |
| 50 | hppa*-*-hpux11*) gdb_host=hpux11 ;; |
| 51 | hppa*-*-hpux*) gdb_host=hppahpux ;; |
| 52 | hppa*-*-linux*) gdb_host=linux ;; |
| 53 | hppa*-*-openbsd*) gdb_host=obsd ;; |
| 54 | |
| 55 | i[34567]86-ncr-*) gdb_host=ncr3000 ;; |
| 56 | i[34567]86-*-dgux*) gdb_host=i386v4 ;; |
| 57 | i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu) |
| 58 | gdb_host=fbsd ;; |
| 59 | i[34567]86-*-netbsdelf* | i[34567]86-*-knetbsd*-gnu) |
| 60 | gdb_host=nbsdelf ;; |
| 61 | i[34567]86-*-freebsd*) gdb_host=fbsd ;; |
| 62 | i[34567]86-*-netbsd*) gdb_host=nbsdaout ;; |
| 63 | i[34567]86-*-go32*) gdb_host=go32 ;; |
| 64 | i[34567]86-*-msdosdjgpp*) gdb_host=go32 ;; |
| 65 | i[34567]86-*-linux*) gdb_host=linux ;; |
| 66 | i[34567]86-*-lynxos*) gdb_host=i386lynx ;; |
| 67 | i[34567]86-*-gnu*) gdb_host=i386gnu ;; |
| 68 | i[3456]86-*-nto*) gdb_host=nto ;; |
| 69 | i[34567]86-*-openbsd[0-2].* | i[34567]86-*-openbsd3.[0-3]) |
| 70 | gdb_host=obsdaout ;; |
| 71 | i[34567]86-*-openbsd*) gdb_host=obsd ;; |
| 72 | i[34567]86-*-sco3.2v5*) gdb_host=i386sco5 ;; |
| 73 | i[34567]86-*-sco3.2v4*) gdb_host=i386sco4 ;; |
| 74 | i[34567]86-*-sco*) gdb_host=i386sco ;; |
| 75 | i[34567]86-*-solaris*) gdb_host=i386sol2 ;; |
| 76 | i[34567]86-*-sysv4.2*) gdb_host=i386v42mp ;; |
| 77 | i[34567]86-*-sysv4*) gdb_host=i386v4 ;; |
| 78 | i[34567]86-*-sysv5*) gdb_host=i386v42mp ;; |
| 79 | i[34567]86-*-unixware2*) gdb_host=i386v42mp ;; |
| 80 | i[34567]86-*-unixware*) gdb_host=i386v4 ;; |
| 81 | i[34567]86-*-sysv*) gdb_host=i386v ;; |
| 82 | i[34567]86-*-isc*) gdb_host=i386v ;; |
| 83 | i[34567]86-*-cygwin*) gdb_host=cygwin ;; |
| 84 | |
| 85 | ia64-*-aix*) gdb_host=aix ;; |
| 86 | ia64-*-linux*) gdb_host=linux ;; |
| 87 | |
| 88 | m68*-*-linux*) gdb_host=linux ;; |
| 89 | m68*-*-netbsdelf*) gdb_host=nbsdelf ;; |
| 90 | m68*-*-netbsd*) gdb_host=nbsdaout ;; |
| 91 | m68*-*-openbsd*) gdb_host=obsd ;; |
| 92 | |
| 93 | m88*-*-openbsd*) gdb_host=obsd ;; |
| 94 | |
| 95 | mips-sgi-irix5*) gdb_host=irix5 ;; |
| 96 | mips-sgi-irix6*) gdb_host=irix6 ;; |
| 97 | mips*-*-linux*) gdb_host=linux ;; |
| 98 | mips*-*-netbsd*) gdb_host=nbsd ;; |
| 99 | |
| 100 | ns32k-*-netbsd*) gdb_host=nbsdaout ;; |
| 101 | |
| 102 | powerpc-*-aix3*) gdb_host=aix ;; |
| 103 | powerpc-*-aix4.[0-2]*) gdb_host=aix ;; |
| 104 | powerpc-*-aix4.3.[0-1]*) gdb_host=aix ;; |
| 105 | powerpc-*-aix*) gdb_host=aix432 ;; |
| 106 | powerpc-*-linux*) gdb_host=linux ;; |
| 107 | powerpc-*-netbsd*) gdb_host=nbsd ;; |
| 108 | powerpc-*-openbsd*) gdb_host=obsd ;; |
| 109 | |
| 110 | powerpc64-*-linux*) gdb_host=ppc64-linux ;; |
| 111 | |
| 112 | rs6000-*-lynxos*) gdb_host=rs6000lynx ;; |
| 113 | rs6000-*-aix4*) gdb_host=aix4 ;; |
| 114 | rs6000-*-*) gdb_host=rs6000 ;; |
| 115 | |
| 116 | s390*-*-*) gdb_host=s390 ;; |
| 117 | |
| 118 | sh*-*-netbsdelf*) gdb_host=nbsd ;; |
| 119 | |
| 120 | sparc64-*-freebsd*) gdb_host=fbsd ;; |
| 121 | sparc-*-linux*) gdb_host=linux ;; |
| 122 | sparc64-*-linux*) gdb_host=linux64 ;; |
| 123 | sparc-*-netbsdelf*) gdb_host=nbsdelf ;; |
| 124 | sparc-*-netbsdaout*) gdb_host=nbsdaout ;; |
| 125 | sparc-*-netbsd*) gdb_host=nbsdaout ;; |
| 126 | sparc64-*-netbsd*) gdb_host=nbsd64 ;; |
| 127 | sparc-*-openbsd*) gdb_host=nbsdelf ;; |
| 128 | sparc64-*-openbsd*) gdb_host=nbsd64 ;; |
| 129 | sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*) |
| 130 | gdb_host=sol2 |
| 131 | ;; |
| 132 | |
| 133 | vax-*-netbsdelf*) gdb_host=nbsdelf ;; |
| 134 | vax-*-netbsd*) gdb_host=nbsdaout ;; |
| 135 | vax-*-openbsd*) gdb_host=obsd ;; |
| 136 | vax-*-bsd*) gdb_host=vaxbsd ;; |
| 137 | vax-*-ultrix2*) gdb_host=vaxult2 ;; |
| 138 | vax-*-ultrix*) gdb_host=vaxult ;; |
| 139 | |
| 140 | x86_64-*-linux*) gdb_host=linux64 ;; |
| 141 | x86_64-*-freebsd*) gdb_host=fbsd64 ;; |
| 142 | x86_64-*-netbsd*) gdb_host=nbsd64 ;; |
| 143 | x86_64-*-openbsd*) gdb_host=obsd64 ;; |
| 144 | |
| 145 | m32r*-*-linux*) gdb_host=linux ;; |
| 146 | |
| 147 | esac |