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