| 1 | # Mappings from configurations to GDB target definitions. This is |
| 2 | # invoked from the autoconf generated configure script. |
| 3 | |
| 4 | # This file sets the following shell variables: |
| 5 | # gdb_target_cpu generic name of CPU |
| 6 | # gdb_target name of GDB target definition to use |
| 7 | |
| 8 | # This file may also modify configdirs. |
| 9 | |
| 10 | # Map target cpu into the config cpu subdirectory name. |
| 11 | # The default is $target_cpu. |
| 12 | |
| 13 | case "${target_cpu}" in |
| 14 | |
| 15 | alpha*) gdb_target_cpu=alpha ;; |
| 16 | arm*) gdb_target_cpu=arm ;; |
| 17 | avr*) gdb_target_cpu=avr ;; |
| 18 | hppa*) gdb_target_cpu=pa ;; |
| 19 | i[3456]86*) gdb_target_cpu=i386 ;; |
| 20 | m68hc11*|m6811*) gdb_target_cpu=m68hc11 ;; |
| 21 | m68*) gdb_target_cpu=m68k ;; |
| 22 | mips*) gdb_target_cpu=mips ;; |
| 23 | powerpc*) gdb_target_cpu=powerpc ;; |
| 24 | sparc*) gdb_target_cpu=sparc ;; |
| 25 | thumb*) gdb_target_cpu=arm ;; |
| 26 | s390*) gdb_target_cpu=s390 ;; |
| 27 | sh*) gdb_target_cpu=sh ;; |
| 28 | strongarm*) gdb_target_cpu=arm ;; |
| 29 | xscale*) gdb_target_cpu=arm ;; |
| 30 | v850*) gdb_target_cpu=v850 ;; |
| 31 | x86_64*) gdb_target_cpu=i386 ;; |
| 32 | *) gdb_target_cpu=$target_cpu ;; |
| 33 | |
| 34 | esac |
| 35 | |
| 36 | # map target info into gdb names. |
| 37 | |
| 38 | case "${target}" in |
| 39 | |
| 40 | *-*-freebsd*) gdb_target=fbsd |
| 41 | ;; |
| 42 | |
| 43 | alpha*-*-osf*) gdb_target=alpha-osf1 ;; |
| 44 | alpha*-*-linux*) gdb_target=alpha-linux ;; |
| 45 | alpha*-*-netbsd*) gdb_target=nbsd ;; |
| 46 | alpha*-*-*) gdb_target=alpha ;; |
| 47 | |
| 48 | arm*-wince-pe) gdb_target=wince ;; |
| 49 | arm*-*-linux*) gdb_target=linux |
| 50 | build_gdbserver=yes |
| 51 | ;; |
| 52 | arm*-*-netbsd*) gdb_target=nbsd |
| 53 | gdb_multi_arch=yes ;; |
| 54 | arm*-*-* | thumb*-*-* | strongarm*-*-*) |
| 55 | gdb_target=embed |
| 56 | configdirs="$configdirs rdi-share" |
| 57 | ;; |
| 58 | xscale-*-*) gdb_target=embed |
| 59 | configdirs="$configdirs rdi-share" |
| 60 | ;; |
| 61 | |
| 62 | avr-*-*) gdb_target=avr |
| 63 | gdb_multi_arch=yes |
| 64 | ;; |
| 65 | |
| 66 | cris*) gdb_target=cris ;; |
| 67 | |
| 68 | d10v-*-*) gdb_target=d10v ;; |
| 69 | |
| 70 | h8300-*-*) gdb_target=h8300 ;; |
| 71 | # OBSOLETE h8500-*-*) gdb_target=h8500 ;; |
| 72 | |
| 73 | |
| 74 | frv-*-*) gdb_target=frv ;; |
| 75 | |
| 76 | hppa*-*-bsd*) gdb_target=hppabsd ;; |
| 77 | hppa*-*-pro*) gdb_target=hppapro ;; |
| 78 | hppa*64*-*-hpux11*) gdb_target=hppa64 ;; |
| 79 | hppa*-*-hpux*) gdb_target=hppahpux ;; |
| 80 | hppa*-*-hiux*) gdb_target=hppahpux ;; |
| 81 | hppa*-*-osf*) gdb_target=hppaosf ;; |
| 82 | hppa*-*-*) gdb_target=hppa ;; |
| 83 | |
| 84 | i[3456]86-sequent-bsd*) gdb_target=symmetry ;; |
| 85 | i[3456]86-sequent-sysv4*) gdb_target=ptx4 ;; |
| 86 | i[3456]86-sequent-sysv*) gdb_target=ptx ;; |
| 87 | i[3456]86-ncr-*) gdb_target=ncr3000 ;; |
| 88 | i[3456]86-*-bsd*) gdb_target=i386bsd ;; |
| 89 | i[3456]86-*-netbsd*) gdb_target=nbsd ;; |
| 90 | i[3456]86-*-openbsd*) gdb_target=obsd ;; |
| 91 | i[3456]86-*-go32*) gdb_target=i386aout ;; |
| 92 | i[3456]86-*-msdosdjgpp*) gdb_target=go32 ;; |
| 93 | i[3456]86-*-lynxos*) gdb_target=i386lynx ;; |
| 94 | i[3456]86-*-solaris*) gdb_target=i386sol2 ;; |
| 95 | i[3456]86-*-sco*) gdb_target=i386v ;; |
| 96 | i[3456]86-*-sysv*) gdb_target=i386v ;; |
| 97 | i[3456]86-*-linux*) gdb_target=linux |
| 98 | build_gdbserver=yes |
| 99 | ;; |
| 100 | i[3456]86-*-isc*) gdb_target=i386v ;; |
| 101 | i[3456]86-*-gnu*) gdb_target=i386gnu ;; |
| 102 | i[3456]86-*-netware*) gdb_target=i386nw |
| 103 | configdirs="${configdirs} nlm" ;; |
| 104 | i[3456]86-*-cygwin*) gdb_target=cygwin ;; |
| 105 | i[3456]86-*-vxworks*) gdb_target=vxworks ;; |
| 106 | i[3456]86-*-*) gdb_target=embed ;; |
| 107 | |
| 108 | ia64-*-aix*) gdb_target=aix ;; |
| 109 | ia64-*-linux*) gdb_target=linux |
| 110 | build_gdbserver=yes |
| 111 | ;; |
| 112 | ia64*-*-*) gdb_target=ia64 ;; |
| 113 | |
| 114 | # OBSOLETE m32r-*-elf*) gdb_target=m32r ;; |
| 115 | |
| 116 | m68hc11*-*-*|m6811*-*-*) gdb_target=m68hc11 ;; |
| 117 | |
| 118 | m68000-*-sunos3*) gdb_target=sun2os3 ;; |
| 119 | m68000-*-sunos4*) gdb_target=sun2os4 ;; |
| 120 | |
| 121 | m68*-bull-sysv*) gdb_target=dpx2 ;; |
| 122 | m68*-att-*) gdb_target=3b1 ;; |
| 123 | m68*-cisco*-*) gdb_target=cisco ;; |
| 124 | m68*-motorola-*) gdb_target=delta68 ;; |
| 125 | m68*-netx-*) gdb_target=vxworks68 ;; |
| 126 | m68*-tandem-*) gdb_target=st2000 ;; |
| 127 | m68*-*-aout*) gdb_target=monitor ;; |
| 128 | m68*-*-coff*) gdb_target=monitor ;; |
| 129 | m68*-*-elf*) gdb_target=monitor ;; |
| 130 | m68*-*-linux*) gdb_target=linux |
| 131 | build_gdbserver=yes |
| 132 | ;; |
| 133 | m68*-*-lynxos*) gdb_target=m68klynx ;; |
| 134 | m68*-*-netbsd*) gdb_target=nbsdaout ;; |
| 135 | m68*-*-os68k*) gdb_target=os68k ;; |
| 136 | m68*-*-sunos3*) gdb_target=sun3os3 ;; |
| 137 | m68*-*-sunos4*) gdb_target=sun3os4 ;; |
| 138 | m68*-*-sysv4*) gdb_target=m68kv4 ;; |
| 139 | m68*-*-vxworks*) gdb_target=vxworks68 ;; |
| 140 | |
| 141 | mcore*-*-*) gdb_target=mcore ;; |
| 142 | mips64*-big-*) gdb_target=bigmips64 ;; |
| 143 | mips*-big-*) gdb_target=bigmips ;; |
| 144 | mips*-dec-*) gdb_target=decstation ;; |
| 145 | mips*-*-pe) gdb_target=wince ;; |
| 146 | mips64*el-*-ecoff*) gdb_target=embedl64 ;; |
| 147 | mips64*-*-ecoff*) gdb_target=embed64 ;; |
| 148 | mips64*vr4xxx*el-*-elf*)gdb_target=vr4xxxel ;; |
| 149 | mips64*vr4xxx*-*-elf*) gdb_target=vr4xxx ;; |
| 150 | mips64*vr4300*el-*-elf*) gdb_target=vr4300el ;; |
| 151 | mips64*vr4300*-*-elf*) gdb_target=vr4300 ;; |
| 152 | mips64*vr4100*el-*-elf*) gdb_target=vr4300el ;; |
| 153 | mips64*vr4100*-*-elf*) gdb_target=vr4100 ;; |
| 154 | mips64*vr5000*el-*-elf*) gdb_target=vr5000el ;; |
| 155 | mips64*vr5000*-*-elf*) gdb_target=vr5000 ;; |
| 156 | mips*tx39*el*-elf*) gdb_target=tx39l ;; |
| 157 | mips*tx39*-elf*) gdb_target=tx39 ;; |
| 158 | mips64*el-*-elf*) gdb_target=embedl64 ;; |
| 159 | mips64*-*-elf*) gdb_target=embed64 ;; |
| 160 | mips64*-*-linux*) gdb_target=linux64 ;; |
| 161 | mips*el-*-ecoff*) gdb_target=embedl ;; |
| 162 | mips*-*-ecoff*) gdb_target=embed ;; |
| 163 | mips*el-*-elf*) gdb_target=embedl ;; |
| 164 | mips*-*-elf*) gdb_target=embed ;; |
| 165 | mips*-little-*) gdb_target=littlemips ;; |
| 166 | mips*-*-lnews*) gdb_target=embedl ;; |
| 167 | mips*-sgi-irix5*) gdb_target=irix5 ;; |
| 168 | mips*-sgi-irix6*) gdb_target=irix6 ;; |
| 169 | mips*-sgi-*) gdb_target=irix3 ;; |
| 170 | mips*-sony-*) gdb_target=bigmips ;; |
| 171 | mips*-*-linux*) gdb_target=linux |
| 172 | build_gdbserver=yes |
| 173 | ;; |
| 174 | mips*-*-netbsd*) gdb_target=nbsd ;; |
| 175 | mips*-*-mach3*) gdb_target=mipsm3 ;; |
| 176 | mips*-*-sysv4*) gdb_target=mipsv4 ;; |
| 177 | mips*-*-sysv*) gdb_target=bigmips ;; |
| 178 | mips*-*-riscos*) gdb_target=bigmips ;; |
| 179 | mips*-*-vxworks*) gdb_target=vxmips ;; |
| 180 | mips*-*-*) gdb_target=embed ;; |
| 181 | |
| 182 | # OBSOLETE mn10200-*-*) gdb_target=mn10200 ;; |
| 183 | mn10300-*-*) gdb_target=mn10300 ;; |
| 184 | |
| 185 | none-*-*) gdb_target=none ;; |
| 186 | |
| 187 | ns32k-*-netbsd*) gdb_target=nbsdaout ;; |
| 188 | |
| 189 | powerpc-*-netbsd*) gdb_target=nbsd ;; |
| 190 | powerpc-*-aix*) gdb_target=aix ;; |
| 191 | powerpc-*-linux*) gdb_target=linux |
| 192 | build_gdbserver=yes |
| 193 | ;; |
| 194 | powerpc-*-vxworks*) gdb_target=vxworks ;; |
| 195 | powerpc*-*-*) if test -f ../sim/ppc/Makefile; then |
| 196 | gdb_target=ppc-sim |
| 197 | else |
| 198 | gdb_target=ppc-eabi |
| 199 | fi ;; |
| 200 | |
| 201 | rs6000-*-lynxos*) gdb_target=rs6000lynx ;; |
| 202 | rs6000-*-aix4*) gdb_target=aix4 ;; |
| 203 | rs6000-*-*) gdb_target=rs6000 ;; |
| 204 | |
| 205 | s390-*-*) gdb_target=s390 |
| 206 | build_gdbserver=yes |
| 207 | ;; |
| 208 | s390x-*-*) gdb_target=s390x |
| 209 | build_gdbserver=yes |
| 210 | ;; |
| 211 | |
| 212 | sh*-*-pe) gdb_target=wince ;; |
| 213 | sh-*-coff*) gdb_target=embed ;; |
| 214 | sh-*-elf*) gdb_target=embed ;; |
| 215 | sh-*-linux*) gdb_target=linux |
| 216 | build_gdbserver=yes |
| 217 | ;; |
| 218 | sh*-*-netbsdelf*) gdb_target=nbsd ;; |
| 219 | sh*) gdb_target=embed ;; |
| 220 | |
| 221 | sparc-*-aout*) gdb_target=sparc-em ;; |
| 222 | sparc-*-coff*) gdb_target=sparc-em ;; |
| 223 | sparc-*-elf*) gdb_target=sparc-em ;; |
| 224 | sparc-*-linux*) gdb_target=linux ;; |
| 225 | sparc-*-lynxos*) gdb_target=sparclynx ;; |
| 226 | sparc-*-netbsd*) gdb_target=nbsd ;; |
| 227 | sparc-*-solaris2*) gdb_target=sun4sol2 ;; |
| 228 | sparc-*-sunos4*) gdb_target=sun4os4 ;; |
| 229 | sparc-*-sunos5*) gdb_target=sun4sol2 ;; |
| 230 | sparc-*-vxworks*) gdb_target=vxsparc ;; |
| 231 | sparc-*-*) gdb_target=sun4os4 ;; |
| 232 | sparclet-*-*) gdb_target=sparclet;; |
| 233 | sparclite-*-*) gdb_target=sparclite ;; |
| 234 | sparc86x-*-*) gdb_target=sparclite ;; |
| 235 | # It's not clear what the right solution for "v8plus" systems is yet. |
| 236 | # For now, stick with sparc-sun-solaris2 since that's what config.guess |
| 237 | # should return. Work is still needed to get gdb to print the 64 bit |
| 238 | # regs (some of which are usable in v8plus) so sp64sol.mt hasn't been |
| 239 | # deleted though presumably it should be eventually. |
| 240 | #sparc64-*-solaris2*) gdb_target=sp64sol2 ;; |
| 241 | sparc64-*-linux*) gdb_target=sp64linux ;; |
| 242 | sparc64-*-netbsd*) gdb_target=nbsd64 ;; |
| 243 | sparcv9-*-* | sparc64-*-*) gdb_target=sp64 ;; |
| 244 | |
| 245 | xstormy16-*-*) gdb_target=xstormy16 ;; |
| 246 | |
| 247 | vax-*-*) gdb_target=vax ;; |
| 248 | |
| 249 | v850*-*-*) gdb_target=v850 |
| 250 | case ${gdb_host} in |
| 251 | cygwin*) |
| 252 | CONFIG_OBS="${CONFIG_OBS} v850ice.o" ;; |
| 253 | * ) ;; |
| 254 | esac |
| 255 | ;; |
| 256 | |
| 257 | x86_64-*-linux*) gdb_target=x86-64linux |
| 258 | build_gdbserver=yes |
| 259 | ;; |
| 260 | |
| 261 | # OBSOLETE z8k-*-coff*) gdb_target=z8k ;; |
| 262 | |
| 263 | esac |
| 264 | |
| 265 | |
| 266 | # map GDB target onto multi-arch support |
| 267 | |
| 268 | case "${gdb_target}" in |
| 269 | d10v) gdb_multi_arch=yes ;; |
| 270 | m68hc11) gdb_multi_arch=yes ;; |
| 271 | mn10300) gdb_multi_arch=yes ;; |
| 272 | x86-64linux) gdb_multi_arch=yes ;; |
| 273 | v850) gdb_multi_arch=yes ;; |
| 274 | xstormy16) gdb_multi_arch=yes ;; |
| 275 | mcore) gdb_multi_arch=yes ;; |
| 276 | esac |
| 277 | |
| 278 | # map target onto default OS ABI |
| 279 | |
| 280 | case "${target}" in |
| 281 | *-*-linux*) gdb_osabi=GDB_OSABI_LINUX ;; |
| 282 | *-*-gnu*) gdb_osabi=GDB_OSABI_HURD ;; |
| 283 | *-*-solaris*) gdb_osabi=GDB_OSABI_SOLARIS ;; |
| 284 | esac |