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