caa42be1c013b522bb882e5e4c4d7fa1e6be4a6a
[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 *-*-solaris2.[01] | *-*-solaris2.[2-9]* | *-*-solaris2.10* | \
18 alpha*-*-osf* | \
19 alpha*-*-freebsd* | \
20 alpha*-*-kfreebsd*-gnu | \
21 d10v-*-* | \
22 hppa*-*-hiux* | \
23 i[34567]86-ncr-* | \
24 m68*-cisco*-* | \
25 m68*-tandem-* | \
26 m68*-*-os68k* | \
27 mips*-*-pe | \
28 rs6000-*-lynxos* | \
29 sh*-*-pe | \
30 hppa*-*-hpux* | \
31 ia64-*-hpux* | \
32 *-*-vxworks* | \
33 mt-*-* | \
34 null)
35 echo "*** Configuration $targ is obsolete." >&2
36 echo "*** Support has been REMOVED." >&2
37 exit 1
38 ;;
39 esac
40
41 x86_tobjs="x86-tdep.o"
42 i386_tobjs="i386-tdep.o arch/i386.o i387-tdep.o ${x86_tobjs}"
43 amd64_tobjs="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"
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";;
69
70 hppa*-*-*)
71 # Target: HP PA-RISC
72 cpu_obs="hppa-tdep.o"
73 ;;
74
75 i[34567]86-*-*)
76 cpu_obs="${i386_tobjs}"
77 if test "x$enable_64_bit_bfd" = "xyes"; then
78 cpu_obs="${amd64_tobjs} ${cpu_obs}"
79 fi
80 ;;
81
82 ia64*-*-*)
83 # Target: Intel IA-64
84 cpu_obs="ia64-tdep.o"
85 ;;
86
87 riscv*-*-*)
88 cpu_obs="riscv-tdep.o arch/riscv.o";;
89
90 x86_64-*-*)
91 cpu_obs="${i386_tobjs} ${amd64_tobjs}";;
92
93 xtensa*)
94 # Target: Tensilica Xtensa processors
95 cpu_obs="xtensa-tdep.o xtensa-config.o solib-svr4.o"
96 ;;
97
98 esac
99
100 # 2. Get the objects per os in $TARG.
101
102 case "${targ}" in
103 *-*-freebsd* | *-*-kfreebsd*-gnu)
104 os_obs="fbsd-tdep.o solib-svr4.o";;
105 *-*-netbsd* | *-*-knetbsd*-gnu)
106 os_obs="nbsd-tdep.o solib-svr4.o";;
107 *-*-openbsd*)
108 os_obs="obsd-tdep.o solib-svr4.o";;
109 esac
110
111 # 3. Get the rest of objects.
112
113 case "${targ}" in
114 aarch64*-*-elf | aarch64*-*-rtems*)
115 # Target: AArch64 embedded system
116 gdb_target_obs="aarch64-newlib-tdep.o"
117 ;;
118
119 aarch64*-*-freebsd*)
120 # Target: FreeBSD/aarch64
121 gdb_target_obs="aarch64-fbsd-tdep.o"
122 ;;
123
124 aarch64*-*-linux*)
125 # Target: AArch64 linux
126 gdb_target_obs="aarch64-linux-tdep.o arch/aarch64.o\
127 arch/arm.o arch/arm-linux.o arch/arm-get-next-pcs.o \
128 arm-tdep.o arm-linux-tdep.o \
129 glibc-tdep.o linux-tdep.o solib-svr4.o \
130 symfile-mem.o linux-record.o"
131 build_gdbserver=yes
132 ;;
133
134 alpha*-*-linux*)
135 # Target: Little-endian Alpha running Linux
136 gdb_target_obs="alpha-mdebug-tdep.o alpha-linux-tdep.o \
137 linux-tdep.o solib-svr4.o"
138 ;;
139 alpha*-*-netbsd* | alpha*-*-knetbsd*-gnu)
140 # Target: NetBSD/alpha
141 gdb_target_obs="alpha-mdebug-tdep.o alpha-bsd-tdep.o \
142 alpha-nbsd-tdep.o"
143 ;;
144 alpha*-*-openbsd*)
145 # Target: OpenBSD/alpha
146 gdb_target_obs="alpha-mdebug-tdep.o alpha-bsd-tdep.o \
147 alpha-nbsd-tdep.o alpha-obsd-tdep.o nbsd-tdep.o"
148 ;;
149
150 am33_2.0*-*-linux*)
151 # Target: Matsushita mn10300 (AM33) running Linux
152 gdb_target_obs="mn10300-tdep.o mn10300-linux-tdep.o linux-tdep.o \
153 solib-svr4.o"
154 ;;
155
156 arc*-*-elf32)
157 # Target: baremetal ARC elf32 (newlib) target
158 gdb_target_obs="arc-newlib-tdep.o"
159 ;;
160
161 arm*-wince-pe | arm*-*-mingw32ce*)
162 # Target: ARM based machine running Windows CE (win32)
163 gdb_target_obs="arm-wince-tdep.o windows-tdep.o"
164 build_gdbserver=yes
165 ;;
166 arm*-*-linux*)
167 # Target: ARM based machine running GNU/Linux
168 gdb_target_obs="arch/arm-linux.o arm-linux-tdep.o glibc-tdep.o \
169 solib-svr4.o symfile-mem.o linux-tdep.o linux-record.o"
170 build_gdbserver=yes
171 ;;
172 arm*-*-freebsd*)
173 # Target: FreeBSD/arm
174 gdb_target_obs="arm-fbsd-tdep.o"
175 ;;
176 arm*-*-netbsd* | arm*-*-knetbsd*-gnu)
177 # Target: NetBSD/arm
178 gdb_target_obs="arm-nbsd-tdep.o"
179 ;;
180 arm*-*-openbsd*)
181 # Target: OpenBSD/arm
182 gdb_target_obs="arm-bsd-tdep.o arm-obsd-tdep.o"
183 ;;
184 arm*-*-symbianelf*)
185 # Target: SymbianOS/arm
186 gdb_target_obs="arm-symbian-tdep.o"
187 ;;
188 arm*-*-*)
189 # Target: ARM embedded system
190 gdb_target_obs="arm-pikeos-tdep.o"
191 gdb_sim=../sim/arm/libsim.a
192 ;;
193
194 avr-*-*)
195 # Target: AVR
196 gdb_target_obs="avr-tdep.o"
197 gdb_sim=../sim/avr/libsim.a
198 ;;
199
200 bfin-*-*linux*)
201 # Target: Blackfin Linux
202 gdb_target_obs="bfin-tdep.o bfin-linux-tdep.o linux-tdep.o"
203 gdb_sim=../sim/bfin/libsim.a
204 build_gdbserver=yes
205 ;;
206 bfin-*-*)
207 # Target: Blackfin processor
208 gdb_target_obs="bfin-tdep.o"
209 gdb_sim=../sim/bfin/libsim.a
210 ;;
211
212 cris*)
213 # Target: CRIS
214 gdb_target_obs="cris-tdep.o cris-linux-tdep.o linux-tdep.o solib-svr4.o"
215 ;;
216
217 csky*-*-linux*)
218 # Target: CSKY running GNU/Linux
219 gdb_target_obs="csky-tdep.o csky-linux-tdep.o glibc-tdep.o \
220 linux-tdep.o solib-svr4.o"
221 ;;
222
223 csky*-*-*)
224 # Target: CSKY bare metal
225 gdb_target_obs="csky-tdep.o"
226 ;;
227
228 frv-*-*)
229 # Target: Fujitsu FRV processor
230 gdb_target_obs="frv-tdep.o frv-linux-tdep.o linux-tdep.o solib-frv.o"
231 gdb_sim=../sim/frv/libsim.a
232 ;;
233
234 moxie-*-elf | moxie-*-moxiebox | moxie-*-rtems*)
235 gdb_target_obs="moxie-tdep.o"
236 gdb_sim=../sim/moxie/libsim.a
237 ;;
238
239 h8300-*-*)
240 # Target: H8300 processor
241 gdb_target_obs="h8300-tdep.o"
242 gdb_sim=../sim/h8300/libsim.a
243 ;;
244
245 hppa*-*-linux*)
246 # Target: HP PA-RISC running Linux
247 gdb_target_obs="hppa-linux-tdep.o glibc-tdep.o \
248 linux-tdep.o solib-svr4.o symfile-mem.o"
249 ;;
250 hppa*-*-netbsd*)
251 # Target: NetBSD/hppa
252 gdb_target_obs="hppa-bsd-tdep.o hppa-nbsd-tdep.o solib-svr4.o"
253 ;;
254 hppa*-*-openbsd*)
255 # Target: OpenBSD/hppa
256 gdb_target_obs="hppa-bsd-tdep.o hppa-obsd-tdep.o solib-svr4.o"
257 ;;
258
259 i[34567]86-*-darwin*)
260 # Target: Darwin/i386
261 gdb_target_obs="i386-darwin-tdep.o solib-darwin.o"
262 if test "x$enable_64_bit_bfd" = "xyes"; then
263 # Target: GNU/Linux x86-64
264 gdb_target_obs="amd64-darwin-tdep.o ${gdb_target_obs}"
265 fi
266 ;;
267 i[34567]86-*-dicos*)
268 # Target: DICOS/i386
269 gdb_target_obs="dicos-tdep.o i386-dicos-tdep.o"
270 ;;
271 i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
272 # Target: FreeBSD/i386
273 gdb_target_obs="i386-bsd-tdep.o i386-fbsd-tdep.o "
274 ;;
275 i[34567]86-*-netbsd* | i[34567]86-*-knetbsd*-gnu)
276 # Target: NetBSD/i386
277 gdb_target_obs="i386-bsd-tdep.o i386-nbsd-tdep.o "
278 ;;
279 i[34567]86-*-openbsd*)
280 # Target: OpenBSD/i386
281 gdb_target_obs="i386-bsd-tdep.o i386-obsd-tdep.o bsd-uthread.o"
282 ;;
283 i[34567]86-*-nto*)
284 # Target: Intel 386 running qnx6.
285 gdb_target_obs="solib-svr4.o \
286 i386-nto-tdep.o nto-tdep.o"
287 build_gdbserver=yes
288 ;;
289 i[34567]86-*-solaris2* | x86_64-*-solaris2*)
290 # Target: Solaris x86_64
291 gdb_target_obs="${i386_tobjs} ${amd64_tobjs} \
292 amd64-sol2-tdep.o i386-sol2-tdep.o sol2-tdep.o \
293 solib-svr4.o"
294 ;;
295 i[34567]86-*-linux*)
296 # Target: Intel 386 running GNU/Linux
297 gdb_target_obs="i386-linux-tdep.o \
298 glibc-tdep.o \
299 solib-svr4.o symfile-mem.o \
300 linux-tdep.o linux-record.o"
301 if test "x$enable_64_bit_bfd" = "xyes"; then
302 # Target: GNU/Linux x86-64
303 gdb_target_obs="amd64-linux-tdep.o ${gdb_target_obs}"
304 fi
305 build_gdbserver=yes
306 ;;
307 i[34567]86-*-gnu*)
308 # Target: Intel 386 running the GNU Hurd
309 gdb_target_obs="i386-gnu-tdep.o solib-svr4.o"
310 ;;
311 i[34567]86-*-cygwin*)
312 # Target: Intel 386 running win32
313 gdb_target_obs="i386-cygwin-tdep.o windows-tdep.o"
314 build_gdbserver=yes
315 ;;
316 i[34567]86-*-mingw32*)
317 # Target: Intel 386 running win32
318 gdb_target_obs="i386-cygwin-tdep.o windows-tdep.o"
319 build_gdbserver=yes
320 ;;
321 i[34567]86-*-go32* | i[34567]86-*-msdosdjgpp*)
322 # Target: i386 running DJGPP/go32.
323 gdb_target_obs="i386-go32-tdep.o"
324 ;;
325
326 ia64-*-linux*)
327 # Target: Intel IA-64 running GNU/Linux
328 gdb_target_obs="ia64-linux-tdep.o linux-tdep.o \
329 solib-svr4.o symfile-mem.o"
330 build_gdbserver=yes
331 ;;
332 ia64-*-*vms*)
333 # Target: Intel IA-64 running OpenVMS
334 gdb_target_obs="ia64-vms-tdep.o"
335 ;;
336
337 iq2000-*-*)
338 gdb_target_obs="iq2000-tdep.o"
339 gdb_sim=../sim/iq2000/libsim.a
340 ;;
341
342 lm32-*-*)
343 gdb_target_obs="lm32-tdep.o"
344 gdb_sim=../sim/lm32/libsim.a
345 ;;
346
347 m32c-*-*)
348 # Target: Renesas M32C family
349 gdb_target_obs="m32c-tdep.o"
350 # There may also be a SID / CGEN simulator for this,
351 # but we do have DJ Delorie's mini-sim.
352 gdb_sim=../sim/m32c/libsim.a
353 ;;
354
355 m32r*-*-linux*)
356 # Target: Renesas M32R running GNU/Linux
357 gdb_target_obs="m32r-tdep.o m32r-linux-tdep.o \
358 glibc-tdep.o solib-svr4.o symfile-mem.o \
359 linux-tdep.o"
360 gdb_sim=../sim/m32r/libsim.a
361 build_gdbserver=yes
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 build_gdbserver=yes
385 ;;
386 m68*-*-netbsd* | m68*-*-knetbsd*-gnu)
387 # Target: NetBSD/m68k
388 gdb_target_obs="m68k-tdep.o m68k-bsd-tdep.o"
389 ;;
390 m68*-*-openbsd*)
391 # Target: OpenBSD/m68k
392 gdb_target_obs="m68k-tdep.o m68k-bsd-tdep.o"
393 ;;
394
395 mep-*-*)
396 # Target: Toshiba Media Processor (MEP)
397 gdb_target_obs="mep-tdep.o"
398 # No sim needed. Target uses SID.
399 ;;
400
401 microblaze*-linux-*|microblaze*-*-linux*)
402 # Target: Xilinx MicroBlaze running Linux
403 gdb_target_obs="microblaze-tdep.o microblaze-linux-tdep.o solib-svr4.o \
404 symfile-mem.o linux-tdep.o"
405 gdb_sim=../sim/microblaze/libsim.a
406 ;;
407 microblaze*-*-*)
408 # Target: Xilinx MicroBlaze running standalone
409 gdb_target_obs="microblaze-tdep.o"
410 gdb_sim=../sim/microblaze/libsim.a
411 ;;
412
413 mips*-*-linux*)
414 # Target: Linux/MIPS
415 gdb_target_obs="mips-tdep.o mips-linux-tdep.o glibc-tdep.o \
416 solib-svr4.o symfile-mem.o linux-tdep.o"
417 gdb_sim=../sim/mips/libsim.a
418 build_gdbserver=yes
419 ;;
420 mips*-*-netbsd* | mips*-*-knetbsd*-gnu)
421 # Target: MIPS running NetBSD
422 gdb_target_obs="mips-tdep.o mips-nbsd-tdep.o"
423 gdb_sim=../sim/mips/libsim.a
424 ;;
425 mips*-*-freebsd*)
426 # Target: MIPS running FreeBSD
427 gdb_target_obs="mips-tdep.o mips-fbsd-tdep.o"
428 gdb_sim=../sim/mips/libsim.a
429 ;;
430 mips64*-*-openbsd*)
431 # Target: OpenBSD/mips64
432 gdb_target_obs="mips-tdep.o mips64-obsd-tdep.o"
433 ;;
434 mips*-sde*-elf*)
435 # Target: MIPS SDE
436 gdb_target_obs="mips-tdep.o mips-sde-tdep.o"
437 gdb_sim=../sim/mips/libsim.a
438 ;;
439 mips*-*-elf)
440 # Target: MIPS ELF
441 gdb_target_obs="mips-tdep.o"
442 gdb_sim=../sim/mips/libsim.a
443 ;;
444 mips*-*-*)
445 # Target: MIPS
446 gdb_target_obs="mips-tdep.o"
447 gdb_sim=../sim/mips/libsim.a
448 ;;
449
450 mn10300-*-*)
451 # Target: Matsushita mn10300
452 gdb_target_obs="mn10300-tdep.o"
453 gdb_sim=../sim/mn10300/libsim.a
454 ;;
455
456 msp430*-*-elf)
457 gdb_target_obs="msp430-tdep.o"
458 gdb_sim=../sim/msp430/libsim.a
459 ;;
460
461 nds32*-*-elf)
462 # Target: AndesTech NDS32 core
463 gdb_target_obs="nds32-tdep.o"
464 ;;
465
466 nios2*-*-linux*)
467 # Target: Altera Nios II running Linux
468 gdb_target_obs="nios2-tdep.o nios2-linux-tdep.o solib-svr4.o \
469 symfile-mem.o glibc-tdep.o linux-tdep.o"
470 ;;
471
472 nios2*-*-*)
473 # Target: Altera Nios II bare-metal
474 gdb_target_obs="nios2-tdep.o"
475 ;;
476
477 or1k*-*-linux*)
478 # Target: OpenCores OpenRISC 1000 32-bit running Linux
479 gdb_target_obs="or1k-tdep.o or1k-linux-tdep.o solib-svr4.o \
480 symfile-mem.o glibc-tdep.o linux-tdep.o"
481 gdb_sim=../sim/or1k/libsim.a
482 build_gdbserver=yes
483 ;;
484
485 or1k-*-* | or1knd-*-*)
486 # Target: OpenCores OpenRISC 1000 32-bit implementation bare metal
487 gdb_target_obs="or1k-tdep.o"
488 gdb_sim=../sim/or1k/libsim.a
489 ;;
490
491 powerpc*-*-freebsd*)
492 # Target: FreeBSD/powerpc
493 gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppc64-tdep.o \
494 ppc-fbsd-tdep.o \
495 ravenscar-thread.o ppc-ravenscar-thread.o"
496 ;;
497
498 powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu)
499 # Target: NetBSD/powerpc
500 gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppc-nbsd-tdep.o \
501 ravenscar-thread.o ppc-ravenscar-thread.o"
502 gdb_sim=../sim/ppc/libsim.a
503 ;;
504 powerpc-*-openbsd*)
505 # Target: OpenBSD/powerpc
506 gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppc-obsd-tdep.o \
507 ravenscar-thread.o ppc-ravenscar-thread.o"
508 ;;
509 powerpc-*-aix* | rs6000-*-* | powerpc64-*-aix*)
510 # Target: PowerPC running AIX
511 gdb_target_obs="rs6000-tdep.o rs6000-aix-tdep.o xcoffread.o \
512 ppc-sysv-tdep.o solib-aix.o \
513 ravenscar-thread.o ppc-ravenscar-thread.o"
514 ;;
515 powerpc*-*-linux*)
516 # Target: PowerPC running Linux
517 gdb_target_obs="rs6000-tdep.o ppc-linux-tdep.o ppc-sysv-tdep.o \
518 ppc64-tdep.o solib-svr4.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 s12z-*-*)
672 # Target: Freescale S12z
673 gdb_target_obs="s12z-tdep.o"
674 ;;
675
676 tic6x-*-*linux)
677 # Target: GNU/Linux TI C6x
678 gdb_target_obs="tic6x-tdep.o tic6x-linux-tdep.o solib-dsbt.o \
679 glibc-tdep.o linux-tdep.o"
680 ;;
681
682 tic6x-*-*)
683 # Target: TI C6X
684 gdb_target_obs="tic6x-tdep.o"
685 ;;
686
687 tilegx-*-linux*)
688 # Target: TILE-Gx
689 gdb_target_obs="tilegx-tdep.o tilegx-linux-tdep.o solib-svr4.o \
690 symfile-mem.o glibc-tdep.o linux-tdep.o"
691 build_gdbserver=yes
692 ;;
693
694 xstormy16-*-*)
695 # Target: Sanyo Xstormy16a processor
696 gdb_target_obs="xstormy16-tdep.o"
697 # No simulator libraries are needed -- target uses SID.
698 ;;
699
700 ft32-*-elf)
701 gdb_target_obs="ft32-tdep.o"
702 gdb_sim=../sim/ft32/libsim.a
703 ;;
704
705 v850*-*-elf | v850*-*-rtems*)
706 # Target: NEC V850 processor
707 gdb_target_obs="v850-tdep.o"
708 gdb_sim=../sim/v850/libsim.a
709 ;;
710
711 vax-*-netbsd* | vax-*-knetbsd*-gnu)
712 # Target: NetBSD/vax
713 gdb_target_obs="vax-tdep.o solib-svr4.o"
714 ;;
715 vax-*-openbsd*)
716 # Target: OpenBSD/vax
717 gdb_target_obs="vax-tdep.o"
718 ;;
719 vax-*-*)
720 # Target: VAX
721 gdb_target_obs="vax-tdep.o"
722 ;;
723
724 x86_64-*-darwin*)
725 # Target: Darwin/x86-64
726 gdb_target_obs="${i386_tobjs} \
727 i386-darwin-tdep.o amd64-darwin-tdep.o \
728 solib-darwin.o"
729 ;;
730
731 x86_64-*-dicos*)
732 # Target: DICOS/x86-64
733 gdb_target_obs="${i386_tobjs} \
734 dicos-tdep.o i386-dicos-tdep.o amd64-dicos-tdep.o"
735 ;;
736 x86_64-*-elf*)
737 gdb_target_obs="${i386_tobjs}"
738 ;;
739 x86_64-*-linux*)
740 # Target: GNU/Linux x86-64
741 gdb_target_obs="amd64-linux-tdep.o ${i386_tobjs} \
742 i386-linux-tdep.o glibc-tdep.o \
743 solib-svr4.o symfile-mem.o linux-tdep.o linux-record.o"
744 build_gdbserver=yes
745 ;;
746 x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
747 # Target: FreeBSD/amd64
748 gdb_target_obs="amd64-fbsd-tdep.o ${i386_tobjs} \
749 i386-bsd-tdep.o i386-fbsd-tdep.o"
750 ;;
751 x86_64-*-mingw* | x86_64-*-cygwin*)
752 # Target: MingW/amd64
753 gdb_target_obs="amd64-windows-tdep.o \
754 ${i386_tobjs} i386-cygwin-tdep.o \
755 windows-tdep.o"
756 build_gdbserver=yes
757 ;;
758 x86_64-*-netbsd* | x86_64-*-knetbsd*-gnu)
759 # Target: NetBSD/amd64
760 gdb_target_obs="amd64-nbsd-tdep.o ${i386_tobjs}"
761 ;;
762 x86_64-*-openbsd*)
763 # Target: OpenBSD/amd64
764 gdb_target_obs="amd64-obsd-tdep.o ${i386_tobjs} \
765 i386-bsd-tdep.o i386-obsd-tdep.o \
766 bsd-uthread.o"
767 ;;
768 x86_64-*-rtems*)
769 gdb_target_obs="${amd64_tobjs} ${i386_tobjs} i386-bsd-tdep.o"
770 ;;
771 xtensa*-*-*linux*)
772 # Target: GNU/Linux Xtensa
773 gdb_target_obs="xtensa-linux-tdep.o symfile-mem.o linux-tdep.o"
774 build_gdbserver=yes
775 ;;
776
777 esac
778
779 # Put them together.
780
781 gdb_target_obs="${cpu_obs} ${os_obs} ${gdb_target_obs}"
782
783 # map target onto default OS ABI
784
785 case "${targ}" in
786 *-*-freebsd* | *-*-kfreebsd*-gnu)
787 gdb_osabi=GDB_OSABI_FREEBSD ;;
788 *-*-linux* | *-*-uclinux*)
789 gdb_osabi=GDB_OSABI_LINUX ;;
790 *-*-nto*) gdb_osabi=GDB_OSABI_QNXNTO ;;
791 m68*-*-openbsd* | m88*-*-openbsd* | vax-*-openbsd*) ;;
792 *-*-openbsd*) gdb_osabi=GDB_OSABI_OPENBSD ;;
793 *-*-solaris*) gdb_osabi=GDB_OSABI_SOLARIS ;;
794 *-*-*-gnu*) ;; # prevent non-GNU kernels to match the Hurd rule below
795 *-*-gnu*) gdb_osabi=GDB_OSABI_HURD ;;
796 *-*-mingw32ce*) gdb_osabi=GDB_OSABI_WINCE ;;
797 *-*-mingw* | *-*-cygwin*)
798 gdb_osabi=GDB_OSABI_CYGWIN ;;
799 *-*-dicos*) gdb_osabi=GDB_OSABI_DICOS ;;
800 *-*-symbianelf*)
801 gdb_osabi=GDB_OSABI_SYMBIAN ;;
802 powerpc-*-aix* | rs6000-*-* | powerpc64-*-aix*)
803 gdb_osabi=GDB_OSABI_AIX ;;
804 esac
805
806 # Check whether this target supports gcore.
807 # Such target has to call set_gdbarch_find_memory_regions.
808 gdb_have_gcore=false
809 for t in x ${gdb_target_obs}; do
810 if test "$t" = linux-tdep.o; then
811 gdb_have_gcore=true
812 fi
813 done
This page took 0.045828 seconds and 3 git commands to generate.