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