| 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_obs target-specific object files to use |
| 6 | # gdb_sim simulator library for target |
| 7 | # gdb_osabi default OS ABI to use with target |
| 8 | # build_gdbserver set to "yes" if gdbserver supports target |
| 9 | |
| 10 | # NOTE: Every file added to a gdb_target_obs variable for any target here |
| 11 | # must also be added to either ALL_TARGET_OBS or ALL_64_TARGET_OBS |
| 12 | # in Makefile.in! |
| 13 | |
| 14 | case $targ in |
| 15 | d10v-*-* | \ |
| 16 | hppa*-*-hiux* | \ |
| 17 | i[34567]86-ncr-* | \ |
| 18 | m68*-cisco*-* | \ |
| 19 | m68*-tandem-* | \ |
| 20 | m68*-*-os68k* | \ |
| 21 | mips*-*-pe | \ |
| 22 | rs6000-*-lynxos* | \ |
| 23 | sh*-*-pe | \ |
| 24 | null) |
| 25 | echo "*** Configuration $targ is obsolete." >&2 |
| 26 | echo "*** Support has been REMOVED." >&2 |
| 27 | exit 1 |
| 28 | ;; |
| 29 | esac |
| 30 | |
| 31 | # map target info into gdb names. |
| 32 | |
| 33 | case "${targ}" in |
| 34 | aarch64*-*-elf) |
| 35 | # Target: AArch64 embedded system |
| 36 | gdb_target_obs="aarch64-tdep.o aarch64-newlib-tdep.o" |
| 37 | ;; |
| 38 | |
| 39 | aarch64*-*-linux*) |
| 40 | # Target: AArch64 linux |
| 41 | gdb_target_obs="aarch64-tdep.o aarch64-linux-tdep.o \ |
| 42 | glibc-tdep.o linux-tdep.o solib-svr4.o \ |
| 43 | symfile-mem.o" |
| 44 | build_gdbserver=yes |
| 45 | ;; |
| 46 | |
| 47 | alpha*-*-osf*) |
| 48 | # Target: Little-endian Alpha running OSF/1 |
| 49 | gdb_target_obs="alpha-tdep.o alpha-osf1-tdep.o alpha-mdebug-tdep.o" |
| 50 | ;; |
| 51 | alpha*-*-linux*) |
| 52 | # Target: Little-endian Alpha running Linux |
| 53 | gdb_target_obs="alpha-tdep.o alpha-mdebug-tdep.o alpha-linux-tdep.o \ |
| 54 | linux-tdep.o solib-svr4.o" |
| 55 | ;; |
| 56 | alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu) |
| 57 | # Target: FreeBSD/alpha |
| 58 | gdb_target_obs="alpha-tdep.o alpha-mdebug-tdep.o alphabsd-tdep.o \ |
| 59 | alphafbsd-tdep.o solib-svr4.o" |
| 60 | ;; |
| 61 | alpha*-*-netbsd* | alpha*-*-knetbsd*-gnu) |
| 62 | # Target: NetBSD/alpha |
| 63 | gdb_target_obs="alpha-tdep.o alpha-mdebug-tdep.o alphabsd-tdep.o \ |
| 64 | alphanbsd-tdep.o nbsd-tdep.o solib-svr4.o" |
| 65 | ;; |
| 66 | alpha*-*-openbsd*) |
| 67 | # Target: OpenBSD/alpha |
| 68 | gdb_target_obs="alpha-tdep.o alpha-mdebug-tdep.o alphabsd-tdep.o \ |
| 69 | alphanbsd-tdep.o alphaobsd-tdep.o nbsd-tdep.o \ |
| 70 | obsd-tdep.o solib-svr4.o" |
| 71 | ;; |
| 72 | alpha*-*-*) |
| 73 | # Target: Alpha |
| 74 | gdb_target_obs="alpha-tdep.o" |
| 75 | ;; |
| 76 | |
| 77 | am33_2.0*-*-linux*) |
| 78 | # Target: Matsushita mn10300 (AM33) running Linux |
| 79 | gdb_target_obs="mn10300-tdep.o mn10300-linux-tdep.o linux-tdep.o \ |
| 80 | solib-svr4.o" |
| 81 | ;; |
| 82 | |
| 83 | arm*-wince-pe | arm*-*-mingw32ce*) |
| 84 | # Target: ARM based machine running Windows CE (win32) |
| 85 | gdb_target_obs="arm-tdep.o arm-wince-tdep.o" |
| 86 | build_gdbserver=yes |
| 87 | ;; |
| 88 | arm*-*-linux*) |
| 89 | # Target: ARM based machine running GNU/Linux |
| 90 | gdb_target_obs="arm-tdep.o arm-linux-tdep.o glibc-tdep.o \ |
| 91 | solib-svr4.o symfile-mem.o linux-tdep.o" |
| 92 | build_gdbserver=yes |
| 93 | ;; |
| 94 | arm*-*-netbsd* | arm*-*-knetbsd*-gnu) |
| 95 | # Target: NetBSD/arm |
| 96 | gdb_target_obs="arm-tdep.o armnbsd-tdep.o solib-svr4.o" |
| 97 | ;; |
| 98 | arm*-*-openbsd*) |
| 99 | # Target: OpenBSD/arm |
| 100 | gdb_target_obs="arm-tdep.o armbsd-tdep.o armobsd-tdep.o obsd-tdep.o \ |
| 101 | solib-svr4.o" |
| 102 | ;; |
| 103 | arm*-*-symbianelf*) |
| 104 | # Target: SymbianOS/arm |
| 105 | gdb_target_obs="arm-tdep.o arm-symbian-tdep.o" |
| 106 | ;; |
| 107 | arm*-*-*) |
| 108 | # Target: ARM embedded system |
| 109 | gdb_target_obs="arm-tdep.o" |
| 110 | gdb_sim=../sim/arm/libsim.a |
| 111 | ;; |
| 112 | |
| 113 | avr-*-*) |
| 114 | # Target: AVR |
| 115 | gdb_target_obs="avr-tdep.o" |
| 116 | gdb_sim=../sim/avr/libsim.a |
| 117 | ;; |
| 118 | |
| 119 | bfin-*-*linux*) |
| 120 | # Target: Blackfin Linux |
| 121 | gdb_target_obs="bfin-tdep.o bfin-linux-tdep.o linux-tdep.o" |
| 122 | gdb_sim=../sim/bfin/libsim.a |
| 123 | build_gdbserver=yes |
| 124 | ;; |
| 125 | bfin-*-*) |
| 126 | # Target: Blackfin processor |
| 127 | gdb_target_obs="bfin-tdep.o" |
| 128 | gdb_sim=../sim/bfin/libsim.a |
| 129 | ;; |
| 130 | |
| 131 | cris*) |
| 132 | # Target: CRIS |
| 133 | gdb_target_obs="cris-tdep.o solib-svr4.o" |
| 134 | ;; |
| 135 | |
| 136 | frv-*-*) |
| 137 | # Target: Fujitsu FRV processor |
| 138 | gdb_target_obs="frv-tdep.o frv-linux-tdep.o linux-tdep.o solib-frv.o" |
| 139 | gdb_sim=../sim/frv/libsim.a |
| 140 | ;; |
| 141 | |
| 142 | moxie-*-elf) |
| 143 | gdb_target_obs="moxie-tdep.o" |
| 144 | gdb_sim=../sim/moxie/libsim.a |
| 145 | ;; |
| 146 | |
| 147 | h8300-*-*) |
| 148 | # Target: H8300 with HMS monitor and H8 simulator |
| 149 | gdb_target_obs="h8300-tdep.o monitor.o dsrec.o" |
| 150 | gdb_sim=../sim/h8300/libsim.a |
| 151 | ;; |
| 152 | |
| 153 | hppa*-*-hpux*) |
| 154 | # Target: HP PA-RISC running hpux |
| 155 | gdb_target_obs="hppa-tdep.o hppa-hpux-tdep.o solib-som.o solib-pa64.o" |
| 156 | ;; |
| 157 | hppa*-*-linux*) |
| 158 | # Target: HP PA-RISC running Linux |
| 159 | gdb_target_obs="hppa-tdep.o hppa-linux-tdep.o glibc-tdep.o \ |
| 160 | linux-tdep.o solib-svr4.o symfile-mem.o" |
| 161 | ;; |
| 162 | hppa*-*-netbsd*) |
| 163 | # Target: NetBSD/hppa |
| 164 | gdb_target_obs="hppa-tdep.o hppabsd-tdep.o hppanbsd-tdep.o solib-svr4.o" |
| 165 | ;; |
| 166 | hppa*-*-openbsd*) |
| 167 | # Target: OpenBSD/hppa |
| 168 | gdb_target_obs="hppa-tdep.o hppabsd-tdep.o hppaobsd-tdep.o solib-svr4.o" |
| 169 | ;; |
| 170 | hppa*-*-*) |
| 171 | # Target: HP PA-RISC |
| 172 | gdb_target_obs="hppa-tdep.o" |
| 173 | ;; |
| 174 | |
| 175 | i[34567]86-*-darwin*) |
| 176 | # Target: Darwin/i386 |
| 177 | gdb_target_obs="i386-tdep.o i387-tdep.o \ |
| 178 | i386-darwin-tdep.o solib-darwin.o" |
| 179 | if test "x$enable_64_bit_bfd" = "xyes"; then |
| 180 | # Target: GNU/Linux x86-64 |
| 181 | gdb_target_obs="amd64-tdep.o amd64-darwin-tdep.o ${gdb_target_obs}" |
| 182 | fi |
| 183 | ;; |
| 184 | i[34567]86-*-dicos*) |
| 185 | # Target: DICOS/i386 |
| 186 | gdb_target_obs="i386-tdep.o i387-tdep.o dicos-tdep.o i386-dicos-tdep.o" |
| 187 | ;; |
| 188 | i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu) |
| 189 | # Target: FreeBSD/i386 |
| 190 | gdb_target_obs="i386-tdep.o i387-tdep.o i386bsd-tdep.o i386fbsd-tdep.o \ |
| 191 | bsd-uthread.o solib-svr4.o" |
| 192 | ;; |
| 193 | i[34567]86-*-netbsd* | i[34567]86-*-knetbsd*-gnu) |
| 194 | # Target: NetBSD/i386 |
| 195 | gdb_target_obs="i386-tdep.o i387-tdep.o i386bsd-tdep.o i386nbsd-tdep.o \ |
| 196 | nbsd-tdep.o solib-svr4.o" |
| 197 | ;; |
| 198 | i[34567]86-*-openbsd*) |
| 199 | # Target: OpenBSD/i386 |
| 200 | gdb_target_obs="i386-tdep.o i387-tdep.o i386bsd-tdep.o i386obsd-tdep.o \ |
| 201 | bsd-uthread.o solib-svr4.o" |
| 202 | ;; |
| 203 | i[34567]86-*-nto*) |
| 204 | # Target: Intel 386 running qnx6. |
| 205 | gdb_target_obs="i386-tdep.o i387-tdep.o solib-svr4.o \ |
| 206 | i386-nto-tdep.o nto-tdep.o" |
| 207 | build_gdbserver=yes |
| 208 | ;; |
| 209 | i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*) |
| 210 | # Target: Solaris x86_64 |
| 211 | gdb_target_obs="i386-tdep.o i387-tdep.o amd64-tdep.o amd64-sol2-tdep.o \ |
| 212 | i386-sol2-tdep.o sol2-tdep.o solib-svr4.o" |
| 213 | ;; |
| 214 | i[34567]86-*-solaris*) |
| 215 | # Target: Solaris x86 |
| 216 | gdb_target_obs="i386-tdep.o i387-tdep.o i386-sol2-tdep.o sol2-tdep.o \ |
| 217 | solib-svr4.o" |
| 218 | ;; |
| 219 | i[34567]86-*-linux*) |
| 220 | # Target: Intel 386 running GNU/Linux |
| 221 | gdb_target_obs="i386-tdep.o i386-linux-tdep.o glibc-tdep.o i387-tdep.o \ |
| 222 | solib-svr4.o symfile-mem.o \ |
| 223 | linux-tdep.o linux-record.o" |
| 224 | if test "x$enable_64_bit_bfd" = "xyes"; then |
| 225 | # Target: GNU/Linux x86-64 |
| 226 | gdb_target_obs="amd64-tdep.o amd64-linux-tdep.o ${gdb_target_obs}" |
| 227 | fi |
| 228 | build_gdbserver=yes |
| 229 | ;; |
| 230 | i[34567]86-*-gnu*) |
| 231 | # Target: Intel 386 running the GNU Hurd |
| 232 | gdb_target_obs="i386-tdep.o i387-tdep.o i386gnu-tdep.o solib-svr4.o" |
| 233 | ;; |
| 234 | i[34567]86-*-cygwin*) |
| 235 | # Target: Intel 386 running win32 |
| 236 | gdb_target_obs="i386-tdep.o i386-cygwin-tdep.o i387-tdep.o \ |
| 237 | windows-tdep.o" |
| 238 | build_gdbserver=yes |
| 239 | ;; |
| 240 | i[34567]86-*-mingw32*) |
| 241 | # Target: Intel 386 running win32 |
| 242 | gdb_target_obs="i386-tdep.o i386-cygwin-tdep.o i387-tdep.o \ |
| 243 | windows-tdep.o" |
| 244 | build_gdbserver=yes |
| 245 | ;; |
| 246 | i[34567]86-*-*) |
| 247 | # Target: i386 |
| 248 | gdb_target_obs="i386-tdep.o i387-tdep.o" |
| 249 | ;; |
| 250 | |
| 251 | ia64-*-hpux*) |
| 252 | # Target: Intel IA-64 running HP-UX |
| 253 | gdb_target_obs="ia64-tdep.o ia64-hpux-tdep.o" |
| 254 | ;; |
| 255 | ia64-*-linux*) |
| 256 | # Target: Intel IA-64 running GNU/Linux |
| 257 | gdb_target_obs="ia64-tdep.o ia64-linux-tdep.o linux-tdep.o \ |
| 258 | solib-svr4.o symfile-mem.o" |
| 259 | build_gdbserver=yes |
| 260 | ;; |
| 261 | ia64-*-*vms*) |
| 262 | # Target: Intel IA-64 running OpenVMS |
| 263 | gdb_target_obs="ia64-tdep.o ia64-vms-tdep.o" |
| 264 | ;; |
| 265 | ia64*-*-*) |
| 266 | # Target: Intel IA-64 |
| 267 | gdb_target_obs="ia64-tdep.o" |
| 268 | ;; |
| 269 | |
| 270 | iq2000-*-*) |
| 271 | gdb_target_obs="iq2000-tdep.o" |
| 272 | gdb_sim=../sim/iq2000/libsim.a |
| 273 | ;; |
| 274 | |
| 275 | lm32-*-*) |
| 276 | gdb_target_obs="lm32-tdep.o" |
| 277 | gdb_sim=../sim/lm32/libsim.a |
| 278 | ;; |
| 279 | |
| 280 | m32c-*-*) |
| 281 | # Target: Renesas M32C family |
| 282 | gdb_target_obs="m32c-tdep.o" |
| 283 | # There may also be a SID / CGEN simulator for this, |
| 284 | # but we do have DJ Delorie's mini-sim. |
| 285 | gdb_sim=../sim/m32c/libsim.a |
| 286 | ;; |
| 287 | |
| 288 | m32r*-*-linux*) |
| 289 | # Target: Renesas M32R running GNU/Linux |
| 290 | gdb_target_obs="m32r-tdep.o m32r-linux-tdep.o remote-m32r-sdi.o \ |
| 291 | glibc-tdep.o solib-svr4.o symfile-mem.o \ |
| 292 | linux-tdep.o" |
| 293 | gdb_sim=../sim/m32r/libsim.a |
| 294 | build_gdbserver=yes |
| 295 | ;; |
| 296 | m32r*-*-*) |
| 297 | # Target: Renesas m32r processor |
| 298 | gdb_target_obs="m32r-tdep.o monitor.o m32r-rom.o dsrec.o \ |
| 299 | remote-m32r-sdi.o" |
| 300 | gdb_sim=../sim/m32r/libsim.a |
| 301 | ;; |
| 302 | |
| 303 | m68hc11*-*-*|m6811*-*-*) |
| 304 | # Target: Motorola 68HC11 processor |
| 305 | gdb_target_obs="m68hc11-tdep.o" |
| 306 | gdb_sim=../sim/m68hc11/libsim.a |
| 307 | ;; |
| 308 | |
| 309 | m68*-*-aout* | m68*-*-coff* | m68*-*-elf* | m68*-*-rtems* | m68*-*-uclinux* | \ |
| 310 | fido-*-elf*) |
| 311 | # Target: Motorola m68k embedded (e.g. bug monitors) |
| 312 | gdb_target_obs="m68k-tdep.o monitor.o dbug-rom.o dsrec.o" |
| 313 | ;; |
| 314 | m68*-*-linux*) |
| 315 | # Target: Motorola m68k with a.out and ELF |
| 316 | gdb_target_obs="m68k-tdep.o m68klinux-tdep.o solib-svr4.o \ |
| 317 | linux-tdep.o glibc-tdep.o symfile-mem.o" |
| 318 | build_gdbserver=yes |
| 319 | ;; |
| 320 | m68*-*-netbsd* | m68*-*-knetbsd*-gnu) |
| 321 | # Target: NetBSD/m68k |
| 322 | gdb_target_obs="m68k-tdep.o m68kbsd-tdep.o solib-svr4.o" |
| 323 | ;; |
| 324 | m68*-*-openbsd*) |
| 325 | # Target: OpenBSD/m68k |
| 326 | gdb_target_obs="m68k-tdep.o m68kbsd-tdep.o solib-svr4.o" |
| 327 | ;; |
| 328 | |
| 329 | m88*-*-openbsd*) |
| 330 | # Target: OpenBSD/m88k |
| 331 | gdb_target_obs="m88k-tdep.o" |
| 332 | ;; |
| 333 | |
| 334 | mep-*-*) |
| 335 | # Target: Toshiba Media Processor (MEP) |
| 336 | gdb_target_obs="mep-tdep.o" |
| 337 | # No sim needed. Target uses SID. |
| 338 | ;; |
| 339 | |
| 340 | microblaze*-linux-*|microblaze*-*-linux*) |
| 341 | # Target: Xilinx MicroBlaze running Linux |
| 342 | gdb_target_obs="microblaze-tdep.o microblaze-linux-tdep.o microblaze-rom.o \ |
| 343 | monitor.o dsrec.o solib-svr4.o symfile-mem.o linux-tdep.o" |
| 344 | gdb_sim=../sim/microblaze/libsim.a |
| 345 | ;; |
| 346 | microblaze*-*-*) |
| 347 | # Target: Xilinx MicroBlaze running standalone |
| 348 | gdb_target_obs="microblaze-tdep.o microblaze-rom.o monitor.o dsrec.o" |
| 349 | gdb_sim=../sim/microblaze/libsim.a |
| 350 | ;; |
| 351 | |
| 352 | mips*-sgi-irix5*) |
| 353 | # Target: MIPS SGI running Irix 5 |
| 354 | gdb_target_obs="mips-tdep.o mips-irix-tdep.o solib-irix.o" |
| 355 | ;; |
| 356 | mips*-sgi-irix6*) |
| 357 | # Target: MIPS SGI running Irix 6.x |
| 358 | gdb_target_obs="mips-tdep.o mips-irix-tdep.o solib-irix.o" |
| 359 | ;; |
| 360 | mips*-*-linux*) |
| 361 | # Target: Linux/MIPS |
| 362 | gdb_target_obs="mips-tdep.o mips-linux-tdep.o glibc-tdep.o \ |
| 363 | solib-svr4.o symfile-mem.o linux-tdep.o" |
| 364 | gdb_sim=../sim/mips/libsim.a |
| 365 | build_gdbserver=yes |
| 366 | ;; |
| 367 | mips*-*-netbsd* | mips*-*-knetbsd*-gnu) |
| 368 | # Target: MIPS running NetBSD |
| 369 | gdb_target_obs="mips-tdep.o mipsnbsd-tdep.o solib-svr4.o nbsd-tdep.o" |
| 370 | gdb_sim=../sim/mips/libsim.a |
| 371 | ;; |
| 372 | mips64*-*-openbsd*) |
| 373 | # Target: OpenBSD/mips64 |
| 374 | gdb_target_obs="mips-tdep.o mips64obsd-tdep.o solib-svr4.o" |
| 375 | ;; |
| 376 | mips*-*-elf) |
| 377 | # Target: MIPS ELF |
| 378 | gdb_target_obs="mips-tdep.o remote-mips.o" |
| 379 | gdb_sim=../sim/mips/libsim.a |
| 380 | ;; |
| 381 | mips*-*-*) |
| 382 | # Target: MIPS |
| 383 | gdb_target_obs="mips-tdep.o" |
| 384 | gdb_sim=../sim/mips/libsim.a |
| 385 | ;; |
| 386 | |
| 387 | mn10300-*-*) |
| 388 | # Target: Matsushita mn10300 |
| 389 | gdb_target_obs="mn10300-tdep.o" |
| 390 | gdb_sim=../sim/mn10300/libsim.a |
| 391 | ;; |
| 392 | |
| 393 | mt-*-*) |
| 394 | # Target: Morpho Technologies ms1 processor |
| 395 | gdb_target_obs="mt-tdep.o" |
| 396 | ;; |
| 397 | |
| 398 | powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu) |
| 399 | # Target: NetBSD/powerpc |
| 400 | gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppcnbsd-tdep.o \ |
| 401 | solib-svr4.o \ |
| 402 | ravenscar-thread.o ppc-ravenscar-thread.o" |
| 403 | gdb_sim=../sim/ppc/libsim.a |
| 404 | ;; |
| 405 | powerpc-*-openbsd*) |
| 406 | # Target: OpenBSD/powerpc |
| 407 | gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppcobsd-tdep.o \ |
| 408 | solib-svr4.o \ |
| 409 | ravenscar-thread.o ppc-ravenscar-thread.o" |
| 410 | ;; |
| 411 | powerpc-*-aix* | rs6000-*-*) |
| 412 | # Target: PowerPC running AIX |
| 413 | gdb_target_obs="rs6000-tdep.o rs6000-aix-tdep.o xcoffread.o \ |
| 414 | ppc-sysv-tdep.o solib-svr4.o \ |
| 415 | ravenscar-thread.o ppc-ravenscar-thread.o" |
| 416 | ;; |
| 417 | powerpc-*-linux* | powerpc64-*-linux*) |
| 418 | # Target: PowerPC running Linux |
| 419 | gdb_target_obs="rs6000-tdep.o ppc-linux-tdep.o ppc-sysv-tdep.o \ |
| 420 | ppc64-tdep.o solib-svr4.o solib-spu.o \ |
| 421 | spu-multiarch.o \ |
| 422 | glibc-tdep.o symfile-mem.o linux-tdep.o \ |
| 423 | ravenscar-thread.o ppc-ravenscar-thread.o" |
| 424 | gdb_sim=../sim/ppc/libsim.a |
| 425 | build_gdbserver=yes |
| 426 | ;; |
| 427 | powerpc-*-lynx*178) |
| 428 | # Target: PowerPC running Lynx178. |
| 429 | gdb_target_obs="rs6000-tdep.o rs6000-lynx178-tdep.o \ |
| 430 | xcoffread.o monitor.o dsrec.o ppc-sysv-tdep.o \ |
| 431 | ravenscar-thread.o ppc-ravenscar-thread.o" |
| 432 | ;; |
| 433 | powerpc*-*-*) |
| 434 | # Target: PowerPC running eabi |
| 435 | gdb_target_obs="rs6000-tdep.o monitor.o dsrec.o ppcbug-rom.o \ |
| 436 | dink32-rom.o ppc-sysv-tdep.o solib-svr4.o \ |
| 437 | ravenscar-thread.o ppc-ravenscar-thread.o" |
| 438 | if test -f ../sim/ppc/Makefile; then |
| 439 | gdb_sim=../sim/ppc/libsim.a |
| 440 | fi |
| 441 | ;; |
| 442 | |
| 443 | s390*-*-*) |
| 444 | # Target: S390 running Linux |
| 445 | gdb_target_obs="s390-tdep.o solib-svr4.o linux-tdep.o" |
| 446 | build_gdbserver=yes |
| 447 | ;; |
| 448 | |
| 449 | rl78-*-elf) |
| 450 | # Target: Renesas rl78 |
| 451 | gdb_target_obs="rl78-tdep.o" |
| 452 | gdb_sim=../sim/rl78/libsim.a |
| 453 | ;; |
| 454 | |
| 455 | rx-*-elf) |
| 456 | # Target: Renesas RX |
| 457 | gdb_target_obs="rx-tdep.o" |
| 458 | gdb_sim=../sim/rx/libsim.a |
| 459 | ;; |
| 460 | |
| 461 | score-*-*) |
| 462 | # Target: S+core embedded system |
| 463 | gdb_target_obs="score-tdep.o" |
| 464 | if test -f ../sim/score/Makefile; then |
| 465 | gdb_sim=../sim/score/libsim.a |
| 466 | fi |
| 467 | build_gdbserver=yes |
| 468 | ;; |
| 469 | |
| 470 | sh*-*-linux*) |
| 471 | # Target: GNU/Linux Super-H |
| 472 | gdb_target_obs="sh-tdep.o sh64-tdep.o sh-linux-tdep.o monitor.o \ |
| 473 | dsrec.o solib-svr4.o symfile-mem.o \ |
| 474 | glibc-tdep.o linux-tdep.o" |
| 475 | gdb_sim=../sim/sh/libsim.a |
| 476 | build_gdbserver=yes |
| 477 | ;; |
| 478 | sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu) |
| 479 | # Target: NetBSD/sh |
| 480 | gdb_target_obs="sh-tdep.o shnbsd-tdep.o solib-svr4.o" |
| 481 | gdb_sim=../sim/sh/libsim.a |
| 482 | ;; |
| 483 | sh*-*-openbsd*) |
| 484 | # Target: OpenBSD/sh |
| 485 | gdb_target_obs="sh-tdep.o sh64-tdep.o shnbsd-tdep.o solib-svr4.o" |
| 486 | ;; |
| 487 | sh64-*-elf*) |
| 488 | # Target: Renesas/Super-H 64 bit with simulator |
| 489 | gdb_target_obs="sh-tdep.o sh64-tdep.o" |
| 490 | gdb_sim=../sim/sh64/libsim.a |
| 491 | ;; |
| 492 | sh*) |
| 493 | # Target: Embedded Renesas Super-H with ICE and simulator |
| 494 | gdb_target_obs="sh-tdep.o sh64-tdep.o monitor.o dsrec.o" |
| 495 | gdb_sim=../sim/sh/libsim.a |
| 496 | ;; |
| 497 | |
| 498 | sparc-*-linux*) |
| 499 | # Target: GNU/Linux SPARC |
| 500 | gdb_target_obs="sparc-tdep.o sparc-sol2-tdep.o sol2-tdep.o \ |
| 501 | sparc-linux-tdep.o solib-svr4.o symfile-mem.o \ |
| 502 | linux-tdep.o \ |
| 503 | ravenscar-thread.o sparc-ravenscar-thread.o" |
| 504 | if test "x$enable_64_bit_bfd" = "xyes"; then |
| 505 | # Target: GNU/Linux UltraSPARC |
| 506 | gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o \ |
| 507 | sparc64-linux-tdep.o ${gdb_target_obs}" |
| 508 | fi |
| 509 | build_gdbserver=yes |
| 510 | ;; |
| 511 | sparc64-*-linux*) |
| 512 | # Target: GNU/Linux UltraSPARC |
| 513 | gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o sol2-tdep.o \ |
| 514 | sparc64-linux-tdep.o sparc-tdep.o sparc-sol2-tdep.o \ |
| 515 | sparc-linux-tdep.o solib-svr4.o linux-tdep.o \ |
| 516 | ravenscar-thread.o sparc-ravenscar-thread.o" |
| 517 | build_gdbserver=yes |
| 518 | ;; |
| 519 | sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu) |
| 520 | # Target: FreeBSD/sparc64 |
| 521 | gdb_target_obs="sparc-tdep.o sparc64-tdep.o sparc64fbsd-tdep.o \ |
| 522 | solib-svr4.o \ |
| 523 | ravenscar-thread.o sparc-ravenscar-thread.o" |
| 524 | ;; |
| 525 | sparc-*-netbsd* | sparc-*-knetbsd*-gnu) |
| 526 | # Target: NetBSD/sparc |
| 527 | gdb_target_obs="sparc-tdep.o sparcnbsd-tdep.o nbsd-tdep.o \ |
| 528 | solib-svr4.o \ |
| 529 | ravenscar-thread.o sparc-ravenscar-thread.o" |
| 530 | ;; |
| 531 | sparc64-*-netbsd* | sparc64-*-knetbsd*-gnu) |
| 532 | # Target: NetBSD/sparc64 |
| 533 | gdb_target_obs="sparc64-tdep.o sparc64nbsd-tdep.o sparc-tdep.o \ |
| 534 | sparcnbsd-tdep.o nbsd-tdep.o solib-svr4.o \ |
| 535 | ravenscar-thread.o sparc-ravenscar-thread.o" |
| 536 | ;; |
| 537 | sparc-*-openbsd*) |
| 538 | # Target: OpenBSD/sparc |
| 539 | gdb_target_obs="sparc-tdep.o sparcnbsd-tdep.o sparcobsd-tdep.o \ |
| 540 | nbsd-tdep.o obsd-tdep.o bsd-uthread.o solib-svr4.o \ |
| 541 | ravenscar-thread.o sparc-ravenscar-thread.o" |
| 542 | ;; |
| 543 | sparc64-*-openbsd*) |
| 544 | # Target: OpenBSD/sparc64 |
| 545 | gdb_target_obs="sparc64-tdep.o sparc64nbsd-tdep.o sparc64obsd-tdep.o \ |
| 546 | sparc-tdep.o sparcnbsd-tdep.o sparcobsd-tdep.o \ |
| 547 | nbsd-tdep.o obsd-tdep.o bsd-uthread.o solib-svr4.o \ |
| 548 | ravenscar-thread.o sparc-ravenscar-thread.o" |
| 549 | ;; |
| 550 | sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*) |
| 551 | # Target: Solaris SPARC |
| 552 | gdb_target_obs="sparc-tdep.o sparc-sol2-tdep.o sol2-tdep.o \ |
| 553 | solib-svr4.o \ |
| 554 | ravenscar-thread.o sparc-ravenscar-thread.o" |
| 555 | ;; |
| 556 | sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*) |
| 557 | # Target: Solaris UltraSPARC |
| 558 | gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o sparc-tdep.o \ |
| 559 | sparc-sol2-tdep.o sol2-tdep.o solib-svr4.o \ |
| 560 | ravenscar-thread.o sparc-ravenscar-thread.o" |
| 561 | ;; |
| 562 | sparc-*-*) |
| 563 | # Target: SPARC |
| 564 | gdb_target_obs="sparc-tdep.o \ |
| 565 | ravenscar-thread.o sparc-ravenscar-thread.o" |
| 566 | gdb_sim=../sim/erc32/libsim.a |
| 567 | ;; |
| 568 | sparc64-*-*) |
| 569 | # Target: UltraSPARC |
| 570 | gdb_target_obs="sparc-tdep.o sparc64-tdep.o \ |
| 571 | ravenscar-thread.o sparc-ravenscar-thread.o" |
| 572 | ;; |
| 573 | |
| 574 | spu*-*-*) |
| 575 | # Target: Cell BE SPU |
| 576 | gdb_target_obs="spu-tdep.o" |
| 577 | build_gdbserver=yes |
| 578 | ;; |
| 579 | |
| 580 | tic6x-*-*linux) |
| 581 | # Target: GNU/Linux TI C6x |
| 582 | gdb_target_obs="tic6x-tdep.o tic6x-linux-tdep.o solib-dsbt.o \ |
| 583 | glibc-tdep.o linux-tdep.o" |
| 584 | ;; |
| 585 | |
| 586 | tic6x-*-*) |
| 587 | # Target: TI C6X |
| 588 | gdb_target_obs="tic6x-tdep.o" |
| 589 | ;; |
| 590 | |
| 591 | tilegx-*-linux*) |
| 592 | # Target: TILE-Gx |
| 593 | gdb_target_obs="tilegx-tdep.o tilegx-linux-tdep.o solib-svr4.o \ |
| 594 | symfile-mem.o glibc-tdep.o linux-tdep.o" |
| 595 | ;; |
| 596 | |
| 597 | xstormy16-*-*) |
| 598 | # Target: Sanyo Xstormy16a processor |
| 599 | gdb_target_obs="xstormy16-tdep.o" |
| 600 | # No simulator libraries are needed -- target uses SID. |
| 601 | ;; |
| 602 | |
| 603 | v850*-*-elf | v850*-*-rtems*) |
| 604 | # Target: NEC V850 processor |
| 605 | gdb_target_obs="v850-tdep.o" |
| 606 | gdb_sim=../sim/v850/libsim.a |
| 607 | ;; |
| 608 | |
| 609 | vax-*-netbsd* | vax-*-knetbsd*-gnu) |
| 610 | # Target: NetBSD/vax |
| 611 | gdb_target_obs="vax-tdep.o vaxnbsd-tdep.o solib-svr4.o" |
| 612 | ;; |
| 613 | vax-*-openbsd*) |
| 614 | # Target: OpenBSD/vax |
| 615 | gdb_target_obs="vax-tdep.o vaxobsd-tdep.o" |
| 616 | ;; |
| 617 | vax-*-*) |
| 618 | # Target: VAX running 4.2BSD or Ultrix |
| 619 | gdb_target_obs="vax-tdep.o" |
| 620 | ;; |
| 621 | |
| 622 | x86_64-*-darwin*) |
| 623 | # Target: Darwin/x86-64 |
| 624 | gdb_target_obs="amd64-tdep.o i386-tdep.o i387-tdep.o \ |
| 625 | i386-darwin-tdep.o amd64-darwin-tdep.o \ |
| 626 | solib-darwin.o" |
| 627 | ;; |
| 628 | |
| 629 | x86_64-*-dicos*) |
| 630 | # Target: DICOS/x86-64 |
| 631 | gdb_target_obs="amd64-tdep.o i386-tdep.o i387-tdep.o \ |
| 632 | dicos-tdep.o i386-dicos-tdep.o amd64-dicos-tdep.o" |
| 633 | ;; |
| 634 | x86_64-*-linux*) |
| 635 | # Target: GNU/Linux x86-64 |
| 636 | gdb_target_obs="amd64-tdep.o amd64-linux-tdep.o i386-tdep.o \ |
| 637 | i387-tdep.o i386-linux-tdep.o glibc-tdep.o \ |
| 638 | solib-svr4.o symfile-mem.o linux-tdep.o linux-record.o" |
| 639 | build_gdbserver=yes |
| 640 | ;; |
| 641 | x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu) |
| 642 | # Target: FreeBSD/amd64 |
| 643 | gdb_target_obs="amd64-tdep.o amd64fbsd-tdep.o i386-tdep.o \ |
| 644 | i387-tdep.o i386bsd-tdep.o i386fbsd-tdep.o \ |
| 645 | bsd-uthread.o solib-svr4.o" |
| 646 | ;; |
| 647 | x86_64-*-mingw*) |
| 648 | # Target: MingW/amd64 |
| 649 | gdb_target_obs="amd64-tdep.o amd64-windows-tdep.o \ |
| 650 | i386-tdep.o i386-cygwin-tdep.o i387-tdep.o \ |
| 651 | windows-tdep.o" |
| 652 | build_gdbserver=yes |
| 653 | ;; |
| 654 | x86_64-*-netbsd* | x86_64-*-knetbsd*-gnu) |
| 655 | # Target: NetBSD/amd64 |
| 656 | gdb_target_obs="amd64-tdep.o amd64nbsd-tdep.o i386-tdep.o i387-tdep.o \ |
| 657 | nbsd-tdep.o solib-svr4.o" |
| 658 | ;; |
| 659 | x86_64-*-openbsd*) |
| 660 | # Target: OpenBSD/amd64 |
| 661 | gdb_target_obs="amd64-tdep.o amd64obsd-tdep.o i386-tdep.o \ |
| 662 | i387-tdep.o i386bsd-tdep.o i386obsd-tdep.o \ |
| 663 | bsd-uthread.o solib-svr4.o" |
| 664 | ;; |
| 665 | xtensa*-*-linux*) gdb_target=linux |
| 666 | # Target: GNU/Linux Xtensa |
| 667 | gdb_target_obs="xtensa-tdep.o xtensa-config.o xtensa-linux-tdep.o \ |
| 668 | solib-svr4.o symfile-mem.o linux-tdep.o" |
| 669 | build_gdbserver=yes |
| 670 | ;; |
| 671 | xtensa*) |
| 672 | # Target: Tensilica Xtensa processors |
| 673 | gdb_target_obs="xtensa-tdep.o xtensa-config.o solib-svr4.o" |
| 674 | ;; |
| 675 | |
| 676 | esac |
| 677 | |
| 678 | # map target onto default OS ABI |
| 679 | |
| 680 | case "${targ}" in |
| 681 | *-*-freebsd* | *-*-kfreebsd*-gnu) |
| 682 | gdb_osabi=GDB_OSABI_FREEBSD_ELF ;; |
| 683 | *-*-linux* | *-*-uclinux*) |
| 684 | gdb_osabi=GDB_OSABI_LINUX ;; |
| 685 | *-*-nto*) gdb_osabi=GDB_OSABI_QNXNTO ;; |
| 686 | m68*-*-openbsd* | m88*-*-openbsd* | vax-*-openbsd*) ;; |
| 687 | *-*-openbsd*) gdb_osabi=GDB_OSABI_OPENBSD_ELF ;; |
| 688 | *-*-solaris*) gdb_osabi=GDB_OSABI_SOLARIS ;; |
| 689 | *-*-*-gnu*) ;; # prevent non-GNU kernels to match the Hurd rule below |
| 690 | *-*-gnu*) gdb_osabi=GDB_OSABI_HURD ;; |
| 691 | *-*-mingw32ce*) gdb_osabi=GDB_OSABI_WINCE ;; |
| 692 | *-*-mingw* | *-*-cygwin*) |
| 693 | gdb_osabi=GDB_OSABI_CYGWIN ;; |
| 694 | *-*-dicos*) gdb_osabi=GDB_OSABI_DICOS ;; |
| 695 | *-*-symbianelf*) |
| 696 | gdb_osabi=GDB_OSABI_SYMBIAN ;; |
| 697 | esac |