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