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