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