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
18 i[34567]86-*-lynxos* | \
26 echo "*** Configuration $targ is obsolete." >&2
27 echo "*** Support has been REMOVED." >&2
32 # map target info into gdb names.
37 # Target: Little-endian Alpha running OSF/1
38 gdb_target_obs="alpha-tdep.o alpha-osf1-tdep.o alpha-mdebug-tdep.o"
41 # Target: Little-endian Alpha running Linux
42 gdb_target_obs="alpha-tdep.o alpha-mdebug-tdep.o alpha-linux-tdep.o \
45 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
46 # Target: FreeBSD/alpha
47 gdb_target_obs="alpha-tdep.o alpha-mdebug-tdep.o alphabsd-tdep.o \
48 alphafbsd-tdep.o corelow.o solib.o solib-svr4.o"
50 alpha*-*-netbsd* | alpha*-*-knetbsd*-gnu)
51 # Target: NetBSD/alpha
52 gdb_target_obs="alpha-tdep.o alpha-mdebug-tdep.o alphabsd-tdep.o \
53 alphanbsd-tdep.o nbsd-tdep.o corelow.o solib.o \
57 # Target: OpenBSD/alpha
58 gdb_target_obs="alpha-tdep.o alpha-mdebug-tdep.o alphabsd-tdep.o \
59 alphanbsd-tdep.o alphaobsd-tdep.o nbsd-tdep.o \
60 obsd-tdep.o corelow.o solib.o solib-svr4.o"
64 gdb_target_obs="alpha-tdep.o"
68 # Target: Matsushita mn10300 (AM33) running Linux
69 gdb_target_obs="mn10300-tdep.o mn10300-linux-tdep.o corelow.o \
73 arm*-wince-pe | arm*-*-mingw32ce*)
74 # Target: ARM based machine running Windows CE (win32)
75 gdb_target_obs="arm-tdep.o arm-wince-tdep.o corelow.o \
76 solib.o solib-target.o"
80 # Target: ARM based machine running GNU/Linux
81 gdb_target_obs="arm-tdep.o arm-linux-tdep.o glibc-tdep.o \
82 solib.o solib-svr4.o symfile-mem.o corelow.o linux-tdep.o"
85 arm*-*-netbsd* | arm*-*-knetbsd*-gnu)
87 gdb_target_obs="arm-tdep.o armnbsd-tdep.o solib.o solib-svr4.o"
91 gdb_target_obs="arm-tdep.o armbsd-tdep.o armobsd-tdep.o obsd-tdep.o \
92 corelow.o solib.o solib-svr4.o"
95 # Target: SymbianOS/arm
96 gdb_target_obs="arm-tdep.o solib-target.o arm-symbian-tdep.o"
98 arm*-*-* | thumb*-*-* | strongarm*-*-* | xscale-*-*)
99 # Target: ARM embedded system
100 gdb_target_obs="arm-tdep.o"
101 gdb_sim=../sim/arm/libsim.a
106 gdb_target_obs="avr-tdep.o"
107 gdb_sim=../sim/avr/libsim.a
112 gdb_target_obs="cris-tdep.o corelow.o solib.o solib-svr4.o"
116 # Target: Fujitsu FRV processor
117 gdb_target_obs="frv-tdep.o frv-linux-tdep.o \
118 solib.o solib-frv.o corelow.o"
119 gdb_sim=../sim/frv/libsim.a
123 gdb_target_obs="moxie-tdep.o"
124 gdb_sim=../sim/moxie/libsim.a
128 # Target: H8300 with HMS monitor and H8 simulator
129 gdb_target_obs="h8300-tdep.o monitor.o dsrec.o"
130 gdb_sim=../sim/h8300/libsim.a
134 # Target: HP PA-RISC running hpux
135 gdb_target_obs="hppa-tdep.o hppa-hpux-tdep.o corelow.o \
136 solib.o solib-som.o solib-pa64.o"
139 # Target: HP PA-RISC running Linux
140 gdb_target_obs="hppa-tdep.o hppa-linux-tdep.o glibc-tdep.o \
141 solib.o solib-svr4.o symfile-mem.o"
144 # Target: NetBSD/hppa
145 gdb_target_obs="hppa-tdep.o hppabsd-tdep.o hppanbsd-tdep.o \
146 corelow.o solib.o solib-svr4.o"
149 # Target: OpenBSD/hppa
150 gdb_target_obs="hppa-tdep.o hppabsd-tdep.o hppaobsd-tdep.o \
151 corelow.o solib.o solib-svr4.o"
155 gdb_target_obs="hppa-tdep.o"
158 i[34567]86-*-darwin*)
159 # Target: Darwin/i386
160 gdb_target_obs="i386-tdep.o i387-tdep.o \
161 i386-darwin-tdep.o solib.o solib-darwin.o"
162 if test "x$enable_64_bit_bfd" = "xyes"; then
163 # Target: GNU/Linux x86-64
164 gdb_target_obs="amd64-tdep.o amd64-darwin-tdep.o ${gdb_target_obs}"
169 gdb_target_obs="i386-tdep.o i387-tdep.o \
170 dicos-tdep.o i386-dicos-tdep.o \
171 corelow.o solib.o solib-target.o"
173 i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
174 # Target: FreeBSD/i386
175 gdb_target_obs="i386-tdep.o i387-tdep.o i386bsd-tdep.o i386fbsd-tdep.o \
176 bsd-uthread.o corelow.o solib.o solib-svr4.o"
178 i[34567]86-*-netbsd* | i[34567]86-*-knetbsd*-gnu)
179 # Target: NetBSD/i386
180 gdb_target_obs="i386-tdep.o i387-tdep.o i386bsd-tdep.o i386nbsd-tdep.o \
181 nbsd-tdep.o corelow.o solib.o solib-svr4.o"
183 i[34567]86-*-openbsd*)
184 # Target: OpenBSD/i386
185 gdb_target_obs="i386-tdep.o i387-tdep.o i386bsd-tdep.o i386obsd-tdep.o \
186 bsd-uthread.o corelow.o solib.o solib-svr4.o"
189 # Target: Intel 386 running qnx6.
190 gdb_target_obs="i386-tdep.o i387-tdep.o corelow.o solib.o solib-svr4.o \
191 i386-nto-tdep.o nto-tdep.o"
194 i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
195 # Target: Solaris x86_64
196 gdb_target_obs="i386-tdep.o i387-tdep.o amd64-tdep.o amd64-sol2-tdep.o \
197 i386-sol2-tdep.o sol2-tdep.o \
198 corelow.o solib.o solib-svr4.o"
200 i[34567]86-*-solaris*)
201 # Target: Solaris x86
202 gdb_target_obs="i386-tdep.o i387-tdep.o i386-sol2-tdep.o sol2-tdep.o \
203 corelow.o solib.o solib-svr4.o"
206 # Target: Intel 386 running GNU/Linux
207 gdb_target_obs="i386-tdep.o i386-linux-tdep.o glibc-tdep.o i387-tdep.o \
208 solib.o solib-svr4.o symfile-mem.o corelow.o \
209 linux-tdep.o linux-record.o"
210 if test "x$enable_64_bit_bfd" = "xyes"; then
211 # Target: GNU/Linux x86-64
212 gdb_target_obs="amd64-tdep.o amd64-linux-tdep.o ${gdb_target_obs}"
217 # Target: Intel 386 running the GNU Hurd
218 gdb_target_obs="i386-tdep.o i387-tdep.o i386gnu-tdep.o \
219 solib.o solib-svr4.o"
221 i[34567]86-*-cygwin*)
222 # Target: Intel 386 running win32
223 gdb_target_obs="i386-tdep.o i386-cygwin-tdep.o i387-tdep.o \
224 solib-target.o corelow.o windows-tdep.o"
227 i[34567]86-*-mingw32*)
228 # Target: Intel 386 running win32
229 gdb_target_obs="i386-tdep.o i386-cygwin-tdep.o i387-tdep.o \
230 solib-target.o corelow.o windows-tdep.o"
235 gdb_target_obs="i386-tdep.o i387-tdep.o"
239 # Target: Intel IA-64 running GNU/Linux
240 gdb_target_obs="ia64-tdep.o ia64-linux-tdep.o \
241 solib.o solib-svr4.o symfile-mem.o"
245 # Target: Intel IA-64
246 gdb_target_obs="ia64-tdep.o"
250 gdb_target_obs="iq2000-tdep.o"
251 gdb_sim=../sim/iq2000/libsim.a
255 gdb_target_obs="lm32-tdep.o"
256 gdb_sim=../sim/lm32/libsim.a
260 # Target: Renesas M32C family
261 gdb_target_obs="m32c-tdep.o prologue-value.o"
262 # There may also be a SID / CGEN simulator for this,
263 # but we do have DJ Delorie's mini-sim.
264 gdb_sim=../sim/m32c/libsim.a
268 # Target: Renesas M32R running GNU/Linux
269 gdb_target_obs="m32r-tdep.o m32r-linux-tdep.o remote-m32r-sdi.o \
270 glibc-tdep.o solib.o solib-svr4.o symfile-mem.o"
271 gdb_sim=../sim/m32r/libsim.a
275 # Target: Renesas m32r processor
276 gdb_target_obs="m32r-tdep.o monitor.o m32r-rom.o dsrec.o \
278 gdb_sim=../sim/m32r/libsim.a
281 m68hc11*-*-*|m6811*-*-*)
282 # Target: Motorola 68HC11 processor
283 gdb_target_obs="m68hc11-tdep.o"
284 gdb_sim=../sim/m68hc11/libsim.a
287 m68*-*-aout* | m68*-*-coff* | m68*-*-elf* | m68*-*-rtems* | m68*-*-uclinux* | \
289 # Target: Motorola m68k embedded (e.g. bug monitors)
290 gdb_target_obs="m68k-tdep.o monitor.o dbug-rom.o dsrec.o"
293 # Target: Motorola m68k with a.out and ELF
294 gdb_target_obs="m68k-tdep.o m68klinux-tdep.o solib.o solib-svr4.o \
295 glibc-tdep.o symfile-mem.o"
298 m68*-*-netbsd* | m68*-*-knetbsd*-gnu)
299 # Target: NetBSD/m68k
300 gdb_target_obs="m68k-tdep.o m68kbsd-tdep.o \
301 corelow.o solib.o solib-svr4.o"
304 # Target: OpenBSD/m68k
305 gdb_target_obs="m68k-tdep.o m68kbsd-tdep.o \
306 corelow.o solib.o solib-svr4.o"
310 # Target: OpenBSD/m88k
311 gdb_target_obs="m88k-tdep.o corelow.o"
315 # Target: Toshiba Media Processor (MEP)
316 gdb_target_obs="mep-tdep.o prologue-value.o"
317 # No sim needed. Target uses SID.
321 # Target: Xilinx MicroBlaze running Linux
322 gdb_target_obs="microblaze-tdep.o microblaze-linux-tdep.o microblaze-rom.o \
323 monitor.o dsrec.o solib.o solib-svr4.o corelow.o \
325 gdb_sim=../sim/microblaze/libsim.a
327 microblaze*-xilinx-*)
328 # Target: Xilinx MicroBlaze running standalone
329 gdb_target_obs="microblaze-tdep.o microblaze-rom.o monitor.o dsrec.o"
330 gdb_sim=../sim/microblaze/libsim.a
334 # Target: MIPS SGI running Irix 5
335 gdb_target_obs="mips-tdep.o mips-irix-tdep.o solib.o solib-irix.o"
338 # Target: MIPS SGI running Irix 6.x
339 gdb_target_obs="mips-tdep.o mips-irix-tdep.o solib.o solib-irix.o"
343 gdb_target_obs="mips-tdep.o mips-linux-tdep.o glibc-tdep.o \
344 corelow.o solib.o solib-svr4.o symfile-mem.o"
345 gdb_sim=../sim/mips/libsim.a
348 mips*-*-netbsd* | mips*-*-knetbsd*-gnu)
349 # Target: MIPS running NetBSD
350 gdb_target_obs="mips-tdep.o mipsnbsd-tdep.o \
351 corelow.o solib.o solib-svr4.o nbsd-tdep.o"
352 gdb_sim=../sim/mips/libsim.a
355 # Target: OpenBSD/mips64
356 gdb_target_obs="mips-tdep.o mips64obsd-tdep.o \
357 corelow.o solib.o solib-svr4.o"
361 gdb_target_obs="mips-tdep.o"
362 gdb_sim=../sim/mips/libsim.a
366 # Target: Matsushita mn10300
367 gdb_target_obs="mn10300-tdep.o"
368 gdb_sim=../sim/mn10300/libsim.a
372 # Target: Morpho Technologies ms1 processor
373 gdb_target_obs="mt-tdep.o"
376 powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu)
377 # Target: NetBSD/powerpc
378 gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppcnbsd-tdep.o \
379 corelow.o solib.o solib-svr4.o"
380 gdb_sim=../sim/ppc/libsim.a
383 # Target: OpenBSD/powerpc
384 gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppcobsd-tdep.o \
385 corelow.o solib.o solib-svr4.o"
387 powerpc-*-aix* | rs6000-*-*)
388 # Target: PowerPC running AIX
389 gdb_target_obs="rs6000-tdep.o rs6000-aix-tdep.o xcoffread.o \
390 ppc-sysv-tdep.o solib.o solib-svr4.o"
392 powerpc-*-linux* | powerpc64-*-linux*)
393 # Target: PowerPC running Linux
394 gdb_target_obs="rs6000-tdep.o ppc-linux-tdep.o ppc-sysv-tdep.o \
395 solib.o solib-svr4.o solib-spu.o spu-multiarch.o \
396 corelow.o symfile-mem.o linux-tdep.o"
397 gdb_sim=../sim/ppc/libsim.a
401 # Target: PowerPC running eabi
402 gdb_target_obs="rs6000-tdep.o monitor.o dsrec.o ppcbug-rom.o \
403 dink32-rom.o ppc-sysv-tdep.o solib.o solib-svr4.o"
404 if test -f ../sim/ppc/Makefile; then
405 gdb_sim=../sim/ppc/libsim.a
410 # Target: S390 running Linux
411 gdb_target_obs="s390-tdep.o solib.o solib-svr4.o linux-tdep.o"
417 gdb_target_obs="rx-tdep.o"
418 gdb_sim=../sim/rx/libsim.a
422 # Target: S+core embedded system
423 gdb_target_obs="score-tdep.o corelow.o"
424 if test -f ../sim/score/Makefile; then
425 gdb_sim=../sim/score/libsim.a
431 # Target: GNU/Linux Super-H
432 gdb_target_obs="sh-tdep.o sh64-tdep.o sh-linux-tdep.o monitor.o \
433 dsrec.o solib.o solib-svr4.o symfile-mem.o \
434 glibc-tdep.o corelow.o"
435 gdb_sim=../sim/sh/libsim.a
438 sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu)
440 gdb_target_obs="sh-tdep.o shnbsd-tdep.o corelow.o solib.o solib-svr4.o"
441 gdb_sim=../sim/sh/libsim.a
445 gdb_target_obs="sh-tdep.o sh64-tdep.o shnbsd-tdep.o \
446 corelow.o solib.o solib-svr4.o"
449 # Target: Renesas/Super-H 64 bit with simulator
450 gdb_target_obs="sh-tdep.o sh64-tdep.o"
451 gdb_sim=../sim/sh64/libsim.a
454 # Target: Embedded Renesas Super-H with ICE and simulator
455 gdb_target_obs="sh-tdep.o sh64-tdep.o monitor.o dsrec.o"
456 gdb_sim=../sim/sh/libsim.a
460 # Target: GNU/Linux SPARC
461 gdb_target_obs="sparc-tdep.o sparc-sol2-tdep.o sol2-tdep.o \
462 sparc-linux-tdep.o solib.o solib-svr4.o symfile-mem.o"
463 if test "x$enable_64_bit_bfd" = "xyes"; then
464 # Target: GNU/Linux UltraSPARC
465 gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o \
466 sparc64-linux-tdep.o ${gdb_target_obs}"
470 # Target: GNU/Linux UltraSPARC
471 gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o sol2-tdep.o \
472 sparc64-linux-tdep.o sparc-tdep.o sparc-sol2-tdep.o \
473 sparc-linux-tdep.o solib.o solib-svr4.o"
476 sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu)
477 # Target: FreeBSD/sparc64
478 gdb_target_obs="sparc-tdep.o sparc64-tdep.o sparc64fbsd-tdep.o \
479 corelow.o solib.o solib-svr4.o"
481 sparc-*-netbsd* | sparc-*-knetbsd*-gnu)
482 # Target: NetBSD/sparc
483 gdb_target_obs="sparc-tdep.o sparcnbsd-tdep.o nbsd-tdep.o \
484 corelow.o solib.o solib-svr4.o"
486 sparc64-*-netbsd* | sparc64-*-knetbsd*-gnu)
487 # Target: NetBSD/sparc64
488 gdb_target_obs="sparc64-tdep.o sparc64nbsd-tdep.o sparc-tdep.o \
489 sparcnbsd-tdep.o nbsd-tdep.o \
490 corelow.o solib.o solib-svr4.o"
493 # Target: OpenBSD/sparc
494 gdb_target_obs="sparc-tdep.o sparcnbsd-tdep.o sparcobsd-tdep.o \
495 nbsd-tdep.o obsd-tdep.o bsd-uthread.o \
496 corelow.o solib.o solib-svr4.o"
499 # Target: OpenBSD/sparc64
500 gdb_target_obs="sparc64-tdep.o sparc64nbsd-tdep.o sparc64obsd-tdep.o \
501 sparc-tdep.o sparcnbsd-tdep.o sparcobsd-tdep.o \
502 nbsd-tdep.o obsd-tdep.o bsd-uthread.o \
503 corelow.o solib.o solib-svr4.o"
505 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
506 # Target: Solaris SPARC
507 gdb_target_obs="sparc-tdep.o sparc-sol2-tdep.o sol2-tdep.o \
508 solib.o solib-svr4.o"
510 sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*)
511 # Target: Solaris UltraSPARC
512 gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o sparc-tdep.o \
513 sparc-sol2-tdep.o sol2-tdep.o solib.o solib-svr4.o"
516 # Target: SPARC embedded with simulator
517 gdb_target_obs="sparc-tdep.o"
518 gdb_sim=../sim/erc32/libsim.a
522 gdb_target_obs="sparc-tdep.o"
526 gdb_target_obs="sparc-tdep.o sparc64-tdep.o"
530 # Target: Cell BE SPU
531 gdb_target_obs="spu-tdep.o"
536 # Target: Sanyo Xstormy16a processor
537 gdb_target_obs="xstormy16-tdep.o"
538 # No simulator libraries are needed -- target uses SID.
542 # Target: NEC V850 processor
543 gdb_target_obs="v850-tdep.o"
544 gdb_sim=../sim/v850/libsim.a
547 vax-*-netbsd* | vax-*-knetbsd*-gnu)
549 gdb_target_obs="vax-tdep.o vaxnbsd-tdep.o \
550 corelow.o solib.o solib-svr4.o"
553 # Target: OpenBSD/vax
554 gdb_target_obs="vax-tdep.o vaxobsd-tdep.o corelow.o"
557 # Target: VAX running 4.2BSD or Ultrix
558 gdb_target_obs="vax-tdep.o"
562 # Target: Darwin/x86-64
563 gdb_target_obs="amd64-tdep.o i386-tdep.o i387-tdep.o \
564 i386-darwin-tdep.o amd64-darwin-tdep.o \
565 solib.o solib-darwin.o"
569 # Target: DICOS/x86-64
570 gdb_target_obs="amd64-tdep.o i386-tdep.o i387-tdep.o \
571 dicos-tdep.o i386-dicos-tdep.o amd64-dicos-tdep.o \
572 corelow.o solib.o solib-target.o"
575 # Target: GNU/Linux x86-64
576 gdb_target_obs="amd64-tdep.o amd64-linux-tdep.o i386-tdep.o \
577 i387-tdep.o i386-linux-tdep.o glibc-tdep.o \
578 solib.o solib-svr4.o corelow.o symfile-mem.o linux-tdep.o \
582 x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
583 # Target: FreeBSD/amd64
584 gdb_target_obs="amd64-tdep.o amd64fbsd-tdep.o i386-tdep.o \
585 i387-tdep.o i386bsd-tdep.o i386fbsd-tdep.o \
586 bsd-uthread.o corelow.o solib.o solib-svr4.o"
589 # Target: MingW/amd64
590 gdb_target_obs="amd64-tdep.o amd64-windows-tdep.o \
591 i386-tdep.o i386-cygwin-tdep.o i387-tdep.o \
592 solib-target.o windows-tdep.o"
595 x86_64-*-netbsd* | x86_64-*-knetbsd*-gnu)
596 # Target: NetBSD/amd64
597 gdb_target_obs="amd64-tdep.o amd64nbsd-tdep.o i386-tdep.o i387-tdep.o \
598 nbsd-tdep.o corelow.o solib.o solib-svr4.o"
601 # Target: OpenBSD/amd64
602 gdb_target_obs="amd64-tdep.o amd64obsd-tdep.o i386-tdep.o \
603 i387-tdep.o i386bsd-tdep.o i386obsd-tdep.o \
604 bsd-uthread.o corelow.o solib.o solib-svr4.o"
606 xtensa*-*-linux*) gdb_target=linux
607 # Target: GNU/Linux Xtensa
608 gdb_target_obs="xtensa-tdep.o xtensa-config.o xtensa-linux-tdep.o \
609 solib.o solib-svr4.o corelow.o symfile-mem.o"
613 # Target: Tensilica Xtensa processors
614 gdb_target_obs="xtensa-tdep.o xtensa-config.o solib.o solib-svr4.o"
619 # map target onto default OS ABI
622 *-*-freebsd*) gdb_osabi=GDB_OSABI_FREEBSD_ELF ;;
623 *-*-linux*) gdb_osabi=GDB_OSABI_LINUX ;;
624 *-*-nto*) gdb_osabi=GDB_OSABI_QNXNTO ;;
625 m68*-*-openbsd* | m88*-*-openbsd* | vax-*-openbsd*) ;;
626 *-*-openbsd*) gdb_osabi=GDB_OSABI_OPENBSD_ELF ;;
627 *-*-solaris*) gdb_osabi=GDB_OSABI_SOLARIS ;;
628 *-*-*-gnu*) ;; # prevent non-GNU kernels to match the Hurd rule below
629 *-*-gnu*) gdb_osabi=GDB_OSABI_HURD ;;
630 *-*-mingw32ce*) gdb_osabi=GDB_OSABI_WINCE ;;
631 *-*-mingw* | *-*-cygwin*)
632 gdb_osabi=GDB_OSABI_CYGWIN ;;
633 *-*-dicos*) gdb_osabi=GDB_OSABI_DICOS ;;
635 gdb_osabi=GDB_OSABI_SYMBIAN ;;