1 # Mappings from configurations to GDB target definitions. This is
2 # invoked from the autoconf generated configure script.
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
10 # NOTE: Every file added to a gdb_target_obs variable for any target here
11 # must also be added to either ALL_TARGET_OBS or ALL_64_TARGET_OBS
25 echo "*** Configuration $targ is obsolete." >&2
26 echo "*** Support has been REMOVED." >&2
31 # map target info into gdb names.
36 # Target: Little-endian Alpha running OSF/1
37 gdb_target_obs="alpha-tdep.o alpha-osf1-tdep.o alpha-mdebug-tdep.o"
40 # Target: Little-endian Alpha running Linux
41 gdb_target_obs="alpha-tdep.o alpha-mdebug-tdep.o alpha-linux-tdep.o \
42 linux-tdep.o solib-svr4.o"
44 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
45 # Target: FreeBSD/alpha
46 gdb_target_obs="alpha-tdep.o alpha-mdebug-tdep.o alphabsd-tdep.o \
47 alphafbsd-tdep.o corelow.o solib-svr4.o"
49 alpha*-*-netbsd* | alpha*-*-knetbsd*-gnu)
50 # Target: NetBSD/alpha
51 gdb_target_obs="alpha-tdep.o alpha-mdebug-tdep.o alphabsd-tdep.o \
52 alphanbsd-tdep.o nbsd-tdep.o corelow.o \
56 # Target: OpenBSD/alpha
57 gdb_target_obs="alpha-tdep.o alpha-mdebug-tdep.o alphabsd-tdep.o \
58 alphanbsd-tdep.o alphaobsd-tdep.o nbsd-tdep.o \
59 obsd-tdep.o corelow.o solib-svr4.o"
63 gdb_target_obs="alpha-tdep.o"
67 # Target: Matsushita mn10300 (AM33) running Linux
68 gdb_target_obs="mn10300-tdep.o mn10300-linux-tdep.o linux-tdep.o \
69 corelow.o solib-svr4.o"
72 arm*-wince-pe | arm*-*-mingw32ce*)
73 # Target: ARM based machine running Windows CE (win32)
74 gdb_target_obs="arm-tdep.o arm-wince-tdep.o corelow.o \
79 # Target: ARM based machine running GNU/Linux
80 gdb_target_obs="arm-tdep.o arm-linux-tdep.o glibc-tdep.o \
81 solib-svr4.o symfile-mem.o corelow.o linux-tdep.o"
84 arm*-*-netbsd* | arm*-*-knetbsd*-gnu)
86 gdb_target_obs="arm-tdep.o armnbsd-tdep.o solib-svr4.o"
90 gdb_target_obs="arm-tdep.o armbsd-tdep.o armobsd-tdep.o obsd-tdep.o \
91 corelow.o solib-svr4.o"
94 # Target: SymbianOS/arm
95 gdb_target_obs="arm-tdep.o solib-target.o arm-symbian-tdep.o"
98 # Target: ARM embedded system
99 gdb_target_obs="arm-tdep.o"
100 gdb_sim=../sim/arm/libsim.a
105 gdb_target_obs="avr-tdep.o"
106 gdb_sim=../sim/avr/libsim.a
110 # Target: Blackfin Linux
111 gdb_target_obs="bfin-tdep.o bfin-linux-tdep.o linux-tdep.o"
112 gdb_sim=../sim/bfin/libsim.a
116 # Target: Blackfin processor
117 gdb_target_obs="bfin-tdep.o"
118 gdb_sim=../sim/bfin/libsim.a
123 gdb_target_obs="cris-tdep.o corelow.o solib-svr4.o"
127 # Target: Fujitsu FRV processor
128 gdb_target_obs="frv-tdep.o frv-linux-tdep.o linux-tdep.o \
129 solib-frv.o corelow.o"
130 gdb_sim=../sim/frv/libsim.a
134 gdb_target_obs="moxie-tdep.o"
135 gdb_sim=../sim/moxie/libsim.a
139 # Target: H8300 with HMS monitor and H8 simulator
140 gdb_target_obs="h8300-tdep.o monitor.o dsrec.o"
141 gdb_sim=../sim/h8300/libsim.a
145 # Target: HP PA-RISC running hpux
146 gdb_target_obs="hppa-tdep.o hppa-hpux-tdep.o corelow.o \
147 solib-som.o solib-pa64.o"
150 # Target: HP PA-RISC running Linux
151 gdb_target_obs="hppa-tdep.o hppa-linux-tdep.o glibc-tdep.o \
152 linux-tdep.o solib-svr4.o symfile-mem.o"
155 # Target: NetBSD/hppa
156 gdb_target_obs="hppa-tdep.o hppabsd-tdep.o hppanbsd-tdep.o \
157 corelow.o solib-svr4.o"
160 # Target: OpenBSD/hppa
161 gdb_target_obs="hppa-tdep.o hppabsd-tdep.o hppaobsd-tdep.o \
162 corelow.o solib-svr4.o"
166 gdb_target_obs="hppa-tdep.o"
169 i[34567]86-*-darwin*)
170 # Target: Darwin/i386
171 gdb_target_obs="i386-tdep.o i387-tdep.o \
172 i386-darwin-tdep.o solib-darwin.o"
173 if test "x$enable_64_bit_bfd" = "xyes"; then
174 # Target: GNU/Linux x86-64
175 gdb_target_obs="amd64-tdep.o amd64-darwin-tdep.o ${gdb_target_obs}"
180 gdb_target_obs="i386-tdep.o i387-tdep.o \
181 dicos-tdep.o i386-dicos-tdep.o \
182 corelow.o solib-target.o"
184 i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
185 # Target: FreeBSD/i386
186 gdb_target_obs="i386-tdep.o i387-tdep.o i386bsd-tdep.o i386fbsd-tdep.o \
187 bsd-uthread.o corelow.o solib-svr4.o"
189 i[34567]86-*-netbsd* | i[34567]86-*-knetbsd*-gnu)
190 # Target: NetBSD/i386
191 gdb_target_obs="i386-tdep.o i387-tdep.o i386bsd-tdep.o i386nbsd-tdep.o \
192 nbsd-tdep.o corelow.o solib-svr4.o"
194 i[34567]86-*-openbsd*)
195 # Target: OpenBSD/i386
196 gdb_target_obs="i386-tdep.o i387-tdep.o i386bsd-tdep.o i386obsd-tdep.o \
197 bsd-uthread.o corelow.o solib-svr4.o"
200 # Target: Intel 386 running qnx6.
201 gdb_target_obs="i386-tdep.o i387-tdep.o corelow.o solib-svr4.o \
202 i386-nto-tdep.o nto-tdep.o"
205 i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
206 # Target: Solaris x86_64
207 gdb_target_obs="i386-tdep.o i387-tdep.o amd64-tdep.o amd64-sol2-tdep.o \
208 i386-sol2-tdep.o sol2-tdep.o \
209 corelow.o solib-svr4.o"
211 i[34567]86-*-solaris*)
212 # Target: Solaris x86
213 gdb_target_obs="i386-tdep.o i387-tdep.o i386-sol2-tdep.o sol2-tdep.o \
214 corelow.o solib-svr4.o"
217 # Target: Intel 386 running GNU/Linux
218 gdb_target_obs="i386-tdep.o i386-linux-tdep.o glibc-tdep.o i387-tdep.o \
219 solib-svr4.o symfile-mem.o corelow.o \
220 linux-tdep.o linux-record.o"
221 if test "x$enable_64_bit_bfd" = "xyes"; then
222 # Target: GNU/Linux x86-64
223 gdb_target_obs="amd64-tdep.o amd64-linux-tdep.o ${gdb_target_obs}"
228 # Target: Intel 386 running the GNU Hurd
229 gdb_target_obs="i386-tdep.o i387-tdep.o i386gnu-tdep.o solib-svr4.o"
231 i[34567]86-*-cygwin*)
232 # Target: Intel 386 running win32
233 gdb_target_obs="i386-tdep.o i386-cygwin-tdep.o i387-tdep.o \
234 solib-target.o corelow.o windows-tdep.o"
237 i[34567]86-*-mingw32*)
238 # Target: Intel 386 running win32
239 gdb_target_obs="i386-tdep.o i386-cygwin-tdep.o i387-tdep.o \
240 solib-target.o corelow.o windows-tdep.o"
245 gdb_target_obs="i386-tdep.o i387-tdep.o"
249 # Target: Intel IA-64 running HP-UX
250 gdb_target_obs="ia64-tdep.o ia64-hpux-tdep.o"
253 # Target: Intel IA-64 running GNU/Linux
254 gdb_target_obs="ia64-tdep.o ia64-linux-tdep.o linux-tdep.o \
255 solib-svr4.o symfile-mem.o"
259 # Target: Intel IA-64
260 gdb_target_obs="ia64-tdep.o"
264 gdb_target_obs="iq2000-tdep.o"
265 gdb_sim=../sim/iq2000/libsim.a
269 gdb_target_obs="lm32-tdep.o"
270 gdb_sim=../sim/lm32/libsim.a
274 # Target: Renesas M32C family
275 gdb_target_obs="m32c-tdep.o prologue-value.o"
276 # There may also be a SID / CGEN simulator for this,
277 # but we do have DJ Delorie's mini-sim.
278 gdb_sim=../sim/m32c/libsim.a
282 # Target: Renesas M32R running GNU/Linux
283 gdb_target_obs="m32r-tdep.o m32r-linux-tdep.o remote-m32r-sdi.o \
284 glibc-tdep.o solib-svr4.o symfile-mem.o \
286 gdb_sim=../sim/m32r/libsim.a
290 # Target: Renesas m32r processor
291 gdb_target_obs="m32r-tdep.o monitor.o m32r-rom.o dsrec.o \
293 gdb_sim=../sim/m32r/libsim.a
296 m68hc11*-*-*|m6811*-*-*)
297 # Target: Motorola 68HC11 processor
298 gdb_target_obs="m68hc11-tdep.o"
299 gdb_sim=../sim/m68hc11/libsim.a
302 m68*-*-aout* | m68*-*-coff* | m68*-*-elf* | m68*-*-rtems* | m68*-*-uclinux* | \
304 # Target: Motorola m68k embedded (e.g. bug monitors)
305 gdb_target_obs="m68k-tdep.o monitor.o dbug-rom.o dsrec.o"
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"
313 m68*-*-netbsd* | m68*-*-knetbsd*-gnu)
314 # Target: NetBSD/m68k
315 gdb_target_obs="m68k-tdep.o m68kbsd-tdep.o \
316 corelow.o solib-svr4.o"
319 # Target: OpenBSD/m68k
320 gdb_target_obs="m68k-tdep.o m68kbsd-tdep.o \
321 corelow.o solib-svr4.o"
325 # Target: OpenBSD/m88k
326 gdb_target_obs="m88k-tdep.o corelow.o"
330 # Target: Toshiba Media Processor (MEP)
331 gdb_target_obs="mep-tdep.o prologue-value.o"
332 # No sim needed. Target uses SID.
335 microblaze*-linux-*|microblaze*-*-linux*)
336 # Target: Xilinx MicroBlaze running Linux
337 gdb_target_obs="microblaze-tdep.o microblaze-linux-tdep.o microblaze-rom.o \
338 monitor.o dsrec.o solib-svr4.o corelow.o \
339 symfile-mem.o linux-tdep.o"
340 gdb_sim=../sim/microblaze/libsim.a
343 # Target: Xilinx MicroBlaze running standalone
344 gdb_target_obs="microblaze-tdep.o microblaze-rom.o monitor.o dsrec.o"
345 gdb_sim=../sim/microblaze/libsim.a
349 # Target: MIPS SGI running Irix 5
350 gdb_target_obs="mips-tdep.o mips-irix-tdep.o solib-irix.o"
353 # Target: MIPS SGI running Irix 6.x
354 gdb_target_obs="mips-tdep.o mips-irix-tdep.o solib-irix.o"
358 gdb_target_obs="mips-tdep.o mips-linux-tdep.o glibc-tdep.o \
359 corelow.o solib-svr4.o symfile-mem.o \
361 gdb_sim=../sim/mips/libsim.a
364 mips*-*-netbsd* | mips*-*-knetbsd*-gnu)
365 # Target: MIPS running NetBSD
366 gdb_target_obs="mips-tdep.o mipsnbsd-tdep.o \
367 corelow.o solib-svr4.o nbsd-tdep.o"
368 gdb_sim=../sim/mips/libsim.a
371 # Target: OpenBSD/mips64
372 gdb_target_obs="mips-tdep.o mips64obsd-tdep.o \
373 corelow.o solib-svr4.o"
377 gdb_target_obs="mips-tdep.o remote-mips.o"
378 gdb_sim=../sim/mips/libsim.a
382 gdb_target_obs="mips-tdep.o"
383 gdb_sim=../sim/mips/libsim.a
387 # Target: Matsushita mn10300
388 gdb_target_obs="mn10300-tdep.o"
389 gdb_sim=../sim/mn10300/libsim.a
393 # Target: Morpho Technologies ms1 processor
394 gdb_target_obs="mt-tdep.o"
397 powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu)
398 # Target: NetBSD/powerpc
399 gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppcnbsd-tdep.o \
400 corelow.o solib-svr4.o"
401 gdb_sim=../sim/ppc/libsim.a
404 # Target: OpenBSD/powerpc
405 gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppcobsd-tdep.o \
406 corelow.o solib-svr4.o"
408 powerpc-*-aix* | rs6000-*-*)
409 # Target: PowerPC running AIX
410 gdb_target_obs="rs6000-tdep.o rs6000-aix-tdep.o xcoffread.o \
411 ppc-sysv-tdep.o solib-svr4.o"
413 powerpc-*-linux* | powerpc64-*-linux*)
414 # Target: PowerPC running Linux
415 gdb_target_obs="rs6000-tdep.o ppc-linux-tdep.o ppc-sysv-tdep.o \
416 solib-svr4.o solib-spu.o spu-multiarch.o \
417 corelow.o symfile-mem.o linux-tdep.o"
418 gdb_sim=../sim/ppc/libsim.a
422 # Target: PowerPC running eabi
423 gdb_target_obs="rs6000-tdep.o monitor.o dsrec.o ppcbug-rom.o \
424 dink32-rom.o ppc-sysv-tdep.o solib-svr4.o"
425 if test -f ../sim/ppc/Makefile; then
426 gdb_sim=../sim/ppc/libsim.a
431 # Target: S390 running Linux
432 gdb_target_obs="s390-tdep.o solib-svr4.o linux-tdep.o"
438 gdb_target_obs="rx-tdep.o"
439 gdb_sim=../sim/rx/libsim.a
443 # Target: S+core embedded system
444 gdb_target_obs="score-tdep.o corelow.o"
445 if test -f ../sim/score/Makefile; then
446 gdb_sim=../sim/score/libsim.a
452 # Target: GNU/Linux Super-H
453 gdb_target_obs="sh-tdep.o sh64-tdep.o sh-linux-tdep.o monitor.o \
454 dsrec.o solib-svr4.o symfile-mem.o \
455 glibc-tdep.o corelow.o linux-tdep.o"
456 gdb_sim=../sim/sh/libsim.a
459 sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu)
461 gdb_target_obs="sh-tdep.o shnbsd-tdep.o corelow.o solib-svr4.o"
462 gdb_sim=../sim/sh/libsim.a
466 gdb_target_obs="sh-tdep.o sh64-tdep.o shnbsd-tdep.o \
467 corelow.o solib-svr4.o"
470 # Target: Renesas/Super-H 64 bit with simulator
471 gdb_target_obs="sh-tdep.o sh64-tdep.o"
472 gdb_sim=../sim/sh64/libsim.a
475 # Target: Embedded Renesas Super-H with ICE and simulator
476 gdb_target_obs="sh-tdep.o sh64-tdep.o monitor.o dsrec.o"
477 gdb_sim=../sim/sh/libsim.a
481 # Target: GNU/Linux SPARC
482 gdb_target_obs="sparc-tdep.o sparc-sol2-tdep.o sol2-tdep.o \
483 sparc-linux-tdep.o solib-svr4.o symfile-mem.o \
485 if test "x$enable_64_bit_bfd" = "xyes"; then
486 # Target: GNU/Linux UltraSPARC
487 gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o \
488 sparc64-linux-tdep.o ${gdb_target_obs}"
492 # Target: GNU/Linux UltraSPARC
493 gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o sol2-tdep.o \
494 sparc64-linux-tdep.o sparc-tdep.o sparc-sol2-tdep.o \
495 sparc-linux-tdep.o solib-svr4.o linux-tdep.o"
498 sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu)
499 # Target: FreeBSD/sparc64
500 gdb_target_obs="sparc-tdep.o sparc64-tdep.o sparc64fbsd-tdep.o \
501 corelow.o solib-svr4.o"
503 sparc-*-netbsd* | sparc-*-knetbsd*-gnu)
504 # Target: NetBSD/sparc
505 gdb_target_obs="sparc-tdep.o sparcnbsd-tdep.o nbsd-tdep.o \
506 corelow.o solib-svr4.o"
508 sparc64-*-netbsd* | sparc64-*-knetbsd*-gnu)
509 # Target: NetBSD/sparc64
510 gdb_target_obs="sparc64-tdep.o sparc64nbsd-tdep.o sparc-tdep.o \
511 sparcnbsd-tdep.o nbsd-tdep.o \
512 corelow.o solib-svr4.o"
515 # Target: OpenBSD/sparc
516 gdb_target_obs="sparc-tdep.o sparcnbsd-tdep.o sparcobsd-tdep.o \
517 nbsd-tdep.o obsd-tdep.o bsd-uthread.o \
518 corelow.o solib-svr4.o"
521 # Target: OpenBSD/sparc64
522 gdb_target_obs="sparc64-tdep.o sparc64nbsd-tdep.o sparc64obsd-tdep.o \
523 sparc-tdep.o sparcnbsd-tdep.o sparcobsd-tdep.o \
524 nbsd-tdep.o obsd-tdep.o bsd-uthread.o \
525 corelow.o solib-svr4.o"
527 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
528 # Target: Solaris SPARC
529 gdb_target_obs="sparc-tdep.o sparc-sol2-tdep.o sol2-tdep.o solib-svr4.o"
531 sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*)
532 # Target: Solaris UltraSPARC
533 gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o sparc-tdep.o \
534 sparc-sol2-tdep.o sol2-tdep.o solib-svr4.o"
538 gdb_target_obs="sparc-tdep.o ravenscar-thread.o \
539 ravenscar-sparc-thread.o"
540 gdb_sim=../sim/erc32/libsim.a
544 gdb_target_obs="sparc-tdep.o sparc64-tdep.o"
548 # Target: Cell BE SPU
549 gdb_target_obs="spu-tdep.o"
554 # Target: GNU/Linux TI C6x
555 gdb_target_obs="tic6x-tdep.o tic6x-linux-tdep.o solib-dsbt.o \
556 glibc-tdep.o corelow.o linux-tdep.o"
561 gdb_target_obs="tic6x-tdep.o"
565 # Target: Sanyo Xstormy16a processor
566 gdb_target_obs="xstormy16-tdep.o"
567 # No simulator libraries are needed -- target uses SID.
571 # Target: NEC V850 processor
572 gdb_target_obs="v850-tdep.o"
573 gdb_sim=../sim/v850/libsim.a
576 vax-*-netbsd* | vax-*-knetbsd*-gnu)
578 gdb_target_obs="vax-tdep.o vaxnbsd-tdep.o \
579 corelow.o solib-svr4.o"
582 # Target: OpenBSD/vax
583 gdb_target_obs="vax-tdep.o vaxobsd-tdep.o corelow.o"
586 # Target: VAX running 4.2BSD or Ultrix
587 gdb_target_obs="vax-tdep.o"
591 # Target: Darwin/x86-64
592 gdb_target_obs="amd64-tdep.o i386-tdep.o i387-tdep.o \
593 i386-darwin-tdep.o amd64-darwin-tdep.o \
598 # Target: DICOS/x86-64
599 gdb_target_obs="amd64-tdep.o i386-tdep.o i387-tdep.o \
600 dicos-tdep.o i386-dicos-tdep.o amd64-dicos-tdep.o \
601 corelow.o solib-target.o"
604 # Target: GNU/Linux x86-64
605 gdb_target_obs="amd64-tdep.o amd64-linux-tdep.o i386-tdep.o \
606 i387-tdep.o i386-linux-tdep.o glibc-tdep.o \
607 solib-svr4.o corelow.o symfile-mem.o linux-tdep.o \
611 x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
612 # Target: FreeBSD/amd64
613 gdb_target_obs="amd64-tdep.o amd64fbsd-tdep.o i386-tdep.o \
614 i387-tdep.o i386bsd-tdep.o i386fbsd-tdep.o \
615 bsd-uthread.o corelow.o solib-svr4.o"
618 # Target: MingW/amd64
619 gdb_target_obs="amd64-tdep.o amd64-windows-tdep.o \
620 i386-tdep.o i386-cygwin-tdep.o i387-tdep.o \
621 solib-target.o windows-tdep.o"
624 x86_64-*-netbsd* | x86_64-*-knetbsd*-gnu)
625 # Target: NetBSD/amd64
626 gdb_target_obs="amd64-tdep.o amd64nbsd-tdep.o i386-tdep.o i387-tdep.o \
627 nbsd-tdep.o corelow.o solib-svr4.o"
630 # Target: OpenBSD/amd64
631 gdb_target_obs="amd64-tdep.o amd64obsd-tdep.o i386-tdep.o \
632 i387-tdep.o i386bsd-tdep.o i386obsd-tdep.o \
633 bsd-uthread.o corelow.o solib-svr4.o"
635 xtensa*-*-linux*) gdb_target=linux
636 # Target: GNU/Linux Xtensa
637 gdb_target_obs="xtensa-tdep.o xtensa-config.o xtensa-linux-tdep.o \
638 solib-svr4.o corelow.o symfile-mem.o linux-tdep.o"
642 # Target: Tensilica Xtensa processors
643 gdb_target_obs="xtensa-tdep.o xtensa-config.o solib-svr4.o"
648 # map target onto default OS ABI
651 *-*-freebsd* | *-*-kfreebsd*-gnu)
652 gdb_osabi=GDB_OSABI_FREEBSD_ELF ;;
653 *-*-linux* | *-*-uclinux*)
654 gdb_osabi=GDB_OSABI_LINUX ;;
655 *-*-nto*) gdb_osabi=GDB_OSABI_QNXNTO ;;
656 m68*-*-openbsd* | m88*-*-openbsd* | vax-*-openbsd*) ;;
657 *-*-openbsd*) gdb_osabi=GDB_OSABI_OPENBSD_ELF ;;
658 *-*-solaris*) gdb_osabi=GDB_OSABI_SOLARIS ;;
659 *-*-*-gnu*) ;; # prevent non-GNU kernels to match the Hurd rule below
660 *-*-gnu*) gdb_osabi=GDB_OSABI_HURD ;;
661 *-*-mingw32ce*) gdb_osabi=GDB_OSABI_WINCE ;;
662 *-*-mingw* | *-*-cygwin*)
663 gdb_osabi=GDB_OSABI_CYGWIN ;;
664 *-*-dicos*) gdb_osabi=GDB_OSABI_DICOS ;;
666 gdb_osabi=GDB_OSABI_SYMBIAN ;;