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