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