gdb: Add maint set ignore-prologue-end-flag
[binutils-gdb.git] / gdb / configure.tgt
1 # Mappings from configurations to GDB target definitions. This is
2 # invoked from the autoconf generated configure script.
3
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
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
12 # in Makefile.in!
13
14 case $targ in
15 *-*-irix* | \
16 *-*-solaris2.[01] | *-*-solaris2.[2-9]* | *-*-solaris2.10* | \
17 *-*-netbsdpe* | \
18 alpha*-*-osf* | \
19 alpha*-*-freebsd* | \
20 alpha*-*-kfreebsd*-gnu | \
21 d10v-*-* | \
22 hppa*-*-hiux* | \
23 i[34567]86-ncr-* | \
24 m68*-cisco*-* | \
25 m68*-tandem-* | \
26 m68*-*-os68k* | \
27 mips*-*-pe | \
28 rs6000-*-lynxos* | \
29 sh*-*-pe | \
30 hppa*-*-hpux* | \
31 ia64-*-hpux* | \
32 *-*-vxworks* | \
33 mt-*-* | \
34 null)
35 echo "*** Configuration $targ is obsolete." >&2
36 echo "*** Support has been REMOVED." >&2
37 exit 1
38 ;;
39 esac
40
41 x86_tobjs="x86-tdep.o"
42 i386_tobjs="i386-tdep.o arch/i386.o i387-tdep.o ${x86_tobjs}"
43 amd64_tobjs="ravenscar-thread.o amd64-ravenscar-thread.o \
44 amd64-tdep.o arch/amd64.o ${x86_tobjs}"
45
46 # Here are three sections to get a list of target specific object
47 # files according to target triplet $TARG.
48
49 # 1. Get the objects per cpu in $TARG.
50
51 case "${targ}" in
52 aarch64*-*-*)
53 cpu_obs="aarch32-tdep.o aarch64-tdep.o arch/aarch32.o \
54 arch/aarch64-insn.o arch/aarch64.o ravenscar-thread.o \
55 aarch64-ravenscar-thread.o";;
56
57 alpha*-*-*)
58 # Target: Alpha
59 cpu_obs="alpha-tdep.o"
60 ;;
61
62 arc*-*-*)
63 # Target: Unidentified ARC target
64 cpu_obs="arc-tdep.o arch/arc.o"
65 ;;
66
67 arm*-*-*)
68 cpu_obs="aarch32-tdep.o arch/aarch32.o arch/arm.o \
69 arch/arm-get-next-pcs.o arm-tdep.o arm-none-tdep.o"
70 ;;
71
72 hppa*-*-*)
73 # Target: HP PA-RISC
74 cpu_obs="hppa-tdep.o"
75 ;;
76
77 i[34567]86-*-*)
78 cpu_obs="${i386_tobjs}"
79 if test "x$enable_64_bit_bfd" = "xyes"; then
80 cpu_obs="${amd64_tobjs} ${cpu_obs}"
81 fi
82 ;;
83
84 ia16*-*-*)
85 # Target: Intel IA-16
86 cpu_obs="${i386_tobjs}"
87 ;;
88
89 ia64*-*-*)
90 # Target: Intel IA-64
91 cpu_obs="ia64-tdep.o"
92 ;;
93
94 loongarch*-*-*)
95 # Target: LoongArch baremetal
96 cpu_obs="loongarch-tdep.o arch/loongarch.o"
97 ;;
98
99 riscv*-*-*)
100 cpu_obs="riscv-tdep.o riscv-none-tdep.o arch/riscv.o \
101 ravenscar-thread.o riscv-ravenscar-thread.o";;
102
103 x86_64-*-*)
104 cpu_obs="${i386_tobjs} ${amd64_tobjs}";;
105
106 xtensa*)
107 # Target: Tensilica Xtensa processors
108 cpu_obs="xtensa-tdep.o xtensa-config.o solib-svr4.o"
109 ;;
110
111 esac
112
113 # 2. Get the objects per os in $TARG.
114
115 case "${targ}" in
116 *-*-freebsd* | *-*-kfreebsd*-gnu)
117 os_obs="fbsd-tdep.o solib-svr4.o";;
118 *-*-netbsd* | *-*-knetbsd*-gnu)
119 os_obs="netbsd-tdep.o solib-svr4.o";;
120 *-*-openbsd*)
121 os_obs="obsd-tdep.o solib-svr4.o";;
122 esac
123
124 # 3. Get the rest of objects.
125
126 case "${targ}" in
127 aarch64*-*-elf | aarch64*-*-rtems*)
128 # Target: AArch64 embedded system
129 gdb_target_obs="aarch64-newlib-tdep.o"
130 ;;
131
132 aarch64*-*-freebsd*)
133 # Target: FreeBSD/aarch64
134 gdb_target_obs="aarch64-fbsd-tdep.o"
135 ;;
136
137 aarch64*-*-linux*)
138 # Target: AArch64 linux
139 gdb_target_obs="aarch64-linux-tdep.o arch/aarch64.o\
140 arch/aarch64-mte-linux.o \
141 arch/arm.o arch/arm-linux.o arch/arm-get-next-pcs.o \
142 arm-tdep.o arm-linux-tdep.o \
143 glibc-tdep.o linux-tdep.o solib-svr4.o \
144 symfile-mem.o linux-record.o"
145 ;;
146
147 alpha*-*-linux*)
148 # Target: Little-endian Alpha running Linux
149 gdb_target_obs="alpha-mdebug-tdep.o alpha-linux-tdep.o \
150 linux-tdep.o solib-svr4.o"
151 ;;
152 alpha*-*-netbsd* | alpha*-*-knetbsd*-gnu)
153 # Target: NetBSD/alpha
154 gdb_target_obs="alpha-mdebug-tdep.o alpha-bsd-tdep.o \
155 alpha-netbsd-tdep.o"
156 ;;
157 alpha*-*-openbsd*)
158 # Target: OpenBSD/alpha
159 gdb_target_obs="alpha-mdebug-tdep.o alpha-bsd-tdep.o \
160 alpha-netbsd-tdep.o alpha-obsd-tdep.o netbsd-tdep.o"
161 ;;
162
163 am33_2.0*-*-linux*)
164 # Target: Matsushita mn10300 (AM33) running Linux
165 gdb_target_obs="mn10300-tdep.o mn10300-linux-tdep.o linux-tdep.o \
166 solib-svr4.o"
167 ;;
168
169 arc*-*-elf32)
170 # Target: baremetal ARC elf32 (newlib) target
171 gdb_target_obs="arc-newlib-tdep.o"
172 ;;
173
174 arc*-*-linux*)
175 # Target: ARC machine running Linux
176 gdb_target_obs="arc-linux-tdep.o linux-tdep.o solib-svr4.o"
177 ;;
178
179 arm*-wince-pe | arm*-*-mingw32ce*)
180 # Target: ARM based machine running Windows CE (win32)
181 gdb_target_obs="arm-wince-tdep.o windows-tdep.o"
182 ;;
183 arm*-*-linux*)
184 # Target: ARM based machine running GNU/Linux
185 gdb_target_obs="arch/arm-linux.o arm-linux-tdep.o glibc-tdep.o \
186 solib-svr4.o symfile-mem.o linux-tdep.o linux-record.o"
187 ;;
188 arm*-*-freebsd*)
189 # Target: FreeBSD/arm
190 gdb_target_obs="arm-fbsd-tdep.o"
191 ;;
192 arm*-*-netbsd* | arm*-*-knetbsd*-gnu)
193 # Target: NetBSD/arm
194 gdb_target_obs="arm-netbsd-tdep.o"
195 ;;
196 arm*-*-openbsd*)
197 # Target: OpenBSD/arm
198 gdb_target_obs="arm-bsd-tdep.o arm-obsd-tdep.o"
199 ;;
200 arm*-*-*)
201 # Target: ARM embedded system
202 gdb_target_obs="arm-pikeos-tdep.o"
203 ;;
204
205 avr-*-*)
206 # Target: AVR
207 gdb_target_obs="avr-tdep.o"
208 ;;
209
210 bfin-*-*linux*)
211 # Target: Blackfin Linux
212 gdb_target_obs="bfin-tdep.o bfin-linux-tdep.o linux-tdep.o"
213 ;;
214 bfin-*-*)
215 # Target: Blackfin processor
216 gdb_target_obs="bfin-tdep.o"
217 ;;
218
219 bpf-*-*)
220 # Target: eBPF
221 gdb_target_obs="bpf-tdep.o"
222 ;;
223
224 cris*)
225 # Target: CRIS
226 gdb_target_obs="cris-tdep.o cris-linux-tdep.o linux-tdep.o solib-svr4.o"
227 ;;
228
229 csky*-*-linux*)
230 # Target: CSKY running GNU/Linux
231 gdb_target_obs="csky-tdep.o csky-linux-tdep.o glibc-tdep.o \
232 linux-tdep.o solib-svr4.o"
233 ;;
234
235 csky*-*-*)
236 # Target: CSKY bare metal
237 gdb_target_obs="csky-tdep.o"
238 ;;
239
240 frv-*-*)
241 # Target: Fujitsu FRV processor
242 gdb_target_obs="frv-tdep.o frv-linux-tdep.o linux-tdep.o solib-frv.o"
243 ;;
244
245 moxie-*-elf | moxie-*-moxiebox | moxie-*-rtems*)
246 gdb_target_obs="moxie-tdep.o"
247 ;;
248
249 h8300-*-*)
250 # Target: H8300 processor
251 gdb_target_obs="h8300-tdep.o"
252 ;;
253
254 hppa*-*-linux*)
255 # Target: HP PA-RISC running Linux
256 gdb_target_obs="hppa-linux-tdep.o glibc-tdep.o \
257 linux-tdep.o solib-svr4.o symfile-mem.o"
258 ;;
259 hppa*-*-netbsd*)
260 # Target: NetBSD/hppa
261 gdb_target_obs="hppa-bsd-tdep.o hppa-netbsd-tdep.o solib-svr4.o"
262 ;;
263 hppa*-*-openbsd*)
264 # Target: OpenBSD/hppa
265 gdb_target_obs="hppa-bsd-tdep.o hppa-obsd-tdep.o solib-svr4.o"
266 ;;
267
268 i[34567]86-*-darwin*)
269 # Target: Darwin/i386
270 gdb_target_obs="i386-darwin-tdep.o solib-darwin.o"
271 if test "x$enable_64_bit_bfd" = "xyes"; then
272 # Target: GNU/Linux x86-64
273 gdb_target_obs="amd64-darwin-tdep.o ${gdb_target_obs}"
274 fi
275 ;;
276 i[34567]86-*-dicos*)
277 # Target: DICOS/i386
278 gdb_target_obs="dicos-tdep.o i386-dicos-tdep.o"
279 ;;
280 i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
281 # Target: FreeBSD/i386
282 gdb_target_obs="i386-bsd-tdep.o i386-fbsd-tdep.o "
283 ;;
284 i[34567]86-*-netbsd* | i[34567]86-*-knetbsd*-gnu)
285 # Target: NetBSD/i386
286 gdb_target_obs="i386-bsd-tdep.o i386-netbsd-tdep.o "
287 ;;
288 i[34567]86-*-openbsd*)
289 # Target: OpenBSD/i386
290 gdb_target_obs="i386-bsd-tdep.o i386-obsd-tdep.o bsd-uthread.o"
291 ;;
292 i[34567]86-*-nto*)
293 # Target: Intel 386 running qnx6.
294 gdb_target_obs="solib-svr4.o \
295 i386-nto-tdep.o nto-tdep.o"
296 ;;
297 i[34567]86-*-solaris2* | x86_64-*-solaris2*)
298 # Target: Solaris x86_64
299 gdb_target_obs="${i386_tobjs} ${amd64_tobjs} \
300 amd64-sol2-tdep.o i386-sol2-tdep.o sol2-tdep.o \
301 solib-svr4.o"
302 ;;
303 i[34567]86-*-linux*)
304 # Target: Intel 386 running GNU/Linux
305 gdb_target_obs="i386-linux-tdep.o \
306 glibc-tdep.o \
307 solib-svr4.o symfile-mem.o \
308 linux-tdep.o linux-record.o"
309 if test "x$enable_64_bit_bfd" = "xyes"; then
310 # Target: GNU/Linux x86-64
311 gdb_target_obs="amd64-linux-tdep.o ${gdb_target_obs}"
312 fi
313 ;;
314 i[34567]86-*-gnu*)
315 # Target: Intel 386 running the GNU Hurd
316 gdb_target_obs="i386-gnu-tdep.o solib-svr4.o"
317 ;;
318 i[34567]86-*-cygwin*)
319 # Target: Intel 386 running win32
320 gdb_target_obs="i386-windows-tdep.o windows-tdep.o"
321 ;;
322 i[34567]86-*-mingw32*)
323 # Target: Intel 386 running win32
324 gdb_target_obs="i386-windows-tdep.o windows-tdep.o"
325 ;;
326 i[34567]86-*-go32* | i[34567]86-*-msdosdjgpp*)
327 # Target: i386 running DJGPP/go32.
328 gdb_target_obs="i386-go32-tdep.o"
329 ;;
330
331 ia64-*-linux*)
332 # Target: Intel IA-64 running GNU/Linux
333 gdb_target_obs="ia64-linux-tdep.o linux-tdep.o \
334 solib-svr4.o symfile-mem.o"
335 ;;
336 ia64-*-*vms*)
337 # Target: Intel IA-64 running OpenVMS
338 gdb_target_obs="ia64-vms-tdep.o"
339 ;;
340
341 iq2000-*-*)
342 gdb_target_obs="iq2000-tdep.o"
343 ;;
344
345 lm32-*-*)
346 gdb_target_obs="lm32-tdep.o"
347 ;;
348
349 loongarch*-*-linux*)
350 # Target: LoongArch running Linux
351 gdb_target_obs="loongarch-linux-tdep.o glibc-tdep.o \
352 linux-tdep.o solib-svr4.o"
353 ;;
354
355 m32c-*-*)
356 # Target: Renesas M32C family
357 gdb_target_obs="m32c-tdep.o"
358 ;;
359
360 m32r*-*-linux*)
361 # Target: Renesas M32R running GNU/Linux
362 gdb_target_obs="m32r-tdep.o m32r-linux-tdep.o \
363 glibc-tdep.o solib-svr4.o symfile-mem.o \
364 linux-tdep.o"
365 ;;
366 m32r*-*-*)
367 # Target: Renesas m32r processor
368 gdb_target_obs="m32r-tdep.o"
369 ;;
370
371 m68hc11*-*-*|m6811*-*-*)
372 # Target: Motorola 68HC11 processor
373 gdb_target_obs="m68hc11-tdep.o"
374 ;;
375
376 m68*-*-aout* | m68*-*-coff* | m68*-*-elf* | m68*-*-rtems* | m68*-*-uclinux* | \
377 fido-*-elf*)
378 # Target: Motorola m68k embedded
379 gdb_target_obs="m68k-tdep.o"
380 ;;
381 m68*-*-linux*)
382 # Target: Motorola m68k with a.out and ELF
383 gdb_target_obs="m68k-tdep.o m68k-linux-tdep.o solib-svr4.o \
384 linux-tdep.o glibc-tdep.o symfile-mem.o"
385 ;;
386 m68*-*-netbsd* | m68*-*-knetbsd*-gnu)
387 # Target: NetBSD/m68k
388 gdb_target_obs="m68k-tdep.o m68k-bsd-tdep.o"
389 ;;
390 m68*-*-openbsd*)
391 # Target: OpenBSD/m68k
392 gdb_target_obs="m68k-tdep.o m68k-bsd-tdep.o"
393 ;;
394
395 mep-*-*)
396 # Target: Toshiba Media Processor (MEP)
397 gdb_target_obs="mep-tdep.o"
398 # No sim needed. Target uses SID.
399 ;;
400
401 microblaze*-linux-*|microblaze*-*-linux*)
402 # Target: Xilinx MicroBlaze running Linux
403 gdb_target_obs="microblaze-tdep.o microblaze-linux-tdep.o solib-svr4.o \
404 symfile-mem.o linux-tdep.o"
405 ;;
406 microblaze*-*-*)
407 # Target: Xilinx MicroBlaze running standalone
408 gdb_target_obs="microblaze-tdep.o"
409 ;;
410
411 mips*-*-linux*)
412 # Target: Linux/MIPS
413 gdb_target_obs="mips-tdep.o mips-linux-tdep.o glibc-tdep.o \
414 solib-svr4.o symfile-mem.o linux-tdep.o"
415 ;;
416 mips*-*-netbsd* | mips*-*-knetbsd*-gnu)
417 # Target: MIPS running NetBSD
418 gdb_target_obs="mips-tdep.o mips-netbsd-tdep.o"
419 ;;
420 mips*-*-freebsd*)
421 # Target: MIPS running FreeBSD
422 gdb_target_obs="mips-tdep.o mips-fbsd-tdep.o"
423 ;;
424 mips64*-*-openbsd*)
425 # Target: OpenBSD/mips64
426 gdb_target_obs="mips-tdep.o mips64-obsd-tdep.o"
427 ;;
428 mips*-sde*-elf*)
429 # Target: MIPS SDE
430 gdb_target_obs="mips-tdep.o mips-sde-tdep.o"
431 ;;
432 mips*-*-elf)
433 # Target: MIPS ELF
434 gdb_target_obs="mips-tdep.o"
435 ;;
436 mips*-*-*)
437 # Target: MIPS
438 gdb_target_obs="mips-tdep.o"
439 ;;
440
441 mn10300-*-*)
442 # Target: Matsushita mn10300
443 gdb_target_obs="mn10300-tdep.o"
444 ;;
445
446 msp430-*-elf*)
447 gdb_target_obs="msp430-tdep.o"
448 ;;
449
450 nds32*-*-elf)
451 # Target: AndesTech NDS32 core
452 gdb_target_obs="nds32-tdep.o"
453 ;;
454
455 nios2*-*-linux*)
456 # Target: Altera Nios II running Linux
457 gdb_target_obs="nios2-tdep.o nios2-linux-tdep.o solib-svr4.o \
458 symfile-mem.o glibc-tdep.o linux-tdep.o"
459 ;;
460
461 nios2*-*-*)
462 # Target: Altera Nios II bare-metal
463 gdb_target_obs="nios2-tdep.o"
464 ;;
465
466 or1k*-*-linux*)
467 # Target: OpenCores OpenRISC 1000 32-bit running Linux
468 gdb_target_obs="or1k-tdep.o or1k-linux-tdep.o solib-svr4.o \
469 symfile-mem.o glibc-tdep.o linux-tdep.o"
470 ;;
471
472 or1k-*-* | or1knd-*-*)
473 # Target: OpenCores OpenRISC 1000 32-bit implementation bare metal
474 gdb_target_obs="or1k-tdep.o"
475 ;;
476
477 powerpc*-*-freebsd*)
478 # Target: FreeBSD/powerpc
479 gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppc64-tdep.o \
480 ppc-fbsd-tdep.o \
481 ravenscar-thread.o ppc-ravenscar-thread.o"
482 ;;
483
484 powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu)
485 # Target: NetBSD/powerpc
486 gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppc-netbsd-tdep.o \
487 ravenscar-thread.o ppc-ravenscar-thread.o"
488 ;;
489 powerpc-*-openbsd*)
490 # Target: OpenBSD/powerpc
491 gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppc-obsd-tdep.o \
492 ravenscar-thread.o ppc-ravenscar-thread.o"
493 ;;
494 powerpc-*-aix* | rs6000-*-* | powerpc64-*-aix*)
495 # Target: PowerPC running AIX
496 gdb_target_obs="rs6000-tdep.o rs6000-aix-tdep.o xcoffread.o \
497 ppc-sysv-tdep.o solib-aix.o \
498 ravenscar-thread.o ppc-ravenscar-thread.o"
499 ;;
500 powerpc*-*-linux*)
501 # Target: PowerPC running Linux
502 gdb_target_obs="rs6000-tdep.o ppc-linux-tdep.o ppc-sysv-tdep.o \
503 ppc64-tdep.o solib-svr4.o \
504 glibc-tdep.o symfile-mem.o linux-tdep.o \
505 ravenscar-thread.o ppc-ravenscar-thread.o \
506 linux-record.o \
507 arch/ppc-linux-common.o"
508 ;;
509 powerpc-*-lynx*178)
510 # Target: PowerPC running Lynx178.
511 gdb_target_obs="rs6000-tdep.o rs6000-lynx178-tdep.o \
512 xcoffread.o ppc-sysv-tdep.o \
513 ravenscar-thread.o ppc-ravenscar-thread.o"
514 ;;
515 powerpc*-*-*)
516 # Target: PowerPC running eabi
517 gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o solib-svr4.o \
518 ravenscar-thread.o ppc-ravenscar-thread.o"
519 ;;
520
521 s390*-*-linux*)
522 # Target: S390 running Linux
523 gdb_target_obs="s390-linux-tdep.o s390-tdep.o solib-svr4.o \
524 linux-tdep.o linux-record.o symfile-mem.o"
525 ;;
526
527 riscv*-*-freebsd*)
528 # Target: FreeBSD/riscv
529 gdb_target_obs="riscv-fbsd-tdep.o"
530 ;;
531
532 riscv*-*-linux*)
533 # Target: Linux/RISC-V
534 gdb_target_obs="riscv-linux-tdep.o glibc-tdep.o \
535 linux-tdep.o solib-svr4.o symfile-mem.o linux-record.o"
536 ;;
537
538 riscv*-*-*)
539 # Target: RISC-V architecture
540 gdb_target_obs=""
541 ;;
542
543 rl78-*-elf)
544 # Target: Renesas rl78
545 gdb_target_obs="rl78-tdep.o"
546 ;;
547
548 rx-*-*)
549 # Target: Renesas RX
550 gdb_target_obs="rx-tdep.o"
551 ;;
552
553 sh*-*-linux*)
554 # Target: GNU/Linux Super-H
555 gdb_target_obs="sh-tdep.o sh-linux-tdep.o \
556 solib-svr4.o symfile-mem.o \
557 glibc-tdep.o linux-tdep.o"
558 ;;
559 sh*-*-netbsd* | sh*-*-knetbsd*-gnu)
560 # Target: NetBSD/sh
561 gdb_target_obs="sh-tdep.o sh-netbsd-tdep.o"
562 ;;
563 sh*-*-openbsd*)
564 # Target: OpenBSD/sh
565 gdb_target_obs="sh-tdep.o sh-netbsd-tdep.o"
566 ;;
567 sh*)
568 # Target: Embedded Renesas Super-H processor
569 gdb_target_obs="sh-tdep.o"
570 ;;
571
572 sparc-*-linux*)
573 # Target: GNU/Linux SPARC
574 gdb_target_obs="sparc-tdep.o \
575 sparc-linux-tdep.o solib-svr4.o symfile-mem.o \
576 linux-tdep.o \
577 ravenscar-thread.o sparc-ravenscar-thread.o"
578 if test "x$enable_64_bit_bfd" = "xyes"; then
579 # Target: GNU/Linux UltraSPARC
580 gdb_target_obs="sparc64-tdep.o \
581 sparc64-linux-tdep.o ${gdb_target_obs}"
582 fi
583 ;;
584 sparc64-*-linux*)
585 # Target: GNU/Linux UltraSPARC
586 gdb_target_obs="sparc64-tdep.o \
587 sparc64-linux-tdep.o sparc-tdep.o \
588 sparc-linux-tdep.o solib-svr4.o linux-tdep.o \
589 ravenscar-thread.o sparc-ravenscar-thread.o"
590 ;;
591 sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu)
592 # Target: FreeBSD/sparc64
593 gdb_target_obs="sparc-tdep.o sparc64-tdep.o sparc64-fbsd-tdep.o \
594 ravenscar-thread.o sparc-ravenscar-thread.o"
595 ;;
596 sparc-*-netbsd* | sparc-*-knetbsd*-gnu)
597 # Target: NetBSD/sparc
598 gdb_target_obs="sparc-tdep.o sparc-netbsd-tdep.o \
599 ravenscar-thread.o sparc-ravenscar-thread.o"
600 ;;
601 sparc64-*-netbsd* | sparc64-*-knetbsd*-gnu)
602 # Target: NetBSD/sparc64
603 gdb_target_obs="sparc64-tdep.o sparc64-netbsd-tdep.o sparc-tdep.o \
604 sparc-netbsd-tdep.o \
605 ravenscar-thread.o sparc-ravenscar-thread.o"
606 ;;
607 sparc-*-openbsd*)
608 # Target: OpenBSD/sparc
609 gdb_target_obs="sparc-tdep.o sparc-netbsd-tdep.o sparc-obsd-tdep.o \
610 netbsd-tdep.o bsd-uthread.o \
611 ravenscar-thread.o sparc-ravenscar-thread.o"
612 ;;
613 sparc64-*-openbsd*)
614 # Target: OpenBSD/sparc64
615 gdb_target_obs="sparc64-tdep.o sparc64-netbsd-tdep.o sparc64-obsd-tdep.o \
616 sparc-tdep.o sparc-netbsd-tdep.o sparc-obsd-tdep.o \
617 netbsd-tdep.o bsd-uthread.o \
618 ravenscar-thread.o sparc-ravenscar-thread.o"
619 ;;
620 sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*)
621 # Target: Solaris UltraSPARC
622 gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o sparc-tdep.o \
623 sparc-sol2-tdep.o sol2-tdep.o solib-svr4.o \
624 ravenscar-thread.o sparc-ravenscar-thread.o"
625 ;;
626 sparc-*-*)
627 # Target: SPARC
628 gdb_target_obs="sparc-tdep.o \
629 ravenscar-thread.o sparc-ravenscar-thread.o"
630 ;;
631 sparc64-*-*)
632 # Target: UltraSPARC
633 gdb_target_obs="sparc-tdep.o sparc64-tdep.o \
634 ravenscar-thread.o sparc-ravenscar-thread.o"
635 ;;
636
637 s12z-*-*)
638 # Target: Freescale S12z
639 gdb_target_obs="s12z-tdep.o"
640 ;;
641
642 tic6x-*-*linux)
643 # Target: GNU/Linux TI C6x
644 gdb_target_obs="tic6x-tdep.o tic6x-linux-tdep.o solib-dsbt.o \
645 glibc-tdep.o linux-tdep.o"
646 ;;
647
648 tic6x-*-*)
649 # Target: TI C6X
650 gdb_target_obs="tic6x-tdep.o"
651 ;;
652
653 tilegx-*-linux*)
654 # Target: TILE-Gx
655 gdb_target_obs="tilegx-tdep.o tilegx-linux-tdep.o solib-svr4.o \
656 symfile-mem.o glibc-tdep.o linux-tdep.o"
657 ;;
658
659 xstormy16-*-*)
660 # Target: Sanyo Xstormy16a processor
661 gdb_target_obs="xstormy16-tdep.o"
662 # No simulator libraries are needed -- target uses SID.
663 ;;
664
665 ft32-*-elf)
666 gdb_target_obs="ft32-tdep.o"
667 ;;
668
669 v850*-*-elf | v850*-*-rtems*)
670 # Target: NEC V850 processor
671 gdb_target_obs="v850-tdep.o"
672 ;;
673
674 vax-*-netbsd* | vax-*-knetbsd*-gnu)
675 # Target: NetBSD/vax
676 gdb_target_obs="vax-tdep.o solib-svr4.o"
677 ;;
678 vax-*-openbsd*)
679 # Target: OpenBSD/vax
680 gdb_target_obs="vax-tdep.o"
681 ;;
682 vax-*-*)
683 # Target: VAX
684 gdb_target_obs="vax-tdep.o"
685 ;;
686
687 x86_64-*-darwin*)
688 # Target: Darwin/x86-64
689 gdb_target_obs="${i386_tobjs} \
690 i386-darwin-tdep.o amd64-darwin-tdep.o \
691 solib-darwin.o"
692 ;;
693
694 x86_64-*-dicos*)
695 # Target: DICOS/x86-64
696 gdb_target_obs="${i386_tobjs} \
697 dicos-tdep.o i386-dicos-tdep.o amd64-dicos-tdep.o"
698 ;;
699 x86_64-*-elf*)
700 gdb_target_obs="${i386_tobjs}"
701 ;;
702 x86_64-*-linux*)
703 # Target: GNU/Linux x86-64
704 gdb_target_obs="amd64-linux-tdep.o ${i386_tobjs} \
705 i386-linux-tdep.o glibc-tdep.o \
706 solib-svr4.o symfile-mem.o linux-tdep.o linux-record.o"
707 ;;
708 x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
709 # Target: FreeBSD/amd64
710 gdb_target_obs="amd64-fbsd-tdep.o ${i386_tobjs} \
711 i386-bsd-tdep.o i386-fbsd-tdep.o"
712 ;;
713 x86_64-*-mingw* | x86_64-*-cygwin*)
714 # Target: MingW/amd64
715 gdb_target_obs="amd64-windows-tdep.o \
716 ${i386_tobjs} i386-windows-tdep.o \
717 windows-tdep.o"
718 ;;
719 x86_64-*-netbsd* | x86_64-*-knetbsd*-gnu)
720 # Target: NetBSD/amd64
721 gdb_target_obs="amd64-netbsd-tdep.o ${i386_tobjs}"
722 ;;
723 x86_64-*-openbsd*)
724 # Target: OpenBSD/amd64
725 gdb_target_obs="amd64-obsd-tdep.o ${i386_tobjs} \
726 i386-bsd-tdep.o i386-obsd-tdep.o \
727 bsd-uthread.o"
728 ;;
729 x86_64-*-rtems*)
730 gdb_target_obs="${amd64_tobjs} ${i386_tobjs} i386-bsd-tdep.o"
731 ;;
732 xtensa*-*-*linux*)
733 # Target: GNU/Linux Xtensa
734 gdb_target_obs="xtensa-linux-tdep.o symfile-mem.o linux-tdep.o"
735 ;;
736 z80*)
737 # Target: Z80
738 gdb_target_obs="z80-tdep.o"
739 ;;
740
741 esac
742
743 # Put them together.
744
745 gdb_target_obs="${cpu_obs} ${os_obs} ${gdb_target_obs}"
746
747 # Get the sim settings.
748 # NB: Target matching is aligned with sim/configure.ac. Changes must be kept
749 # in sync with that file.
750
751 case "${targ}" in
752 aarch64*-*-*) gdb_sim=aarch64 ;;
753 arm*-*-*) gdb_sim=arm ;;
754 avr*-*-*) gdb_sim=avr ;;
755 bfin-*-*) gdb_sim=bfin ;;
756 bpf-*-*) gdb_sim=bpf ;;
757 cris-*-*|cris32-*-*) gdb_sim=cris ;;
758 frv-*-*) gdb_sim=frv ;;
759 ft32-*-*) gdb_sim=ft32 ;;
760 h8300*-*-*) gdb_sim=h8300 ;;
761 iq2000-*-*) gdb_sim=iq2000 ;;
762 lm32-*-*) gdb_sim=lm32 ;;
763 m32c-*-*) gdb_sim=m32c ;;
764 m32r-*-*) gdb_sim=m32r ;;
765 m68hc11-*-*|m6811-*-*) gdb_sim=m68hc11 ;;
766 microblaze*-*-*) gdb_sim=microblaze ;;
767 mips*-*-*) gdb_sim=mips ;;
768 mn10300*-*-*) gdb_sim=mn10300 ;;
769 moxie-*-*) gdb_sim=moxie ;;
770 msp430*-*-*) gdb_sim=msp430 ;;
771 or1k*-*-*) gdb_sim=or1k ;;
772 powerpc*-*-*) gdb_sim=ppc ;;
773 riscv*-*-*) gdb_sim=riscv ;;
774 rl78-*-*) gdb_sim=rl78 ;;
775 rx-*-*) gdb_sim=rx ;;
776 sh*-*-*) gdb_sim=sh ;;
777 sparc-*-*) gdb_sim=erc32 ;;
778 v850*-*-*) gdb_sim=v850 ;;
779 esac
780 if test "x$gdb_sim" != "x"; then
781 gdb_sim="../sim/${gdb_sim}/libsim.a"
782 fi
783
784 # map target onto default OS ABI
785
786 case "${targ}" in
787 *-*-freebsd* | *-*-kfreebsd*-gnu)
788 gdb_osabi=GDB_OSABI_FREEBSD ;;
789 *-*-linux* | *-*-uclinux*)
790 gdb_osabi=GDB_OSABI_LINUX ;;
791 *-*-nto*) gdb_osabi=GDB_OSABI_QNXNTO ;;
792 m68*-*-openbsd* | m88*-*-openbsd* | vax-*-openbsd*) ;;
793 *-*-openbsd*) gdb_osabi=GDB_OSABI_OPENBSD ;;
794 *-*-solaris*) gdb_osabi=GDB_OSABI_SOLARIS ;;
795 *-*-*-gnu*) ;; # prevent non-GNU kernels to match the Hurd rule below
796 *-*-gnu*) gdb_osabi=GDB_OSABI_HURD ;;
797 *-*-mingw32ce*) gdb_osabi=GDB_OSABI_WINCE ;;
798 *-*-mingw*) gdb_osabi=GDB_OSABI_WINDOWS ;;
799 *-*-cygwin*) gdb_osabi=GDB_OSABI_CYGWIN ;;
800 *-*-dicos*) gdb_osabi=GDB_OSABI_DICOS ;;
801 powerpc-*-aix* | rs6000-*-* | powerpc64-*-aix*)
802 gdb_osabi=GDB_OSABI_AIX ;;
803 esac
804
805 # Check whether this target supports gcore.
806 # Such target has to call set_gdbarch_find_memory_regions.
807 gdb_have_gcore=false
808 for t in x ${gdb_target_obs}; do
809 if test "$t" = linux-tdep.o; then
810 gdb_have_gcore=true
811 fi
812 done