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