e6ba3330827f4b982992c31697dd2406034becea
[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_target_obs="arm-pikeos-tdep.o"
184 gdb_sim=../sim/arm/libsim.a
185 ;;
186
187 avr-*-*)
188 # Target: AVR
189 gdb_target_obs="avr-tdep.o"
190 gdb_sim=../sim/avr/libsim.a
191 ;;
192
193 bfin-*-*linux*)
194 # Target: Blackfin Linux
195 gdb_target_obs="bfin-tdep.o bfin-linux-tdep.o linux-tdep.o"
196 gdb_sim=../sim/bfin/libsim.a
197 build_gdbserver=yes
198 ;;
199 bfin-*-*)
200 # Target: Blackfin processor
201 gdb_target_obs="bfin-tdep.o"
202 gdb_sim=../sim/bfin/libsim.a
203 ;;
204
205 cris*)
206 # Target: CRIS
207 gdb_target_obs="cris-tdep.o cris-linux-tdep.o linux-tdep.o solib-svr4.o"
208 ;;
209
210 csky*-*-linux*)
211 # Target: CSKY running GNU/Linux
212 gdb_target_obs="csky-tdep.o csky-linux-tdep.o glibc-tdep.o \
213 linux-tdep.o solib-svr4.o"
214 ;;
215
216 csky*-*-*)
217 # Target: CSKY bare metal
218 gdb_target_obs="csky-tdep.o"
219 ;;
220
221 frv-*-*)
222 # Target: Fujitsu FRV processor
223 gdb_target_obs="frv-tdep.o frv-linux-tdep.o linux-tdep.o solib-frv.o"
224 gdb_sim=../sim/frv/libsim.a
225 ;;
226
227 moxie-*-elf | moxie-*-moxiebox | moxie-*-rtems*)
228 gdb_target_obs="moxie-tdep.o"
229 gdb_sim=../sim/moxie/libsim.a
230 ;;
231
232 h8300-*-*)
233 # Target: H8300 processor
234 gdb_target_obs="h8300-tdep.o"
235 gdb_sim=../sim/h8300/libsim.a
236 ;;
237
238 hppa*-*-linux*)
239 # Target: HP PA-RISC running Linux
240 gdb_target_obs="hppa-linux-tdep.o glibc-tdep.o \
241 linux-tdep.o solib-svr4.o symfile-mem.o"
242 ;;
243 hppa*-*-netbsd*)
244 # Target: NetBSD/hppa
245 gdb_target_obs="hppa-bsd-tdep.o hppa-nbsd-tdep.o solib-svr4.o"
246 ;;
247 hppa*-*-openbsd*)
248 # Target: OpenBSD/hppa
249 gdb_target_obs="hppa-bsd-tdep.o hppa-obsd-tdep.o solib-svr4.o"
250 ;;
251
252 i[34567]86-*-darwin*)
253 # Target: Darwin/i386
254 gdb_target_obs="i386-darwin-tdep.o solib-darwin.o"
255 if test "x$enable_64_bit_bfd" = "xyes"; then
256 # Target: GNU/Linux x86-64
257 gdb_target_obs="amd64-darwin-tdep.o ${gdb_target_obs}"
258 fi
259 ;;
260 i[34567]86-*-dicos*)
261 # Target: DICOS/i386
262 gdb_target_obs="dicos-tdep.o i386-dicos-tdep.o"
263 ;;
264 i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
265 # Target: FreeBSD/i386
266 gdb_target_obs="i386-bsd-tdep.o i386-fbsd-tdep.o "
267 ;;
268 i[34567]86-*-netbsd* | i[34567]86-*-knetbsd*-gnu)
269 # Target: NetBSD/i386
270 gdb_target_obs="i386-bsd-tdep.o i386-nbsd-tdep.o "
271 ;;
272 i[34567]86-*-openbsd*)
273 # Target: OpenBSD/i386
274 gdb_target_obs="i386-bsd-tdep.o i386-obsd-tdep.o bsd-uthread.o"
275 ;;
276 i[34567]86-*-nto*)
277 # Target: Intel 386 running qnx6.
278 gdb_target_obs="solib-svr4.o \
279 i386-nto-tdep.o nto-tdep.o"
280 build_gdbserver=yes
281 ;;
282 i[34567]86-*-solaris2* | x86_64-*-solaris2*)
283 # Target: Solaris x86_64
284 gdb_target_obs="${i386_tobjs} ${amd64_tobjs} \
285 amd64-sol2-tdep.o i386-sol2-tdep.o sol2-tdep.o \
286 solib-svr4.o"
287 ;;
288 i[34567]86-*-linux*)
289 # Target: Intel 386 running GNU/Linux
290 gdb_target_obs="i386-linux-tdep.o \
291 glibc-tdep.o \
292 solib-svr4.o symfile-mem.o \
293 linux-tdep.o linux-record.o"
294 if test "x$enable_64_bit_bfd" = "xyes"; then
295 # Target: GNU/Linux x86-64
296 gdb_target_obs="amd64-linux-tdep.o ${gdb_target_obs}"
297 fi
298 build_gdbserver=yes
299 ;;
300 i[34567]86-*-gnu*)
301 # Target: Intel 386 running the GNU Hurd
302 gdb_target_obs="i386-gnu-tdep.o solib-svr4.o"
303 ;;
304 i[34567]86-*-cygwin*)
305 # Target: Intel 386 running win32
306 gdb_target_obs="i386-cygwin-tdep.o windows-tdep.o"
307 build_gdbserver=yes
308 ;;
309 i[34567]86-*-mingw32*)
310 # Target: Intel 386 running win32
311 gdb_target_obs="i386-cygwin-tdep.o windows-tdep.o"
312 build_gdbserver=yes
313 ;;
314 i[34567]86-*-go32* | i[34567]86-*-msdosdjgpp*)
315 # Target: i386 running DJGPP/go32.
316 gdb_target_obs="i386-go32-tdep.o"
317 ;;
318
319 ia64-*-linux*)
320 # Target: Intel IA-64 running GNU/Linux
321 gdb_target_obs="ia64-linux-tdep.o linux-tdep.o \
322 solib-svr4.o symfile-mem.o"
323 build_gdbserver=yes
324 ;;
325 ia64-*-*vms*)
326 # Target: Intel IA-64 running OpenVMS
327 gdb_target_obs="ia64-vms-tdep.o"
328 ;;
329
330 iq2000-*-*)
331 gdb_target_obs="iq2000-tdep.o"
332 gdb_sim=../sim/iq2000/libsim.a
333 ;;
334
335 lm32-*-*)
336 gdb_target_obs="lm32-tdep.o"
337 gdb_sim=../sim/lm32/libsim.a
338 ;;
339
340 m32c-*-*)
341 # Target: Renesas M32C family
342 gdb_target_obs="m32c-tdep.o"
343 # There may also be a SID / CGEN simulator for this,
344 # but we do have DJ Delorie's mini-sim.
345 gdb_sim=../sim/m32c/libsim.a
346 ;;
347
348 m32r*-*-linux*)
349 # Target: Renesas M32R running GNU/Linux
350 gdb_target_obs="m32r-tdep.o m32r-linux-tdep.o \
351 glibc-tdep.o solib-svr4.o symfile-mem.o \
352 linux-tdep.o"
353 gdb_sim=../sim/m32r/libsim.a
354 build_gdbserver=yes
355 ;;
356 m32r*-*-*)
357 # Target: Renesas m32r processor
358 gdb_target_obs="m32r-tdep.o"
359 gdb_sim=../sim/m32r/libsim.a
360 ;;
361
362 m68hc11*-*-*|m6811*-*-*)
363 # Target: Motorola 68HC11 processor
364 gdb_target_obs="m68hc11-tdep.o"
365 gdb_sim=../sim/m68hc11/libsim.a
366 ;;
367
368 m68*-*-aout* | m68*-*-coff* | m68*-*-elf* | m68*-*-rtems* | m68*-*-uclinux* | \
369 fido-*-elf*)
370 # Target: Motorola m68k embedded
371 gdb_target_obs="m68k-tdep.o"
372 ;;
373 m68*-*-linux*)
374 # Target: Motorola m68k with a.out and ELF
375 gdb_target_obs="m68k-tdep.o m68k-linux-tdep.o solib-svr4.o \
376 linux-tdep.o glibc-tdep.o symfile-mem.o"
377 build_gdbserver=yes
378 ;;
379 m68*-*-netbsd* | m68*-*-knetbsd*-gnu)
380 # Target: NetBSD/m68k
381 gdb_target_obs="m68k-tdep.o m68k-bsd-tdep.o"
382 ;;
383 m68*-*-openbsd*)
384 # Target: OpenBSD/m68k
385 gdb_target_obs="m68k-tdep.o m68k-bsd-tdep.o"
386 ;;
387
388 mep-*-*)
389 # Target: Toshiba Media Processor (MEP)
390 gdb_target_obs="mep-tdep.o"
391 # No sim needed. Target uses SID.
392 ;;
393
394 microblaze*-linux-*|microblaze*-*-linux*)
395 # Target: Xilinx MicroBlaze running Linux
396 gdb_target_obs="microblaze-tdep.o microblaze-linux-tdep.o solib-svr4.o \
397 symfile-mem.o linux-tdep.o"
398 gdb_sim=../sim/microblaze/libsim.a
399 ;;
400 microblaze*-*-*)
401 # Target: Xilinx MicroBlaze running standalone
402 gdb_target_obs="microblaze-tdep.o"
403 gdb_sim=../sim/microblaze/libsim.a
404 ;;
405
406 mips*-*-linux*)
407 # Target: Linux/MIPS
408 gdb_target_obs="mips-tdep.o mips-linux-tdep.o glibc-tdep.o \
409 solib-svr4.o symfile-mem.o linux-tdep.o"
410 gdb_sim=../sim/mips/libsim.a
411 build_gdbserver=yes
412 ;;
413 mips*-*-netbsd* | mips*-*-knetbsd*-gnu)
414 # Target: MIPS running NetBSD
415 gdb_target_obs="mips-tdep.o mips-nbsd-tdep.o"
416 gdb_sim=../sim/mips/libsim.a
417 ;;
418 mips*-*-freebsd*)
419 # Target: MIPS running FreeBSD
420 gdb_target_obs="mips-tdep.o mips-fbsd-tdep.o"
421 gdb_sim=../sim/mips/libsim.a
422 ;;
423 mips64*-*-openbsd*)
424 # Target: OpenBSD/mips64
425 gdb_target_obs="mips-tdep.o mips64-obsd-tdep.o"
426 ;;
427 mips*-sde*-elf*)
428 # Target: MIPS SDE
429 gdb_target_obs="mips-tdep.o mips-sde-tdep.o"
430 gdb_sim=../sim/mips/libsim.a
431 ;;
432 mips*-*-elf)
433 # Target: MIPS ELF
434 gdb_target_obs="mips-tdep.o"
435 gdb_sim=../sim/mips/libsim.a
436 ;;
437 mips*-*-*)
438 # Target: MIPS
439 gdb_target_obs="mips-tdep.o"
440 gdb_sim=../sim/mips/libsim.a
441 ;;
442
443 mn10300-*-*)
444 # Target: Matsushita mn10300
445 gdb_target_obs="mn10300-tdep.o"
446 gdb_sim=../sim/mn10300/libsim.a
447 ;;
448
449 msp430*-*-elf)
450 gdb_target_obs="msp430-tdep.o"
451 gdb_sim=../sim/msp430/libsim.a
452 ;;
453
454 nds32*-*-elf)
455 # Target: AndesTech NDS32 core
456 gdb_target_obs="nds32-tdep.o"
457 ;;
458
459 nios2*-*-linux*)
460 # Target: Altera Nios II running Linux
461 gdb_target_obs="nios2-tdep.o nios2-linux-tdep.o solib-svr4.o \
462 symfile-mem.o glibc-tdep.o linux-tdep.o"
463 ;;
464
465 nios2*-*-*)
466 # Target: Altera Nios II bare-metal
467 gdb_target_obs="nios2-tdep.o"
468 ;;
469
470 or1k-*-* | or1knd-*-*)
471 # Target: OpenCores OpenRISC 1000 32-bit implementation bare metal
472 gdb_target_obs="or1k-tdep.o"
473 gdb_sim=../sim/or1k/libsim.a
474 ;;
475
476 powerpc*-*-freebsd*)
477 # Target: FreeBSD/powerpc
478 gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppc64-tdep.o \
479 ppc-fbsd-tdep.o \
480 ravenscar-thread.o ppc-ravenscar-thread.o"
481 ;;
482
483 powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu)
484 # Target: NetBSD/powerpc
485 gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppc-nbsd-tdep.o \
486 ravenscar-thread.o ppc-ravenscar-thread.o"
487 gdb_sim=../sim/ppc/libsim.a
488 ;;
489 powerpc-*-openbsd*)
490 # Target: OpenBSD/powerpc
491 gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppc-obsd-tdep.o \
492 ravenscar-thread.o ppc-ravenscar-thread.o"
493 ;;
494 powerpc-*-aix* | rs6000-*-* | powerpc64-*-aix*)
495 # Target: PowerPC running AIX
496 gdb_target_obs="rs6000-tdep.o rs6000-aix-tdep.o xcoffread.o \
497 ppc-sysv-tdep.o solib-aix.o \
498 ravenscar-thread.o ppc-ravenscar-thread.o"
499 ;;
500 powerpc*-*-linux*)
501 # Target: PowerPC running Linux
502 gdb_target_obs="rs6000-tdep.o ppc-linux-tdep.o ppc-sysv-tdep.o \
503 ppc64-tdep.o solib-svr4.o solib-spu.o \
504 spu-multiarch.o \
505 glibc-tdep.o symfile-mem.o linux-tdep.o \
506 ravenscar-thread.o ppc-ravenscar-thread.o \
507 linux-record.o \
508 arch/ppc-linux-common.o"
509 gdb_sim=../sim/ppc/libsim.a
510 build_gdbserver=yes
511 ;;
512 powerpc-*-lynx*178)
513 # Target: PowerPC running Lynx178.
514 gdb_target_obs="rs6000-tdep.o rs6000-lynx178-tdep.o \
515 xcoffread.o ppc-sysv-tdep.o \
516 ravenscar-thread.o ppc-ravenscar-thread.o"
517 ;;
518 powerpc*-*-*)
519 # Target: PowerPC running eabi
520 gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o solib-svr4.o \
521 ravenscar-thread.o ppc-ravenscar-thread.o"
522 gdb_sim=../sim/ppc/libsim.a
523 ;;
524
525 s390*-*-linux*)
526 # Target: S390 running Linux
527 gdb_target_obs="s390-linux-tdep.o s390-tdep.o solib-svr4.o \
528 linux-tdep.o linux-record.o symfile-mem.o"
529 build_gdbserver=yes
530 ;;
531
532 riscv*-*-freebsd*)
533 # Target: FreeBSD/riscv
534 gdb_target_obs="riscv-fbsd-tdep.o riscv-tdep.o"
535 ;;
536
537 riscv*-*-linux*)
538 # Target: Linux/RISC-V
539 gdb_target_obs="riscv-linux-tdep.o riscv-tdep.o glibc-tdep.o \
540 linux-tdep.o solib-svr4.o symfile-mem.o linux-record.o"
541 ;;
542
543 riscv*-*-*)
544 # Target: RISC-V architecture
545 gdb_target_obs="riscv-tdep.o"
546 ;;
547
548 rl78-*-elf)
549 # Target: Renesas rl78
550 gdb_target_obs="rl78-tdep.o"
551 gdb_sim=../sim/rl78/libsim.a
552 ;;
553
554 rx-*-elf)
555 # Target: Renesas RX
556 gdb_target_obs="rx-tdep.o"
557 gdb_sim=../sim/rx/libsim.a
558 ;;
559
560 score-*-*)
561 # Target: S+core embedded system
562 gdb_target_obs="score-tdep.o"
563 build_gdbserver=yes
564 ;;
565
566 sh*-*-linux*)
567 # Target: GNU/Linux Super-H
568 gdb_target_obs="sh-tdep.o sh-linux-tdep.o \
569 solib-svr4.o symfile-mem.o \
570 glibc-tdep.o linux-tdep.o"
571 gdb_sim=../sim/sh/libsim.a
572 build_gdbserver=yes
573 ;;
574 sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu)
575 # Target: NetBSD/sh
576 gdb_target_obs="sh-tdep.o sh-nbsd-tdep.o"
577 gdb_sim=../sim/sh/libsim.a
578 ;;
579 sh*-*-openbsd*)
580 # Target: OpenBSD/sh
581 gdb_target_obs="sh-tdep.o sh-nbsd-tdep.o"
582 ;;
583 sh*)
584 # Target: Embedded Renesas Super-H processor
585 gdb_target_obs="sh-tdep.o"
586 gdb_sim=../sim/sh/libsim.a
587 ;;
588
589 sparc-*-linux*)
590 # Target: GNU/Linux SPARC
591 gdb_target_obs="sparc-tdep.o sparc-sol2-tdep.o sol2-tdep.o \
592 sparc-linux-tdep.o solib-svr4.o symfile-mem.o \
593 linux-tdep.o \
594 ravenscar-thread.o sparc-ravenscar-thread.o"
595 if test "x$enable_64_bit_bfd" = "xyes"; then
596 # Target: GNU/Linux UltraSPARC
597 gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o \
598 sparc64-linux-tdep.o ${gdb_target_obs}"
599 fi
600 build_gdbserver=yes
601 ;;
602 sparc64-*-linux*)
603 # Target: GNU/Linux UltraSPARC
604 gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o sol2-tdep.o \
605 sparc64-linux-tdep.o sparc-tdep.o sparc-sol2-tdep.o \
606 sparc-linux-tdep.o solib-svr4.o linux-tdep.o \
607 ravenscar-thread.o sparc-ravenscar-thread.o"
608 build_gdbserver=yes
609 ;;
610 sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu)
611 # Target: FreeBSD/sparc64
612 gdb_target_obs="sparc-tdep.o sparc64-tdep.o sparc64-fbsd-tdep.o \
613 ravenscar-thread.o sparc-ravenscar-thread.o"
614 ;;
615 sparc-*-netbsd* | sparc-*-knetbsd*-gnu)
616 # Target: NetBSD/sparc
617 gdb_target_obs="sparc-tdep.o sparc-nbsd-tdep.o \
618 ravenscar-thread.o sparc-ravenscar-thread.o"
619 ;;
620 sparc64-*-netbsd* | sparc64-*-knetbsd*-gnu)
621 # Target: NetBSD/sparc64
622 gdb_target_obs="sparc64-tdep.o sparc64-nbsd-tdep.o sparc-tdep.o \
623 sparc-nbsd-tdep.o \
624 ravenscar-thread.o sparc-ravenscar-thread.o"
625 ;;
626 sparc-*-openbsd*)
627 # Target: OpenBSD/sparc
628 gdb_target_obs="sparc-tdep.o sparc-nbsd-tdep.o sparc-obsd-tdep.o \
629 nbsd-tdep.o bsd-uthread.o \
630 ravenscar-thread.o sparc-ravenscar-thread.o"
631 ;;
632 sparc64-*-openbsd*)
633 # Target: OpenBSD/sparc64
634 gdb_target_obs="sparc64-tdep.o sparc64-nbsd-tdep.o sparc64-obsd-tdep.o \
635 sparc-tdep.o sparc-nbsd-tdep.o sparc-obsd-tdep.o \
636 nbsd-tdep.o bsd-uthread.o \
637 ravenscar-thread.o sparc-ravenscar-thread.o"
638 ;;
639 sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*)
640 # Target: Solaris UltraSPARC
641 gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o sparc-tdep.o \
642 sparc-sol2-tdep.o sol2-tdep.o solib-svr4.o \
643 ravenscar-thread.o sparc-ravenscar-thread.o"
644 ;;
645 sparc-*-*)
646 # Target: SPARC
647 gdb_target_obs="sparc-tdep.o \
648 ravenscar-thread.o sparc-ravenscar-thread.o"
649 gdb_sim=../sim/erc32/libsim.a
650 ;;
651 sparc64-*-*)
652 # Target: UltraSPARC
653 gdb_target_obs="sparc-tdep.o sparc64-tdep.o \
654 ravenscar-thread.o sparc-ravenscar-thread.o"
655 ;;
656
657 spu*-*-*)
658 # Target: Cell BE SPU
659 gdb_target_obs="spu-tdep.o"
660 build_gdbserver=yes
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 build_gdbserver=yes
684 ;;
685
686 xstormy16-*-*)
687 # Target: Sanyo Xstormy16a processor
688 gdb_target_obs="xstormy16-tdep.o"
689 # No simulator libraries are needed -- target uses SID.
690 ;;
691
692 ft32-*-elf)
693 gdb_target_obs="ft32-tdep.o"
694 gdb_sim=../sim/ft32/libsim.a
695 ;;
696
697 v850*-*-elf | v850*-*-rtems*)
698 # Target: NEC V850 processor
699 gdb_target_obs="v850-tdep.o"
700 gdb_sim=../sim/v850/libsim.a
701 ;;
702
703 vax-*-netbsd* | vax-*-knetbsd*-gnu)
704 # Target: NetBSD/vax
705 gdb_target_obs="vax-tdep.o solib-svr4.o"
706 ;;
707 vax-*-openbsd*)
708 # Target: OpenBSD/vax
709 gdb_target_obs="vax-tdep.o"
710 ;;
711 vax-*-*)
712 # Target: VAX
713 gdb_target_obs="vax-tdep.o"
714 ;;
715
716 x86_64-*-darwin*)
717 # Target: Darwin/x86-64
718 gdb_target_obs="${i386_tobjs} \
719 i386-darwin-tdep.o amd64-darwin-tdep.o \
720 solib-darwin.o"
721 ;;
722
723 x86_64-*-dicos*)
724 # Target: DICOS/x86-64
725 gdb_target_obs="${i386_tobjs} \
726 dicos-tdep.o i386-dicos-tdep.o amd64-dicos-tdep.o"
727 ;;
728 x86_64-*-elf*)
729 gdb_target_obs="${i386_tobjs}"
730 ;;
731 x86_64-*-linux*)
732 # Target: GNU/Linux x86-64
733 gdb_target_obs="amd64-linux-tdep.o ${i386_tobjs} \
734 i386-linux-tdep.o glibc-tdep.o \
735 solib-svr4.o symfile-mem.o linux-tdep.o linux-record.o"
736 build_gdbserver=yes
737 ;;
738 x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
739 # Target: FreeBSD/amd64
740 gdb_target_obs="amd64-fbsd-tdep.o ${i386_tobjs} \
741 i386-bsd-tdep.o i386-fbsd-tdep.o"
742 ;;
743 x86_64-*-mingw* | x86_64-*-cygwin*)
744 # Target: MingW/amd64
745 gdb_target_obs="amd64-windows-tdep.o \
746 ${i386_tobjs} i386-cygwin-tdep.o \
747 windows-tdep.o"
748 build_gdbserver=yes
749 ;;
750 x86_64-*-netbsd* | x86_64-*-knetbsd*-gnu)
751 # Target: NetBSD/amd64
752 gdb_target_obs="amd64-nbsd-tdep.o ${i386_tobjs}"
753 ;;
754 x86_64-*-openbsd*)
755 # Target: OpenBSD/amd64
756 gdb_target_obs="amd64-obsd-tdep.o ${i386_tobjs} \
757 i386-bsd-tdep.o i386-obsd-tdep.o \
758 bsd-uthread.o"
759 ;;
760 x86_64-*-rtems*)
761 gdb_target_obs="${amd64_tobjs} ${i386_tobjs} i386-bsd-tdep.o"
762 ;;
763 xtensa*-*-linux*)
764 # Target: GNU/Linux Xtensa
765 gdb_target_obs="xtensa-linux-tdep.o symfile-mem.o linux-tdep.o"
766 build_gdbserver=yes
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* | *-*-cygwin*)
790 gdb_osabi=GDB_OSABI_CYGWIN ;;
791 *-*-dicos*) gdb_osabi=GDB_OSABI_DICOS ;;
792 *-*-symbianelf*)
793 gdb_osabi=GDB_OSABI_SYMBIAN ;;
794 powerpc-*-aix* | rs6000-*-* | powerpc64-*-aix*)
795 gdb_osabi=GDB_OSABI_AIX ;;
796 esac
797
798 # Check whether this target supports gcore.
799 # Such target has to call set_gdbarch_find_memory_regions.
800 gdb_have_gcore=false
801 for t in x ${gdb_target_obs}; do
802 if test "$t" = linux-tdep.o; then
803 gdb_have_gcore=true
804 fi
805 done
This page took 0.081398 seconds and 4 git commands to generate.