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