[sim] Run spellcheck.sh in sim (part 2)
[binutils-gdb.git] / gdb / configure.tgt
blob62df71b13fa142b9f775c4970ee71a31573cb19b
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
10 #                         target
12 # NOTE: Every file added to a gdb_target_obs variable for any target here
13 #       must also be added to either:
15 #         - ALL_TARGET_OBS
16 #         - ALL_64_TARGET_OBS
17 #         - ALL_AMD_DBGAPI_TARGET_OBS
19 #       in Makefile.in!
21 case $targ in
22  *-*-irix* | \
23  *-*-solaris2.[01] | *-*-solaris2.[2-9]* | *-*-solaris2.10* | \
24  *-*-netbsdpe* | \
25  alpha*-*-osf* | \
26  alpha*-*-freebsd* | \
27  alpha*-*-kfreebsd*-gnu | \
28  d10v-*-* | \
29  hppa*-*-hiux* | \
30  i[34567]86-ncr-* | \
31  m68*-cisco*-* | \
32  m68*-tandem-* | \
33  m68*-*-os68k* | \
34  mips*-*-pe | \
35  rs6000-*-lynxos* | \
36  score-*-* | \
37  sh*-*-pe | \
38  hppa*-*-hpux* | \
39  ia64-*-hpux* | \
40  *-*-vxworks* | \
41  mt-*-* | \
42  null)
43     echo "*** Configuration $targ is obsolete." >&2
44     echo "*** Support has been REMOVED." >&2
45     exit 1
46     ;;
47 esac
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.
59 case "${targ}" in
60 aarch64*-*-*)
61         cpu_obs="aarch32-tdep.o aarch64-tdep.o arch/aarch32.o \
62                  arch/aarch64-insn.o arch/aarch64.o arch/aarch64-mte.o \
63                  ravenscar-thread.o \
64                  aarch64-ravenscar-thread.o";;
66 alpha*-*-*)
67         # Target: Alpha
68         cpu_obs="alpha-tdep.o"
69         ;;
71 arc*-*-*)
72         # Target: Unidentified ARC target
73         cpu_obs="arc-tdep.o arch/arc.o"
74         ;;
76 arm*-*-*)
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"
79         ;;
81 hppa*-*-*)
82         # Target: HP PA-RISC
83         cpu_obs="hppa-tdep.o"
84         ;;
86 i[34567]86-*-*)
87         cpu_obs="${i386_tobjs}"
88         if test "x$enable_64_bit_bfd" = "xyes"; then
89            cpu_obs="${amd64_tobjs} ${cpu_obs}"
90         fi
91         ;;
93 ia16*-*-*)
94         # Target: Intel IA-16
95         cpu_obs="${i386_tobjs}"
96         ;;
98 ia64*-*-*)
99         # Target: Intel IA-64
100         cpu_obs="ia64-tdep.o"
101         ;;
103 loongarch*-*-*)
104         # Target: LoongArch baremetal
105         cpu_obs="loongarch-tdep.o arch/loongarch.o"
106         ;;
108 riscv*-*-*)
109         cpu_obs="riscv-tdep.o riscv-none-tdep.o arch/riscv.o \
110                  ravenscar-thread.o riscv-ravenscar-thread.o";;
112 x86_64-*-*)
113         cpu_obs="${i386_tobjs} ${amd64_tobjs}";;
115 xtensa*)
116         # Target: Tensilica Xtensa processors
117         cpu_obs="xtensa-tdep.o xtensa-config.o solib-svr4.o"
118         ;;
120 esac
122 # 2. Get the objects per os in $TARG.
124 case "${targ}" in
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";;
129 *-*-openbsd*)
130         os_obs="obsd-tdep.o solib-svr4.o";;
131 esac
133 # 3. Get the rest of objects.
135 case "${targ}" in
136 aarch64*-*-elf | aarch64*-*-rtems*)
137         # Target: AArch64 embedded system
138         gdb_target_obs="aarch64-newlib-tdep.o"
139         ;;
141 aarch64*-*-freebsd*)
142         # Target: FreeBSD/aarch64
143         gdb_target_obs="aarch64-fbsd-tdep.o"
144         ;;
146 aarch64*-*-linux*)
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"
155         ;;
157 alpha*-*-linux*)
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"
161         ;;
162 alpha*-*-netbsd* | alpha*-*-knetbsd*-gnu)
163         # Target: NetBSD/alpha
164         gdb_target_obs="alpha-mdebug-tdep.o alpha-bsd-tdep.o \
165                         alpha-netbsd-tdep.o"
166         ;;
167 alpha*-*-openbsd*)
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"
171         ;;
173 amdgcn*-*-*)
174         # Target: AMDGPU
175         gdb_require_amd_dbgapi=true
176         gdb_target_obs="amdgpu-tdep.o solib-rocm.o"
177         ;;
179 am33_2.0*-*-linux*)
180         # Target: Matsushita mn10300 (AM33) running Linux
181         gdb_target_obs="mn10300-tdep.o mn10300-linux-tdep.o linux-tdep.o \
182                         solib-svr4.o"
183         ;;
185 arc*-*-elf32)
186         # Target: baremetal ARC elf32 (newlib) target
187         gdb_target_obs="arc-newlib-tdep.o"
188         ;;
190 arc*-*-linux*)
191         # Target: ARC machine running Linux
192         gdb_target_obs="arc-linux-tdep.o linux-tdep.o solib-svr4.o"
193         ;;
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"
198         ;;
199 arm*-*-linux*)
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"
203         ;;
204 arm*-*-freebsd*)
205         # Target: FreeBSD/arm
206         gdb_target_obs="arm-fbsd-tdep.o"
207         ;;
208 arm*-*-netbsd* | arm*-*-knetbsd*-gnu)
209         # Target: NetBSD/arm
210         gdb_target_obs="arm-netbsd-tdep.o"
211         ;;
212 arm*-*-openbsd*)
213         # Target: OpenBSD/arm
214         gdb_target_obs="arm-bsd-tdep.o arm-obsd-tdep.o"
215         ;;
216 arm*-*-*)
217         # Target: ARM embedded system
218         gdb_target_obs="arm-pikeos-tdep.o"
219         ;;
221 avr-*-*)
222         # Target: AVR
223         gdb_target_obs="avr-tdep.o"
224         ;;
226 bfin-*-*linux*)
227         # Target: Blackfin Linux
228         gdb_target_obs="bfin-tdep.o bfin-linux-tdep.o linux-tdep.o"
229         ;;
230 bfin-*-*)
231         # Target: Blackfin processor
232         gdb_target_obs="bfin-tdep.o"
233         ;;
235 bpf-*-*)
236         # Target: eBPF
237         gdb_target_obs="bpf-tdep.o"
238         ;;
240 cris*)
241         # Target: CRIS
242         gdb_target_obs="cris-tdep.o cris-linux-tdep.o linux-tdep.o solib-svr4.o"
243         ;;
245 csky*-*-linux*)
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"
249         ;;
251 csky*-*-*)
252         # Target: CSKY bare metal
253         gdb_target_obs="csky-tdep.o"
254         ;;
256 frv-*-*)
257         # Target: Fujitsu FRV processor
258         gdb_target_obs="frv-tdep.o frv-linux-tdep.o linux-tdep.o solib-frv.o"
259         ;;
261 moxie-*-elf | moxie-*-moxiebox | moxie-*-rtems*)
262         gdb_target_obs="moxie-tdep.o"
263         ;;
265 h8300-*-*)
266         # Target: H8300 processor
267         gdb_target_obs="h8300-tdep.o"
268         ;;
270 hppa*-*-linux*)
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"
274         ;;
275 hppa*-*-netbsd*)
276         # Target: NetBSD/hppa
277         gdb_target_obs="hppa-bsd-tdep.o hppa-netbsd-tdep.o solib-svr4.o"
278         ;;
279 hppa*-*-openbsd*)
280         # Target: OpenBSD/hppa
281         gdb_target_obs="hppa-bsd-tdep.o hppa-obsd-tdep.o solib-svr4.o"
282         ;;
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}"
290         fi
291         ;;
292 i[34567]86-*-dicos*)
293         # Target: DICOS/i386
294         gdb_target_obs="dicos-tdep.o i386-dicos-tdep.o"
295         ;;
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 "
299         ;;
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 "
303         ;;
304 i[34567]86-*-openbsd*)
305         # Target: OpenBSD/i386
306         gdb_target_obs="i386-bsd-tdep.o i386-obsd-tdep.o bsd-uthread.o"
307         ;;
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 \
312                          solib-svr4.o"
313         ;;
314 i[34567]86-*-linux*)
315         # Target: Intel 386 running GNU/Linux
316         gdb_target_obs="i386-linux-tdep.o \
317                         glibc-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}"
326         fi
327         ;;
328 i[34567]86-*-gnu*)
329         # Target: Intel 386 running the GNU Hurd
330         gdb_target_obs="i386-gnu-tdep.o solib-svr4.o"
331         ;;
332 i[34567]86-*-cygwin*)
333         # Target: Intel 386 running win32
334         gdb_target_obs="i386-windows-tdep.o windows-tdep.o"
335         ;;
336 i[34567]86-*-mingw32*)
337         # Target: Intel 386 running win32
338         gdb_target_obs="i386-windows-tdep.o windows-tdep.o"
339         ;;
340 i[34567]86-*-go32* | i[34567]86-*-msdosdjgpp*)
341         # Target: i386 running DJGPP/go32.
342         gdb_target_obs="i386-go32-tdep.o"
343         ;;
345 ia64-*-linux*)
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"
349         ;;
350 ia64-*-*vms*)
351         # Target: Intel IA-64 running OpenVMS
352         gdb_target_obs="ia64-vms-tdep.o"
353         ;;
355 iq2000-*-*)
356         gdb_target_obs="iq2000-tdep.o"
357         ;;
359 lm32-*-*)               
360         gdb_target_obs="lm32-tdep.o" 
361         ;;
363 loongarch*-*-linux*)
364         # Target: LoongArch running Linux
365         gdb_target_obs="loongarch-linux-tdep.o glibc-tdep.o \
366                         linux-tdep.o solib-svr4.o"
367         ;;
369 m32c-*-*)
370         # Target: Renesas M32C family
371         gdb_target_obs="m32c-tdep.o"
372         ;;
374 m32r*-*-linux*)
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 \
378                         linux-tdep.o"
379         ;;
380 m32r*-*-*)
381         # Target: Renesas m32r processor
382         gdb_target_obs="m32r-tdep.o"
383         ;;
385 m68hc11*-*-*|m6811*-*-*)
386         # Target: Motorola 68HC11 processor
387         gdb_target_obs="m68hc11-tdep.o"
388         ;;
390 m68*-*-aout* | m68*-*-coff* | m68*-*-elf* | m68*-*-rtems* | m68*-*-uclinux* | \
391 fido-*-elf*)
392         # Target: Motorola m68k embedded
393         gdb_target_obs="m68k-tdep.o"
394         ;;
395 m68*-*-linux*)
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"
399         ;;
400 m68*-*-netbsd* | m68*-*-knetbsd*-gnu)
401         # Target: NetBSD/m68k
402         gdb_target_obs="m68k-tdep.o m68k-bsd-tdep.o"
403         ;;
404 m68*-*-openbsd*)
405         # Target: OpenBSD/m68k
406         gdb_target_obs="m68k-tdep.o m68k-bsd-tdep.o"
407         ;;
409 mep-*-*)
410         # Target: Toshiba Media Processor (MEP)
411         gdb_target_obs="mep-tdep.o"
412         # No sim needed. Target uses SID.
413         ;;
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"
419         ;;
420 microblaze*-*-*)
421         # Target: Xilinx MicroBlaze running standalone
422         gdb_target_obs="microblaze-tdep.o"
423         ;;
425 mips*-*-linux*)
426         # Target: Linux/MIPS
427         gdb_target_obs="mips-tdep.o mips-linux-tdep.o glibc-tdep.o \
428                         solib-svr4.o symfile-mem.o linux-tdep.o"
429         ;;
430 mips*-*-netbsd* | mips*-*-knetbsd*-gnu)
431         # Target: MIPS running NetBSD
432         gdb_target_obs="mips-tdep.o mips-netbsd-tdep.o"
433         ;;
434 mips*-*-freebsd*)
435         # Target: MIPS running FreeBSD
436         gdb_target_obs="mips-tdep.o mips-fbsd-tdep.o"
437         ;;
438 mips64*-*-openbsd*)
439         # Target: OpenBSD/mips64
440         gdb_target_obs="mips-tdep.o mips64-obsd-tdep.o"
441         ;;
442 mips*-sde*-elf*)
443         # Target: MIPS SDE
444         gdb_target_obs="mips-tdep.o mips-sde-tdep.o"
445         ;;
446 mips*-*-elf)
447         # Target: MIPS ELF
448         gdb_target_obs="mips-tdep.o"
449         ;;
450 mips*-*-*)
451         # Target: MIPS
452         gdb_target_obs="mips-tdep.o"
453         ;;
455 mn10300-*-*)
456         # Target: Matsushita mn10300
457         gdb_target_obs="mn10300-tdep.o"
458         ;;
460 msp430-*-elf*)
461         gdb_target_obs="msp430-tdep.o"
462         ;;
464 nds32*-*-elf)
465         # Target: AndesTech NDS32 core
466         gdb_target_obs="nds32-tdep.o"
467         ;;
469 nios2*-*-linux*)
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"
473         ;;
475 nios2*-*-*)
476         # Target: Altera Nios II bare-metal
477         gdb_target_obs="nios2-tdep.o"
478         ;;
480 or1k*-*-linux*)
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"
484         ;;
486 or1k-*-* | or1knd-*-*)
487         # Target: OpenCores OpenRISC 1000 32-bit implementation bare metal
488         gdb_target_obs="or1k-tdep.o"
489         ;;
491 powerpc*-*-freebsd*)
492         # Target: FreeBSD/powerpc
493         gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppc64-tdep.o \
494                         ppc-fbsd-tdep.o \
495                         ravenscar-thread.o ppc-ravenscar-thread.o"
496         ;;
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"
502         ;;
503 powerpc-*-openbsd*)
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"
507         ;;
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"
513         ;;
514 powerpc*-*-linux*)
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 \
520                         linux-record.o \
521                         arch/ppc-linux-common.o"
522         ;;
523 powerpc-*-lynx*178)
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"
528         ;;
529 powerpc*-*-*)
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"
533         ;;
535 s390*-*-linux*)
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"
539         ;;
541 riscv*-*-freebsd*)
542         # Target: FreeBSD/riscv
543         gdb_target_obs="riscv-fbsd-tdep.o"
544         ;;
546 riscv*-*-linux*)
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"
550         ;;
552 riscv*-*-*)
553         # Target: RISC-V architecture
554         gdb_target_obs=""
555         ;;
557 rl78-*-elf)
558         # Target: Renesas rl78
559         gdb_target_obs="rl78-tdep.o"
560         ;;
562 rx-*-*)
563         # Target: Renesas RX
564         gdb_target_obs="rx-tdep.o"
565         ;;
567 sh*-*-linux*)
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"
572         ;;
573 sh*-*-netbsd* | sh*-*-knetbsd*-gnu)
574         # Target: NetBSD/sh
575         gdb_target_obs="sh-tdep.o sh-netbsd-tdep.o"
576         ;;
577 sh*-*-openbsd*)
578         # Target: OpenBSD/sh
579         gdb_target_obs="sh-tdep.o sh-netbsd-tdep.o"
580         ;;
581 sh*)
582         # Target: Embedded Renesas Super-H processor
583         gdb_target_obs="sh-tdep.o"
584         ;;
586 sparc-*-linux*)
587         # Target: GNU/Linux SPARC
588         gdb_target_obs="sparc-tdep.o \
589                         sparc-linux-tdep.o solib-svr4.o symfile-mem.o \
590                         linux-tdep.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}"
596         fi
597         ;;
598 sparc64-*-linux*)
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"
604         ;;
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"
609         ;;
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"
614         ;;
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"
620         ;;
621 sparc-*-openbsd*)
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"
626         ;;
627 sparc64-*-openbsd*)
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"
633         ;;
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"
639         ;;
640 sparc-*-*)
641         # Target: SPARC
642         gdb_target_obs="sparc-tdep.o \
643                         ravenscar-thread.o sparc-ravenscar-thread.o"
644         ;;
645 sparc64-*-*)
646         # Target: UltraSPARC
647         gdb_target_obs="sparc-tdep.o sparc64-tdep.o \
648                         ravenscar-thread.o sparc-ravenscar-thread.o"
649         ;;
651 s12z-*-*)
652         # Target: Freescale S12z
653         gdb_target_obs="s12z-tdep.o"
654         ;;
656 tic6x-*-*linux)
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"
660         ;;
662 tic6x-*-*)
663         # Target: TI C6X 
664         gdb_target_obs="tic6x-tdep.o"
665         ;;
667 tilegx-*-linux*)
668         # Target: TILE-Gx
669         gdb_target_obs="tilegx-tdep.o tilegx-linux-tdep.o solib-svr4.o \
670                         symfile-mem.o glibc-tdep.o linux-tdep.o"
671         ;;
673 xstormy16-*-*)
674         # Target: Sanyo Xstormy16a processor
675         gdb_target_obs="xstormy16-tdep.o"
676         # No simulator libraries are needed -- target uses SID.
677         ;;
679 ft32-*-elf)
680         gdb_target_obs="ft32-tdep.o"
681         ;;
683 v850*-*-elf | v850*-*-rtems*)
684         # Target: NEC V850 processor
685         gdb_target_obs="v850-tdep.o"
686         ;;
688 vax-*-netbsd* | vax-*-knetbsd*-gnu)
689         # Target: NetBSD/vax
690         gdb_target_obs="vax-tdep.o solib-svr4.o"
691         ;;
692 vax-*-openbsd*)
693         # Target: OpenBSD/vax
694         gdb_target_obs="vax-tdep.o"
695         ;;
696 vax-*-*)
697         # Target: VAX
698         gdb_target_obs="vax-tdep.o"
699         ;;
701 x86_64-*-darwin*)
702         # Target: Darwin/x86-64
703         gdb_target_obs="${i386_tobjs} \
704                         i386-darwin-tdep.o amd64-darwin-tdep.o \
705                         solib-darwin.o"
706         ;;
708 x86_64-*-dicos*)
709         # Target: DICOS/x86-64
710         gdb_target_obs="${i386_tobjs} \
711                         dicos-tdep.o i386-dicos-tdep.o amd64-dicos-tdep.o"
712         ;;
713 x86_64-*-elf*)
714         gdb_target_obs="${i386_tobjs}"
715         ;;
716 x86_64-*-linux*)
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"
723         ;;
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"
728         ;;
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 \
733                         windows-tdep.o"
734         ;;
735 x86_64-*-netbsd* | x86_64-*-knetbsd*-gnu)
736         # Target: NetBSD/amd64
737         gdb_target_obs="amd64-netbsd-tdep.o ${i386_tobjs}"
738         ;;
739 x86_64-*-openbsd*)
740         # Target: OpenBSD/amd64
741         gdb_target_obs="amd64-obsd-tdep.o ${i386_tobjs} \
742                         i386-bsd-tdep.o i386-obsd-tdep.o \
743                         bsd-uthread.o"
744         ;;
745 x86_64-*-rtems*)
746         gdb_target_obs="${amd64_tobjs} ${i386_tobjs} i386-bsd-tdep.o"
747         ;;
748 xtensa*-*-*linux*)
749         # Target: GNU/Linux Xtensa
750         gdb_target_obs="xtensa-linux-tdep.o symfile-mem.o linux-tdep.o"
751         ;;
752 z80*)
753         # Target: Z80
754         gdb_target_obs="z80-tdep.o"
755         ;;
757 esac
759 # Put them together.
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.
767 case "${targ}" in
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 ;;
794 esac
795 if test "x$gdb_sim" != "x"; then
796   gdb_sim="../sim/${gdb_sim}/libsim.a"
799 # map target onto default OS ABI
801 case "${targ}" in
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 ;;
817 esac
819 # Check whether this target supports gcore.
820 # Such target has to call set_gdbarch_find_memory_regions.
821 gdb_have_gcore=false
822 for t in x ${gdb_target_obs}; do
823   if test "$t" = linux-tdep.o; then
824     gdb_have_gcore=true
825   fi
826 done