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"
94 arm*-*-* | thumb*-*-* | strongarm*-*-* | xscale-*-*)
95 # Target: ARM embedded system
96 gdb_target_obs="arm-tdep.o"
97 gdb_sim=../sim/arm/libsim.a
102 gdb_target_obs="avr-tdep.o"
103 gdb_sim=../sim/avr/libsim.a
108 gdb_target_obs="cris-tdep.o corelow.o solib.o solib-svr4.o"
112 # Target: Fujitsu FRV processor
113 gdb_target_obs="frv-tdep.o frv-linux-tdep.o \
114 solib.o solib-frv.o corelow.o"
115 gdb_sim=../sim/frv/libsim.a
119 gdb_target_obs="moxie-tdep.o"
120 gdb_sim=../sim/moxie/libsim.a
124 # Target: H8300 with HMS monitor and H8 simulator
125 gdb_target_obs="h8300-tdep.o monitor.o dsrec.o"
126 gdb_sim=../sim/h8300/libsim.a
130 # Target: HP PA-RISC running hpux
131 gdb_target_obs="hppa-tdep.o hppa-hpux-tdep.o corelow.o \
132 solib.o solib-som.o solib-pa64.o"
135 # Target: HP PA-RISC running Linux
136 gdb_target_obs="hppa-tdep.o hppa-linux-tdep.o glibc-tdep.o \
137 solib.o solib-svr4.o symfile-mem.o"
140 # Target: NetBSD/hppa
141 gdb_target_obs="hppa-tdep.o hppabsd-tdep.o hppanbsd-tdep.o \
142 corelow.o solib.o solib-svr4.o"
145 # Target: OpenBSD/hppa
146 gdb_target_obs="hppa-tdep.o hppabsd-tdep.o hppaobsd-tdep.o \
147 corelow.o solib.o solib-svr4.o"
151 gdb_target_obs="hppa-tdep.o"
154 i[34567]86-*-darwin*)
155 # Target: Darwin/i386
156 gdb_target_obs="i386-tdep.o i387-tdep.o \
157 i386-darwin-tdep.o solib.o solib-darwin.o"
158 if test "x$enable_64_bit_bfd" = "xyes"; then
159 # Target: GNU/Linux x86-64
160 gdb_target_obs="amd64-tdep.o amd64-darwin-tdep.o ${gdb_target_obs}"
165 gdb_target_obs="i386-tdep.o i387-tdep.o \
166 dicos-tdep.o i386-dicos-tdep.o \
167 corelow.o solib.o solib-target.o"
169 i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
170 # Target: FreeBSD/i386
171 gdb_target_obs="i386-tdep.o i387-tdep.o i386bsd-tdep.o i386fbsd-tdep.o \
172 bsd-uthread.o corelow.o solib.o solib-svr4.o"
174 i[34567]86-*-netbsd* | i[34567]86-*-knetbsd*-gnu)
175 # Target: NetBSD/i386
176 gdb_target_obs="i386-tdep.o i387-tdep.o i386bsd-tdep.o i386nbsd-tdep.o \
177 nbsd-tdep.o corelow.o solib.o solib-svr4.o"
179 i[34567]86-*-openbsd*)
180 # Target: OpenBSD/i386
181 gdb_target_obs="i386-tdep.o i387-tdep.o i386bsd-tdep.o i386obsd-tdep.o \
182 bsd-uthread.o corelow.o solib.o solib-svr4.o"
185 # Target: Intel 386 running qnx6.
186 gdb_target_obs="i386-tdep.o i387-tdep.o corelow.o solib.o solib-svr4.o \
187 i386-nto-tdep.o nto-tdep.o"
190 i[34567]86-*-solaris2.1[0-9]*)
191 # Target: Solaris x86_64
192 gdb_target_obs="i386-tdep.o i387-tdep.o amd64-tdep.o amd64-sol2-tdep.o \
193 i386-sol2-tdep.o sol2-tdep.o \
194 corelow.o solib.o solib-svr4.o"
196 i[34567]86-*-solaris*)
197 # Target: Solaris x86
198 gdb_target_obs="i386-tdep.o i387-tdep.o i386-sol2-tdep.o sol2-tdep.o \
199 corelow.o solib.o solib-svr4.o"
202 # Target: Intel 386 running GNU/Linux
203 gdb_target_obs="i386-tdep.o i386-linux-tdep.o glibc-tdep.o i387-tdep.o \
204 solib.o solib-svr4.o symfile-mem.o corelow.o \
205 linux-tdep.o linux-record.o"
206 if test "x$enable_64_bit_bfd" = "xyes"; then
207 # Target: GNU/Linux x86-64
208 gdb_target_obs="amd64-tdep.o amd64-linux-tdep.o ${gdb_target_obs}"
213 # Target: Intel 386 running the GNU Hurd
214 gdb_target_obs="i386-tdep.o i387-tdep.o i386gnu-tdep.o \
215 solib.o solib-svr4.o"
217 i[34567]86-*-cygwin*)
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"
223 i[34567]86-*-mingw32*)
224 # Target: Intel 386 running win32
225 gdb_target_obs="i386-tdep.o i386-cygwin-tdep.o i387-tdep.o \
226 solib-target.o corelow.o windows-tdep.o"
231 gdb_target_obs="i386-tdep.o i387-tdep.o"
235 # Target: Intel IA-64 running GNU/Linux
236 gdb_target_obs="ia64-tdep.o ia64-linux-tdep.o \
237 solib.o solib-svr4.o symfile-mem.o"
241 # Target: Intel IA-64
242 gdb_target_obs="ia64-tdep.o"
246 gdb_target_obs="iq2000-tdep.o"
247 gdb_sim=../sim/iq2000/libsim.a
251 gdb_target_obs="lm32-tdep.o"
252 gdb_sim=../sim/lm32/libsim.a
256 # Target: Renesas M32C family
257 gdb_target_obs="m32c-tdep.o prologue-value.o"
258 # There may also be a SID / CGEN simulator for this,
259 # but we do have DJ Delorie's mini-sim.
260 gdb_sim=../sim/m32c/libsim.a
264 # Target: Renesas M32R running GNU/Linux
265 gdb_target_obs="m32r-tdep.o m32r-linux-tdep.o remote-m32r-sdi.o \
266 glibc-tdep.o solib.o solib-svr4.o symfile-mem.o"
267 gdb_sim=../sim/m32r/libsim.a
271 # Target: Renesas m32r processor
272 gdb_target_obs="m32r-tdep.o monitor.o m32r-rom.o dsrec.o \
274 gdb_sim=../sim/m32r/libsim.a
277 m68hc11*-*-*|m6811*-*-*)
278 # Target: Motorola 68HC11 processor
279 gdb_target_obs="m68hc11-tdep.o"
280 gdb_sim=../sim/m68hc11/libsim.a
283 m68*-*-aout* | m68*-*-coff* | m68*-*-elf* | m68*-*-rtems* | m68*-*-uclinux* | \
285 # Target: Motorola m68k embedded (e.g. bug monitors)
286 gdb_target_obs="m68k-tdep.o monitor.o dbug-rom.o dsrec.o"
289 # Target: Motorola m68k with a.out and ELF
290 gdb_target_obs="m68k-tdep.o m68klinux-tdep.o solib.o solib-svr4.o \
291 glibc-tdep.o symfile-mem.o"
294 m68*-*-netbsd* | m68*-*-knetbsd*-gnu)
295 # Target: NetBSD/m68k
296 gdb_target_obs="m68k-tdep.o m68kbsd-tdep.o \
297 corelow.o solib.o solib-svr4.o"
300 # Target: OpenBSD/m68k
301 gdb_target_obs="m68k-tdep.o m68kbsd-tdep.o \
302 corelow.o solib.o solib-svr4.o"
306 # Target: OpenBSD/m88k
307 gdb_target_obs="m88k-tdep.o corelow.o"
311 # Target: Toshiba Media Processor (MEP)
312 gdb_target_obs="mep-tdep.o prologue-value.o"
313 # No sim needed. Target uses SID.
317 # Target: MIPS SGI running Irix 5
318 gdb_target_obs="mips-tdep.o mips-irix-tdep.o solib.o solib-irix.o"
321 # Target: MIPS SGI running Irix 6.x
322 gdb_target_obs="mips-tdep.o mips-irix-tdep.o solib.o solib-irix.o"
326 gdb_target_obs="mips-tdep.o mips-linux-tdep.o glibc-tdep.o \
327 corelow.o solib.o solib-svr4.o symfile-mem.o"
328 gdb_sim=../sim/mips/libsim.a
331 mips*-*-netbsd* | mips*-*-knetbsd*-gnu)
332 # Target: MIPS running NetBSD
333 gdb_target_obs="mips-tdep.o mipsnbsd-tdep.o \
334 corelow.o solib.o solib-svr4.o nbsd-tdep.o"
335 gdb_sim=../sim/mips/libsim.a
338 # Target: OpenBSD/mips64
339 gdb_target_obs="mips-tdep.o mips64obsd-tdep.o \
340 corelow.o solib.o solib-svr4.o"
344 gdb_target_obs="mips-tdep.o"
345 gdb_sim=../sim/mips/libsim.a
349 # Target: Matsushita mn10300
350 gdb_target_obs="mn10300-tdep.o"
351 gdb_sim=../sim/mn10300/libsim.a
355 # Target: Morpho Technologies ms1 processor
356 gdb_target_obs="mt-tdep.o"
359 powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu)
360 # Target: NetBSD/powerpc
361 gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppcnbsd-tdep.o \
362 corelow.o solib.o solib-svr4.o"
363 gdb_sim=../sim/ppc/libsim.a
366 # Target: OpenBSD/powerpc
367 gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppcobsd-tdep.o \
368 corelow.o solib.o solib-svr4.o"
370 powerpc-*-aix* | rs6000-*-*)
371 # Target: PowerPC running AIX
372 gdb_target_obs="rs6000-tdep.o rs6000-aix-tdep.o xcoffread.o \
373 ppc-sysv-tdep.o solib.o solib-svr4.o"
375 powerpc-*-linux* | powerpc64-*-linux*)
376 # Target: PowerPC running Linux
377 gdb_target_obs="rs6000-tdep.o ppc-linux-tdep.o ppc-sysv-tdep.o \
378 solib.o solib-svr4.o corelow.o symfile-mem.o"
379 gdb_sim=../sim/ppc/libsim.a
383 # Target: PowerPC running eabi
384 gdb_target_obs="rs6000-tdep.o monitor.o dsrec.o ppcbug-rom.o \
385 dink32-rom.o ppc-sysv-tdep.o solib.o solib-svr4.o"
386 if test -f ../sim/ppc/Makefile; then
387 gdb_sim=../sim/ppc/libsim.a
392 # Target: S390 running Linux
393 gdb_target_obs="s390-tdep.o solib.o solib-svr4.o"
398 # Target: S+core embedded system
399 gdb_target_obs="score-tdep.o"
403 # Target: GNU/Linux Super-H
404 gdb_target_obs="sh-tdep.o sh64-tdep.o sh-linux-tdep.o monitor.o \
405 dsrec.o solib.o solib-svr4.o symfile-mem.o glibc-tdep.o"
406 gdb_sim=../sim/sh/libsim.a
409 sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu)
411 gdb_target_obs="sh-tdep.o shnbsd-tdep.o corelow.o solib.o solib-svr4.o"
412 gdb_sim=../sim/sh/libsim.a
416 gdb_target_obs="sh-tdep.o sh64-tdep.o shnbsd-tdep.o \
417 corelow.o solib.o solib-svr4.o"
420 # Target: Renesas/Super-H 64 bit with simulator
421 gdb_target_obs="sh-tdep.o sh64-tdep.o"
422 gdb_sim=../sim/sh64/libsim.a
425 # Target: Embedded Renesas Super-H with ICE and simulator
426 gdb_target_obs="sh-tdep.o sh64-tdep.o monitor.o dsrec.o"
427 gdb_sim=../sim/sh/libsim.a
431 # Target: GNU/Linux SPARC
432 gdb_target_obs="sparc-tdep.o sparc-sol2-tdep.o sol2-tdep.o \
433 sparc-linux-tdep.o solib.o solib-svr4.o symfile-mem.o"
434 if test "x$enable_64_bit_bfd" = "xyes"; then
435 # Target: GNU/Linux UltraSPARC
436 gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o \
437 sparc64-linux-tdep.o ${gdb_target_obs}"
441 # Target: GNU/Linux UltraSPARC
442 gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o sol2-tdep.o \
443 sparc64-linux-tdep.o sparc-tdep.o sparc-sol2-tdep.o \
444 sparc-linux-tdep.o solib.o solib-svr4.o"
447 sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu)
448 # Target: FreeBSD/sparc64
449 gdb_target_obs="sparc-tdep.o sparc64-tdep.o sparc64fbsd-tdep.o \
450 corelow.o solib.o solib-svr4.o"
452 sparc-*-netbsd* | sparc-*-knetbsd*-gnu)
453 # Target: NetBSD/sparc
454 gdb_target_obs="sparc-tdep.o sparcnbsd-tdep.o nbsd-tdep.o \
455 corelow.o solib.o solib-svr4.o"
457 sparc64-*-netbsd* | sparc64-*-knetbsd*-gnu)
458 # Target: NetBSD/sparc64
459 gdb_target_obs="sparc64-tdep.o sparc64nbsd-tdep.o sparc-tdep.o \
460 sparcnbsd-tdep.o nbsd-tdep.o \
461 corelow.o solib.o solib-svr4.o"
464 # Target: OpenBSD/sparc
465 gdb_target_obs="sparc-tdep.o sparcnbsd-tdep.o sparcobsd-tdep.o \
466 nbsd-tdep.o obsd-tdep.o bsd-uthread.o \
467 corelow.o solib.o solib-svr4.o"
470 # Target: OpenBSD/sparc64
471 gdb_target_obs="sparc64-tdep.o sparc64nbsd-tdep.o sparc64obsd-tdep.o \
472 sparc-tdep.o sparcnbsd-tdep.o sparcobsd-tdep.o \
473 nbsd-tdep.o obsd-tdep.o bsd-uthread.o \
474 corelow.o solib.o solib-svr4.o"
476 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
477 # Target: Solaris SPARC
478 gdb_target_obs="sparc-tdep.o sparc-sol2-tdep.o sol2-tdep.o \
479 solib.o solib-svr4.o"
481 sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*)
482 # Target: Solaris UltraSPARC
483 gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o sparc-tdep.o \
484 sparc-sol2-tdep.o sol2-tdep.o solib.o solib-svr4.o"
487 # Target: SPARC embedded with simulator
488 gdb_target_obs="sparc-tdep.o"
489 gdb_sim=../sim/erc32/libsim.a
493 gdb_target_obs="sparc-tdep.o"
497 gdb_target_obs="sparc-tdep.o sparc64-tdep.o"
501 # Target: Cell BE SPU
502 gdb_target_obs="spu-tdep.o"
507 # Target: Sanyo Xstormy16a processor
508 gdb_target_obs="xstormy16-tdep.o"
509 # No simulator libraries are needed -- target uses SID.
513 # Target: NEC V850 processor
514 gdb_target_obs="v850-tdep.o"
515 gdb_sim=../sim/v850/libsim.a
518 vax-*-netbsd* | vax-*-knetbsd*-gnu)
520 gdb_target_obs="vax-tdep.o vaxnbsd-tdep.o \
521 corelow.o solib.o solib-svr4.o"
524 # Target: OpenBSD/vax
525 gdb_target_obs="vax-tdep.o vaxobsd-tdep.o corelow.o"
528 # Target: VAX running 4.2BSD or Ultrix
529 gdb_target_obs="vax-tdep.o"
533 # Target: Darwin/x86-64
534 gdb_target_obs="amd64-tdep.o i386-tdep.o i387-tdep.o \
535 i386-darwin-tdep.o amd64-darwin-tdep.o \
536 solib.o solib-darwin.o"
540 # Target: DICOS/x86-64
541 gdb_target_obs="amd64-tdep.o i386-tdep.o i387-tdep.o \
542 dicos-tdep.o i386-dicos-tdep.o amd64-dicos-tdep.o \
543 corelow.o solib.o solib-target.o"
546 # Target: GNU/Linux x86-64
547 gdb_target_obs="amd64-tdep.o amd64-linux-tdep.o i386-tdep.o \
548 i387-tdep.o i386-linux-tdep.o glibc-tdep.o \
549 solib.o solib-svr4.o corelow.o symfile-mem.o linux-tdep.o \
553 x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
554 # Target: FreeBSD/amd64
555 gdb_target_obs="amd64-tdep.o amd64fbsd-tdep.o i386-tdep.o \
556 i387-tdep.o i386bsd-tdep.o i386fbsd-tdep.o \
557 bsd-uthread.o corelow.o solib.o solib-svr4.o"
560 # Target: MingW/amd64
561 gdb_target_obs="amd64-tdep.o amd64-windows-tdep.o \
562 i386-tdep.o i386-cygwin-tdep.o i387-tdep.o \
563 solib-target.o windows-tdep.o"
565 x86_64-*-netbsd* | x86_64-*-knetbsd*-gnu)
566 # Target: NetBSD/amd64
567 gdb_target_obs="amd64-tdep.o amd64nbsd-tdep.o i386-tdep.o i387-tdep.o \
568 nbsd-tdep.o corelow.o solib.o solib-svr4.o"
571 # Target: OpenBSD/amd64
572 gdb_target_obs="amd64-tdep.o amd64obsd-tdep.o i386-tdep.o \
573 i387-tdep.o i386bsd-tdep.o i386obsd-tdep.o \
574 bsd-uthread.o corelow.o solib.o solib-svr4.o"
576 xtensa*-*-linux*) gdb_target=linux
577 # Target: GNU/Linux Xtensa
578 gdb_target_obs="xtensa-tdep.o xtensa-config.o xtensa-linux-tdep.o \
579 solib.o solib-svr4.o corelow.o symfile-mem.o"
583 # Target: Tensilica Xtensa processors
584 gdb_target_obs="xtensa-tdep.o xtensa-config.o solib.o solib-svr4.o"
589 # map target onto default OS ABI
592 *-*-freebsd*) gdb_osabi=GDB_OSABI_FREEBSD_ELF ;;
593 *-*-linux*) gdb_osabi=GDB_OSABI_LINUX ;;
594 *-*-nto*) gdb_osabi=GDB_OSABI_QNXNTO ;;
595 m68*-*-openbsd* | m88*-*-openbsd* | vax-*-openbsd*) ;;
596 *-*-openbsd*) gdb_osabi=GDB_OSABI_OPENBSD_ELF ;;
597 *-*-solaris*) gdb_osabi=GDB_OSABI_SOLARIS ;;
598 *-*-*-gnu*) ;; # prevent non-GNU kernels to match the Hurd rule below
599 *-*-gnu*) gdb_osabi=GDB_OSABI_HURD ;;
600 *-*-mingw32ce*) gdb_osabi=GDB_OSABI_WINCE ;;
601 *-*-mingw* | *-*-cygwin*)
602 gdb_osabi=GDB_OSABI_CYGWIN ;;
603 *-*-dicos*) gdb_osabi=GDB_OSABI_DICOS ;;