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