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 # gdb_have_gcore set to "true"/"false" if this target can run gcore
9 # gdb_require_amd_dbgapi set to "true" if this target requires the amd-dbgapi
12 # NOTE: Every file added to a gdb_target_obs variable for any target here
13 # must also be added to either:
17 # - ALL_AMD_DBGAPI_TARGET_OBS
23 *-*-solaris2.[01] | *-*-solaris2.[2-9]* | *-*-solaris2.10* | \
27 alpha*-*-kfreebsd*-gnu | \
43 echo "*** Configuration $targ is obsolete." >&2
44 echo "*** Support has been REMOVED." >&2
49 x86_tobjs="x86-tdep.o"
50 i386_tobjs="i386-tdep.o arch/i386.o i387-tdep.o ${x86_tobjs}"
51 amd64_tobjs="ravenscar-thread.o amd64-ravenscar-thread.o \
52 amd64-tdep.o arch/amd64.o ${x86_tobjs}"
54 # Here are three sections to get a list of target specific object
55 # files according to target triplet $TARG.
57 # 1. Get the objects per cpu in $TARG.
61 cpu_obs="aarch32-tdep.o aarch64-tdep.o arch/aarch32.o \
62 arch/aarch64-insn.o arch/aarch64.o arch/aarch64-mte.o \
64 aarch64-ravenscar-thread.o";;
68 cpu_obs="alpha-tdep.o"
72 # Target: Unidentified ARC target
73 cpu_obs="arc-tdep.o arch/arc.o"
77 cpu_obs="aarch32-tdep.o arch/aarch32.o arch/arm.o \
78 arch/arm-get-next-pcs.o arm-tdep.o arm-none-tdep.o"
87 cpu_obs="${i386_tobjs}"
88 if test "x$enable_64_bit_bfd" = "xyes"; then
89 cpu_obs="${amd64_tobjs} ${cpu_obs}"
95 cpu_obs="${i386_tobjs}"
100 cpu_obs="ia64-tdep.o"
104 # Target: LoongArch baremetal
105 cpu_obs="loongarch-tdep.o arch/loongarch.o"
109 cpu_obs="riscv-tdep.o riscv-none-tdep.o arch/riscv.o \
110 ravenscar-thread.o riscv-ravenscar-thread.o";;
113 cpu_obs="${i386_tobjs} ${amd64_tobjs}";;
116 # Target: Tensilica Xtensa processors
117 cpu_obs="xtensa-tdep.o xtensa-config.o solib-svr4.o"
122 # 2. Get the objects per os in $TARG.
125 *-*-freebsd* | *-*-kfreebsd*-gnu)
126 os_obs="fbsd-tdep.o solib-svr4.o";;
127 *-*-netbsd* | *-*-knetbsd*-gnu)
128 os_obs="netbsd-tdep.o solib-svr4.o";;
130 os_obs="obsd-tdep.o solib-svr4.o";;
133 # 3. Get the rest of objects.
136 aarch64*-*-elf | aarch64*-*-rtems*)
137 # Target: AArch64 embedded system
138 gdb_target_obs="aarch64-newlib-tdep.o"
142 # Target: FreeBSD/aarch64
143 gdb_target_obs="aarch64-fbsd-tdep.o"
147 # Target: AArch64 linux
148 gdb_target_obs="aarch64-linux-tdep.o arch/aarch64.o\
149 arch/aarch64-mte-linux.o \
150 arch/aarch64-scalable-linux.o \
151 arch/arm.o arch/arm-linux.o arch/arm-get-next-pcs.o \
152 arm-tdep.o arm-linux-tdep.o \
153 glibc-tdep.o linux-tdep.o solib-svr4.o \
154 symfile-mem.o linux-record.o"
158 # Target: Little-endian Alpha running Linux
159 gdb_target_obs="alpha-mdebug-tdep.o alpha-linux-tdep.o \
160 linux-tdep.o solib-svr4.o"
162 alpha*-*-netbsd* | alpha*-*-knetbsd*-gnu)
163 # Target: NetBSD/alpha
164 gdb_target_obs="alpha-mdebug-tdep.o alpha-bsd-tdep.o \
168 # Target: OpenBSD/alpha
169 gdb_target_obs="alpha-mdebug-tdep.o alpha-bsd-tdep.o \
170 alpha-netbsd-tdep.o alpha-obsd-tdep.o netbsd-tdep.o"
175 gdb_require_amd_dbgapi=true
176 gdb_target_obs="amdgpu-tdep.o solib-rocm.o"
180 # Target: Matsushita mn10300 (AM33) running Linux
181 gdb_target_obs="mn10300-tdep.o mn10300-linux-tdep.o linux-tdep.o \
186 # Target: baremetal ARC elf32 (newlib) target
187 gdb_target_obs="arc-newlib-tdep.o"
191 # Target: ARC machine running Linux
192 gdb_target_obs="arc-linux-tdep.o linux-tdep.o solib-svr4.o"
195 arm*-wince-pe | arm*-*-mingw32ce*)
196 # Target: ARM based machine running Windows CE (win32)
197 gdb_target_obs="arm-wince-tdep.o windows-tdep.o"
200 # Target: ARM based machine running GNU/Linux
201 gdb_target_obs="arch/arm-linux.o arm-linux-tdep.o glibc-tdep.o \
202 solib-svr4.o symfile-mem.o linux-tdep.o linux-record.o"
205 # Target: FreeBSD/arm
206 gdb_target_obs="arm-fbsd-tdep.o"
208 arm*-*-netbsd* | arm*-*-knetbsd*-gnu)
210 gdb_target_obs="arm-netbsd-tdep.o"
213 # Target: OpenBSD/arm
214 gdb_target_obs="arm-bsd-tdep.o arm-obsd-tdep.o"
217 # Target: ARM embedded system
218 gdb_target_obs="arm-pikeos-tdep.o"
223 gdb_target_obs="avr-tdep.o"
227 # Target: Blackfin Linux
228 gdb_target_obs="bfin-tdep.o bfin-linux-tdep.o linux-tdep.o"
231 # Target: Blackfin processor
232 gdb_target_obs="bfin-tdep.o"
237 gdb_target_obs="bpf-tdep.o"
242 gdb_target_obs="cris-tdep.o cris-linux-tdep.o linux-tdep.o solib-svr4.o"
246 # Target: CSKY running GNU/Linux
247 gdb_target_obs="csky-tdep.o csky-linux-tdep.o glibc-tdep.o \
248 linux-tdep.o solib-svr4.o"
252 # Target: CSKY bare metal
253 gdb_target_obs="csky-tdep.o"
257 # Target: Fujitsu FRV processor
258 gdb_target_obs="frv-tdep.o frv-linux-tdep.o linux-tdep.o solib-frv.o"
261 moxie-*-elf | moxie-*-moxiebox | moxie-*-rtems*)
262 gdb_target_obs="moxie-tdep.o"
266 # Target: H8300 processor
267 gdb_target_obs="h8300-tdep.o"
271 # Target: HP PA-RISC running Linux
272 gdb_target_obs="hppa-linux-tdep.o glibc-tdep.o \
273 linux-tdep.o solib-svr4.o symfile-mem.o"
276 # Target: NetBSD/hppa
277 gdb_target_obs="hppa-bsd-tdep.o hppa-netbsd-tdep.o solib-svr4.o"
280 # Target: OpenBSD/hppa
281 gdb_target_obs="hppa-bsd-tdep.o hppa-obsd-tdep.o solib-svr4.o"
284 i[34567]86-*-darwin*)
285 # Target: Darwin/i386
286 gdb_target_obs="i386-darwin-tdep.o solib-darwin.o"
287 if test "x$enable_64_bit_bfd" = "xyes"; then
288 # Target: GNU/Linux x86-64
289 gdb_target_obs="amd64-darwin-tdep.o ${gdb_target_obs}"
294 gdb_target_obs="dicos-tdep.o i386-dicos-tdep.o"
296 i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
297 # Target: FreeBSD/i386
298 gdb_target_obs="i386-bsd-tdep.o i386-fbsd-tdep.o "
300 i[34567]86-*-netbsd* | i[34567]86-*-knetbsd*-gnu)
301 # Target: NetBSD/i386
302 gdb_target_obs="i386-bsd-tdep.o i386-netbsd-tdep.o "
304 i[34567]86-*-openbsd*)
305 # Target: OpenBSD/i386
306 gdb_target_obs="i386-bsd-tdep.o i386-obsd-tdep.o bsd-uthread.o"
308 i[34567]86-*-solaris2* | x86_64-*-solaris2*)
309 # Target: Solaris x86_64
310 gdb_target_obs="${i386_tobjs} ${amd64_tobjs} \
311 amd64-sol2-tdep.o i386-sol2-tdep.o sol2-tdep.o \
315 # Target: Intel 386 running GNU/Linux
316 gdb_target_obs="i386-linux-tdep.o \
318 solib-svr4.o symfile-mem.o \
319 linux-tdep.o linux-record.o \
320 arch/i386-linux-tdesc.o \
321 arch/x86-linux-tdesc-features.o"
322 if test "x$enable_64_bit_bfd" = "xyes"; then
323 # Target: GNU/Linux x86-64
324 gdb_target_obs="amd64-linux-tdep.o \
325 arch/amd64-linux-tdesc.o ${gdb_target_obs}"
329 # Target: Intel 386 running the GNU Hurd
330 gdb_target_obs="i386-gnu-tdep.o solib-svr4.o"
332 i[34567]86-*-cygwin*)
333 # Target: Intel 386 running win32
334 gdb_target_obs="i386-windows-tdep.o windows-tdep.o"
336 i[34567]86-*-mingw32*)
337 # Target: Intel 386 running win32
338 gdb_target_obs="i386-windows-tdep.o windows-tdep.o"
340 i[34567]86-*-go32* | i[34567]86-*-msdosdjgpp*)
341 # Target: i386 running DJGPP/go32.
342 gdb_target_obs="i386-go32-tdep.o"
346 # Target: Intel IA-64 running GNU/Linux
347 gdb_target_obs="ia64-linux-tdep.o linux-tdep.o \
348 solib-svr4.o symfile-mem.o"
351 # Target: Intel IA-64 running OpenVMS
352 gdb_target_obs="ia64-vms-tdep.o"
356 gdb_target_obs="iq2000-tdep.o"
360 gdb_target_obs="lm32-tdep.o"
364 # Target: LoongArch running Linux
365 gdb_target_obs="loongarch-linux-tdep.o glibc-tdep.o \
366 linux-tdep.o solib-svr4.o"
370 # Target: Renesas M32C family
371 gdb_target_obs="m32c-tdep.o"
375 # Target: Renesas M32R running GNU/Linux
376 gdb_target_obs="m32r-tdep.o m32r-linux-tdep.o \
377 glibc-tdep.o solib-svr4.o symfile-mem.o \
381 # Target: Renesas m32r processor
382 gdb_target_obs="m32r-tdep.o"
385 m68hc11*-*-*|m6811*-*-*)
386 # Target: Motorola 68HC11 processor
387 gdb_target_obs="m68hc11-tdep.o"
390 m68*-*-aout* | m68*-*-coff* | m68*-*-elf* | m68*-*-rtems* | m68*-*-uclinux* | \
392 # Target: Motorola m68k embedded
393 gdb_target_obs="m68k-tdep.o"
396 # Target: Motorola m68k with a.out and ELF
397 gdb_target_obs="m68k-tdep.o m68k-linux-tdep.o solib-svr4.o \
398 linux-tdep.o glibc-tdep.o symfile-mem.o"
400 m68*-*-netbsd* | m68*-*-knetbsd*-gnu)
401 # Target: NetBSD/m68k
402 gdb_target_obs="m68k-tdep.o m68k-bsd-tdep.o"
405 # Target: OpenBSD/m68k
406 gdb_target_obs="m68k-tdep.o m68k-bsd-tdep.o"
410 # Target: Toshiba Media Processor (MEP)
411 gdb_target_obs="mep-tdep.o"
412 # No sim needed. Target uses SID.
415 microblaze*-linux-*|microblaze*-*-linux*)
416 # Target: Xilinx MicroBlaze running Linux
417 gdb_target_obs="microblaze-tdep.o microblaze-linux-tdep.o solib-svr4.o \
418 symfile-mem.o linux-tdep.o"
421 # Target: Xilinx MicroBlaze running standalone
422 gdb_target_obs="microblaze-tdep.o"
427 gdb_target_obs="mips-tdep.o mips-linux-tdep.o glibc-tdep.o \
428 solib-svr4.o symfile-mem.o linux-tdep.o"
430 mips*-*-netbsd* | mips*-*-knetbsd*-gnu)
431 # Target: MIPS running NetBSD
432 gdb_target_obs="mips-tdep.o mips-netbsd-tdep.o"
435 # Target: MIPS running FreeBSD
436 gdb_target_obs="mips-tdep.o mips-fbsd-tdep.o"
439 # Target: OpenBSD/mips64
440 gdb_target_obs="mips-tdep.o mips64-obsd-tdep.o"
444 gdb_target_obs="mips-tdep.o mips-sde-tdep.o"
448 gdb_target_obs="mips-tdep.o"
452 gdb_target_obs="mips-tdep.o"
456 # Target: Matsushita mn10300
457 gdb_target_obs="mn10300-tdep.o"
461 gdb_target_obs="msp430-tdep.o"
465 # Target: AndesTech NDS32 core
466 gdb_target_obs="nds32-tdep.o"
470 # Target: Altera Nios II running Linux
471 gdb_target_obs="nios2-tdep.o nios2-linux-tdep.o solib-svr4.o \
472 symfile-mem.o glibc-tdep.o linux-tdep.o"
476 # Target: Altera Nios II bare-metal
477 gdb_target_obs="nios2-tdep.o"
481 # Target: OpenCores OpenRISC 1000 32-bit running Linux
482 gdb_target_obs="or1k-tdep.o or1k-linux-tdep.o solib-svr4.o \
483 symfile-mem.o glibc-tdep.o linux-tdep.o"
486 or1k-*-* | or1knd-*-*)
487 # Target: OpenCores OpenRISC 1000 32-bit implementation bare metal
488 gdb_target_obs="or1k-tdep.o"
492 # Target: FreeBSD/powerpc
493 gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppc64-tdep.o \
495 ravenscar-thread.o ppc-ravenscar-thread.o"
498 powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu)
499 # Target: NetBSD/powerpc
500 gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppc-netbsd-tdep.o \
501 ravenscar-thread.o ppc-ravenscar-thread.o"
504 # Target: OpenBSD/powerpc
505 gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppc-obsd-tdep.o \
506 ravenscar-thread.o ppc-ravenscar-thread.o"
508 powerpc-*-aix* | rs6000-*-* | powerpc64-*-aix*)
509 # Target: PowerPC running AIX
510 gdb_target_obs="rs6000-tdep.o rs6000-aix-tdep.o xcoffread.o \
511 ppc-sysv-tdep.o solib-aix.o \
512 ravenscar-thread.o ppc-ravenscar-thread.o"
515 # Target: PowerPC running Linux
516 gdb_target_obs="rs6000-tdep.o ppc-linux-tdep.o ppc-sysv-tdep.o \
517 ppc64-tdep.o solib-svr4.o \
518 glibc-tdep.o symfile-mem.o linux-tdep.o \
519 ravenscar-thread.o ppc-ravenscar-thread.o \
521 arch/ppc-linux-common.o"
524 # Target: PowerPC running Lynx178.
525 gdb_target_obs="rs6000-tdep.o rs6000-lynx178-tdep.o \
526 xcoffread.o ppc-sysv-tdep.o \
527 ravenscar-thread.o ppc-ravenscar-thread.o"
530 # Target: PowerPC running eabi
531 gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o solib-svr4.o \
532 ravenscar-thread.o ppc-ravenscar-thread.o"
536 # Target: S390 running Linux
537 gdb_target_obs="s390-linux-tdep.o s390-tdep.o solib-svr4.o \
538 linux-tdep.o linux-record.o symfile-mem.o"
542 # Target: FreeBSD/riscv
543 gdb_target_obs="riscv-fbsd-tdep.o"
547 # Target: Linux/RISC-V
548 gdb_target_obs="riscv-linux-tdep.o glibc-tdep.o \
549 linux-tdep.o solib-svr4.o symfile-mem.o linux-record.o"
553 # Target: RISC-V architecture
558 # Target: Renesas rl78
559 gdb_target_obs="rl78-tdep.o"
564 gdb_target_obs="rx-tdep.o"
568 # Target: GNU/Linux Super-H
569 gdb_target_obs="sh-tdep.o sh-linux-tdep.o \
570 solib-svr4.o symfile-mem.o \
571 glibc-tdep.o linux-tdep.o"
573 sh*-*-netbsd* | sh*-*-knetbsd*-gnu)
575 gdb_target_obs="sh-tdep.o sh-netbsd-tdep.o"
579 gdb_target_obs="sh-tdep.o sh-netbsd-tdep.o"
582 # Target: Embedded Renesas Super-H processor
583 gdb_target_obs="sh-tdep.o"
587 # Target: GNU/Linux SPARC
588 gdb_target_obs="sparc-tdep.o \
589 sparc-linux-tdep.o solib-svr4.o symfile-mem.o \
591 ravenscar-thread.o sparc-ravenscar-thread.o"
592 if test "x$enable_64_bit_bfd" = "xyes"; then
593 # Target: GNU/Linux UltraSPARC
594 gdb_target_obs="sparc64-tdep.o \
595 sparc64-linux-tdep.o ${gdb_target_obs}"
599 # Target: GNU/Linux UltraSPARC
600 gdb_target_obs="sparc64-tdep.o \
601 sparc64-linux-tdep.o sparc-tdep.o \
602 sparc-linux-tdep.o solib-svr4.o linux-tdep.o \
603 ravenscar-thread.o sparc-ravenscar-thread.o"
605 sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu)
606 # Target: FreeBSD/sparc64
607 gdb_target_obs="sparc-tdep.o sparc64-tdep.o sparc64-fbsd-tdep.o \
608 ravenscar-thread.o sparc-ravenscar-thread.o"
610 sparc-*-netbsd* | sparc-*-knetbsd*-gnu)
611 # Target: NetBSD/sparc
612 gdb_target_obs="sparc-tdep.o sparc-netbsd-tdep.o \
613 ravenscar-thread.o sparc-ravenscar-thread.o"
615 sparc64-*-netbsd* | sparc64-*-knetbsd*-gnu)
616 # Target: NetBSD/sparc64
617 gdb_target_obs="sparc64-tdep.o sparc64-netbsd-tdep.o sparc-tdep.o \
618 sparc-netbsd-tdep.o \
619 ravenscar-thread.o sparc-ravenscar-thread.o"
622 # Target: OpenBSD/sparc
623 gdb_target_obs="sparc-tdep.o sparc-netbsd-tdep.o sparc-obsd-tdep.o \
624 netbsd-tdep.o bsd-uthread.o \
625 ravenscar-thread.o sparc-ravenscar-thread.o"
628 # Target: OpenBSD/sparc64
629 gdb_target_obs="sparc64-tdep.o sparc64-netbsd-tdep.o sparc64-obsd-tdep.o \
630 sparc-tdep.o sparc-netbsd-tdep.o sparc-obsd-tdep.o \
631 netbsd-tdep.o bsd-uthread.o \
632 ravenscar-thread.o sparc-ravenscar-thread.o"
634 sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*)
635 # Target: Solaris UltraSPARC
636 gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o sparc-tdep.o \
637 sparc-sol2-tdep.o sol2-tdep.o solib-svr4.o \
638 ravenscar-thread.o sparc-ravenscar-thread.o"
642 gdb_target_obs="sparc-tdep.o \
643 ravenscar-thread.o sparc-ravenscar-thread.o"
647 gdb_target_obs="sparc-tdep.o sparc64-tdep.o \
648 ravenscar-thread.o sparc-ravenscar-thread.o"
652 # Target: Freescale S12z
653 gdb_target_obs="s12z-tdep.o"
657 # Target: GNU/Linux TI C6x
658 gdb_target_obs="tic6x-tdep.o tic6x-linux-tdep.o solib-dsbt.o \
659 glibc-tdep.o linux-tdep.o"
664 gdb_target_obs="tic6x-tdep.o"
669 gdb_target_obs="tilegx-tdep.o tilegx-linux-tdep.o solib-svr4.o \
670 symfile-mem.o glibc-tdep.o linux-tdep.o"
674 # Target: Sanyo Xstormy16a processor
675 gdb_target_obs="xstormy16-tdep.o"
676 # No simulator libraries are needed -- target uses SID.
680 gdb_target_obs="ft32-tdep.o"
683 v850*-*-elf | v850*-*-rtems*)
684 # Target: NEC V850 processor
685 gdb_target_obs="v850-tdep.o"
688 vax-*-netbsd* | vax-*-knetbsd*-gnu)
690 gdb_target_obs="vax-tdep.o solib-svr4.o"
693 # Target: OpenBSD/vax
694 gdb_target_obs="vax-tdep.o"
698 gdb_target_obs="vax-tdep.o"
702 # Target: Darwin/x86-64
703 gdb_target_obs="${i386_tobjs} \
704 i386-darwin-tdep.o amd64-darwin-tdep.o \
709 # Target: DICOS/x86-64
710 gdb_target_obs="${i386_tobjs} \
711 dicos-tdep.o i386-dicos-tdep.o amd64-dicos-tdep.o"
714 gdb_target_obs="${i386_tobjs}"
717 # Target: GNU/Linux x86-64
718 gdb_target_obs="amd64-linux-tdep.o ${i386_tobjs} \
719 i386-linux-tdep.o glibc-tdep.o \
720 solib-svr4.o symfile-mem.o linux-tdep.o linux-record.o \
721 arch/i386-linux-tdesc.o arch/amd64-linux-tdesc.o \
722 arch/x86-linux-tdesc-features.o"
724 x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
725 # Target: FreeBSD/amd64
726 gdb_target_obs="amd64-fbsd-tdep.o ${i386_tobjs} \
727 i386-bsd-tdep.o i386-fbsd-tdep.o"
729 x86_64-*-mingw* | x86_64-*-cygwin*)
730 # Target: MingW/amd64
731 gdb_target_obs="amd64-windows-tdep.o \
732 ${i386_tobjs} i386-windows-tdep.o \
735 x86_64-*-netbsd* | x86_64-*-knetbsd*-gnu)
736 # Target: NetBSD/amd64
737 gdb_target_obs="amd64-netbsd-tdep.o ${i386_tobjs}"
740 # Target: OpenBSD/amd64
741 gdb_target_obs="amd64-obsd-tdep.o ${i386_tobjs} \
742 i386-bsd-tdep.o i386-obsd-tdep.o \
746 gdb_target_obs="${amd64_tobjs} ${i386_tobjs} i386-bsd-tdep.o"
749 # Target: GNU/Linux Xtensa
750 gdb_target_obs="xtensa-linux-tdep.o symfile-mem.o linux-tdep.o"
754 gdb_target_obs="z80-tdep.o"
761 gdb_target_obs="${cpu_obs} ${os_obs} ${gdb_target_obs}"
763 # Get the sim settings.
764 # NB: Target matching is aligned with sim/configure.ac. Changes must be kept
765 # in sync with that file.
768 aarch64*-*-*) gdb_sim=aarch64 ;;
769 avr*-*-*) gdb_sim=avr ;;
770 bfin-*-*) gdb_sim=bfin ;;
771 bpf-*-*) gdb_sim=bpf ;;
772 cris-*-*|cris32-*-*) gdb_sim=cris ;;
773 frv-*-*) gdb_sim=frv ;;
774 ft32-*-*) gdb_sim=ft32 ;;
775 h8300*-*-*) gdb_sim=h8300 ;;
776 iq2000-*-*) gdb_sim=iq2000 ;;
777 lm32-*-*) gdb_sim=lm32 ;;
778 m32c-*-*) gdb_sim=m32c ;;
779 m32r-*-*) gdb_sim=m32r ;;
780 m68hc11-*-*|m6811-*-*) gdb_sim=m68hc11 ;;
781 microblaze*-*-*) gdb_sim=microblaze ;;
782 mips*-*-*) gdb_sim=mips ;;
783 mn10300*-*-*) gdb_sim=mn10300 ;;
784 moxie-*-*) gdb_sim=moxie ;;
785 msp430*-*-*) gdb_sim=msp430 ;;
786 or1k*-*-*) gdb_sim=or1k ;;
787 powerpc*-*-*) gdb_sim=ppc ;;
788 riscv*-*-*) gdb_sim=riscv ;;
789 rl78-*-*) gdb_sim=rl78 ;;
790 rx-*-*) gdb_sim=rx ;;
791 sh*-*-*) gdb_sim=sh ;;
792 sparc-*-*) gdb_sim=erc32 ;;
793 v850*-*-*) gdb_sim=v850 ;;
795 if test "x$gdb_sim" != "x"; then
796 gdb_sim="../sim/${gdb_sim}/libsim.a"
799 # map target onto default OS ABI
802 *-*-freebsd* | *-*-kfreebsd*-gnu)
803 gdb_osabi=GDB_OSABI_FREEBSD ;;
804 *-*-linux* | *-*-uclinux*)
805 gdb_osabi=GDB_OSABI_LINUX ;;
806 m68*-*-openbsd* | m88*-*-openbsd* | vax-*-openbsd*) ;;
807 *-*-openbsd*) gdb_osabi=GDB_OSABI_OPENBSD ;;
808 *-*-solaris*) gdb_osabi=GDB_OSABI_SOLARIS ;;
809 *-*-*-gnu*) ;; # prevent non-GNU kernels to match the Hurd rule below
810 *-*-gnu*) gdb_osabi=GDB_OSABI_HURD ;;
811 *-*-mingw32ce*) gdb_osabi=GDB_OSABI_WINCE ;;
812 *-*-mingw*) gdb_osabi=GDB_OSABI_WINDOWS ;;
813 *-*-cygwin*) gdb_osabi=GDB_OSABI_CYGWIN ;;
814 *-*-dicos*) gdb_osabi=GDB_OSABI_DICOS ;;
815 powerpc-*-aix* | rs6000-*-* | powerpc64-*-aix*)
816 gdb_osabi=GDB_OSABI_AIX ;;
819 # Check whether this target supports gcore.
820 # Such target has to call set_gdbarch_find_memory_regions.
822 for t in x ${gdb_target_obs}; do
823 if test "$t" = linux-tdep.o; then