Add x86-tdep.o to i386/amd64 target build
[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 m88*-*-openbsd*)
377 # Target: OpenBSD/m88k
378 gdb_target_obs="m88k-tdep.o"
379 ;;
380
381 mep-*-*)
382 # Target: Toshiba Media Processor (MEP)
383 gdb_target_obs="mep-tdep.o"
384 # No sim needed. Target uses SID.
385 ;;
386
387 microblaze*-linux-*|microblaze*-*-linux*)
388 # Target: Xilinx MicroBlaze running Linux
389 gdb_target_obs="microblaze-tdep.o microblaze-linux-tdep.o solib-svr4.o \
390 symfile-mem.o linux-tdep.o"
391 gdb_sim=../sim/microblaze/libsim.a
392 ;;
393 microblaze*-*-*)
394 # Target: Xilinx MicroBlaze running standalone
395 gdb_target_obs="microblaze-tdep.o"
396 gdb_sim=../sim/microblaze/libsim.a
397 ;;
398
399 mips*-*-linux*)
400 # Target: Linux/MIPS
401 gdb_target_obs="mips-tdep.o mips-linux-tdep.o glibc-tdep.o \
402 solib-svr4.o symfile-mem.o linux-tdep.o"
403 gdb_sim=../sim/mips/libsim.a
404 build_gdbserver=yes
405 ;;
406 mips*-*-netbsd* | mips*-*-knetbsd*-gnu)
407 # Target: MIPS running NetBSD
408 gdb_target_obs="mips-tdep.o mips-nbsd-tdep.o"
409 gdb_sim=../sim/mips/libsim.a
410 ;;
411 mips*-*-freebsd*)
412 # Target: MIPS running FreeBSD
413 gdb_target_obs="mips-tdep.o mips-fbsd-tdep.o"
414 gdb_sim=../sim/mips/libsim.a
415 ;;
416 mips64*-*-openbsd*)
417 # Target: OpenBSD/mips64
418 gdb_target_obs="mips-tdep.o mips64-obsd-tdep.o"
419 ;;
420 mips*-sde*-elf*)
421 # Target: MIPS SDE
422 gdb_target_obs="mips-tdep.o mips-sde-tdep.o"
423 gdb_sim=../sim/mips/libsim.a
424 ;;
425 mips*-*-elf)
426 # Target: MIPS ELF
427 gdb_target_obs="mips-tdep.o"
428 gdb_sim=../sim/mips/libsim.a
429 ;;
430 mips*-*-*)
431 # Target: MIPS
432 gdb_target_obs="mips-tdep.o"
433 gdb_sim=../sim/mips/libsim.a
434 ;;
435
436 mn10300-*-*)
437 # Target: Matsushita mn10300
438 gdb_target_obs="mn10300-tdep.o"
439 gdb_sim=../sim/mn10300/libsim.a
440 ;;
441
442 msp430*-*-elf)
443 gdb_target_obs="msp430-tdep.o"
444 gdb_sim=../sim/msp430/libsim.a
445 ;;
446
447 nds32*-*-elf)
448 # Target: AndesTech NDS32 core
449 gdb_target_obs="nds32-tdep.o"
450 ;;
451
452 nios2*-*-linux*)
453 # Target: Altera Nios II running Linux
454 gdb_target_obs="nios2-tdep.o nios2-linux-tdep.o solib-svr4.o \
455 symfile-mem.o glibc-tdep.o linux-tdep.o"
456 ;;
457
458 nios2*-*-*)
459 # Target: Altera Nios II bare-metal
460 gdb_target_obs="nios2-tdep.o"
461 ;;
462
463 or1k-*-* | or1knd-*-*)
464 # Target: OpenCores OpenRISC 1000 32-bit implementation bare metal
465 gdb_target_obs="or1k-tdep.o"
466 gdb_sim=../sim/or1k/libsim.a
467 ;;
468
469 powerpc*-*-freebsd*)
470 # Target: FreeBSD/powerpc
471 gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppc64-tdep.o \
472 ppc-fbsd-tdep.o \
473 ravenscar-thread.o ppc-ravenscar-thread.o"
474 ;;
475
476 powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu)
477 # Target: NetBSD/powerpc
478 gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppc-nbsd-tdep.o \
479 ravenscar-thread.o ppc-ravenscar-thread.o"
480 gdb_sim=../sim/ppc/libsim.a
481 ;;
482 powerpc-*-openbsd*)
483 # Target: OpenBSD/powerpc
484 gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppc-obsd-tdep.o \
485 ravenscar-thread.o ppc-ravenscar-thread.o"
486 ;;
487 powerpc-*-aix* | rs6000-*-* | powerpc64-*-aix*)
488 # Target: PowerPC running AIX
489 gdb_target_obs="rs6000-tdep.o rs6000-aix-tdep.o xcoffread.o \
490 ppc-sysv-tdep.o solib-aix.o \
491 ravenscar-thread.o ppc-ravenscar-thread.o"
492 ;;
493 powerpc*-*-linux*)
494 # Target: PowerPC running Linux
495 gdb_target_obs="rs6000-tdep.o ppc-linux-tdep.o ppc-sysv-tdep.o \
496 ppc64-tdep.o solib-svr4.o solib-spu.o \
497 spu-multiarch.o \
498 glibc-tdep.o symfile-mem.o linux-tdep.o \
499 ravenscar-thread.o ppc-ravenscar-thread.o \
500 linux-record.o "
501 gdb_sim=../sim/ppc/libsim.a
502 build_gdbserver=yes
503 ;;
504 powerpc-*-lynx*178)
505 # Target: PowerPC running Lynx178.
506 gdb_target_obs="rs6000-tdep.o rs6000-lynx178-tdep.o \
507 xcoffread.o ppc-sysv-tdep.o \
508 ravenscar-thread.o ppc-ravenscar-thread.o"
509 ;;
510 powerpc*-*-*)
511 # Target: PowerPC running eabi
512 gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o solib-svr4.o \
513 ravenscar-thread.o ppc-ravenscar-thread.o"
514 gdb_sim=../sim/ppc/libsim.a
515 ;;
516
517 s390*-*-linux*)
518 # Target: S390 running Linux
519 gdb_target_obs="s390-linux-tdep.o s390-tdep.o solib-svr4.o \
520 linux-tdep.o linux-record.o symfile-mem.o"
521 build_gdbserver=yes
522 ;;
523
524 riscv*-*-*)
525 # Target: RISC-V architecture
526 gdb_target_obs="riscv-tdep.o"
527 ;;
528
529 rl78-*-elf)
530 # Target: Renesas rl78
531 gdb_target_obs="rl78-tdep.o"
532 gdb_sim=../sim/rl78/libsim.a
533 ;;
534
535 rx-*-elf)
536 # Target: Renesas RX
537 gdb_target_obs="rx-tdep.o"
538 gdb_sim=../sim/rx/libsim.a
539 ;;
540
541 score-*-*)
542 # Target: S+core embedded system
543 gdb_target_obs="score-tdep.o"
544 build_gdbserver=yes
545 ;;
546
547 sh*-*-linux*)
548 # Target: GNU/Linux Super-H
549 gdb_target_obs="sh-tdep.o sh64-tdep.o sh-linux-tdep.o \
550 solib-svr4.o symfile-mem.o \
551 glibc-tdep.o linux-tdep.o"
552 gdb_sim=../sim/sh/libsim.a
553 build_gdbserver=yes
554 ;;
555 sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu)
556 # Target: NetBSD/sh
557 gdb_target_obs="sh-tdep.o sh-nbsd-tdep.o"
558 gdb_sim=../sim/sh/libsim.a
559 ;;
560 sh*-*-openbsd*)
561 # Target: OpenBSD/sh
562 gdb_target_obs="sh-tdep.o sh64-tdep.o sh-nbsd-tdep.o"
563 ;;
564 sh64-*-elf*)
565 # Target: Renesas/Super-H 64 bit with simulator
566 gdb_target_obs="sh-tdep.o sh64-tdep.o"
567 gdb_sim=../sim/sh64/libsim.a
568 ;;
569 sh*)
570 # Target: Embedded Renesas Super-H processor
571 gdb_target_obs="sh-tdep.o sh64-tdep.o"
572 gdb_sim=../sim/sh/libsim.a
573 ;;
574
575 sparc-*-linux*)
576 # Target: GNU/Linux SPARC
577 gdb_target_obs="sparc-tdep.o sparc-sol2-tdep.o sol2-tdep.o \
578 sparc-linux-tdep.o solib-svr4.o symfile-mem.o \
579 linux-tdep.o \
580 ravenscar-thread.o sparc-ravenscar-thread.o"
581 if test "x$enable_64_bit_bfd" = "xyes"; then
582 # Target: GNU/Linux UltraSPARC
583 gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o \
584 sparc64-linux-tdep.o ${gdb_target_obs}"
585 fi
586 build_gdbserver=yes
587 ;;
588 sparc64-*-linux*)
589 # Target: GNU/Linux UltraSPARC
590 gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o sol2-tdep.o \
591 sparc64-linux-tdep.o sparc-tdep.o sparc-sol2-tdep.o \
592 sparc-linux-tdep.o solib-svr4.o linux-tdep.o \
593 ravenscar-thread.o sparc-ravenscar-thread.o"
594 build_gdbserver=yes
595 ;;
596 sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu)
597 # Target: FreeBSD/sparc64
598 gdb_target_obs="sparc-tdep.o sparc64-tdep.o sparc64-fbsd-tdep.o \
599 ravenscar-thread.o sparc-ravenscar-thread.o"
600 ;;
601 sparc-*-netbsd* | sparc-*-knetbsd*-gnu)
602 # Target: NetBSD/sparc
603 gdb_target_obs="sparc-tdep.o sparc-nbsd-tdep.o \
604 ravenscar-thread.o sparc-ravenscar-thread.o"
605 ;;
606 sparc64-*-netbsd* | sparc64-*-knetbsd*-gnu)
607 # Target: NetBSD/sparc64
608 gdb_target_obs="sparc64-tdep.o sparc64-nbsd-tdep.o sparc-tdep.o \
609 sparc-nbsd-tdep.o \
610 ravenscar-thread.o sparc-ravenscar-thread.o"
611 ;;
612 sparc-*-openbsd*)
613 # Target: OpenBSD/sparc
614 gdb_target_obs="sparc-tdep.o sparc-nbsd-tdep.o sparc-obsd-tdep.o \
615 nbsd-tdep.o bsd-uthread.o \
616 ravenscar-thread.o sparc-ravenscar-thread.o"
617 ;;
618 sparc64-*-openbsd*)
619 # Target: OpenBSD/sparc64
620 gdb_target_obs="sparc64-tdep.o sparc64-nbsd-tdep.o sparc64-obsd-tdep.o \
621 sparc-tdep.o sparc-nbsd-tdep.o sparc-obsd-tdep.o \
622 nbsd-tdep.o bsd-uthread.o \
623 ravenscar-thread.o sparc-ravenscar-thread.o"
624 ;;
625 sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*)
626 # Target: Solaris UltraSPARC
627 gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o sparc-tdep.o \
628 sparc-sol2-tdep.o sol2-tdep.o solib-svr4.o \
629 ravenscar-thread.o sparc-ravenscar-thread.o"
630 ;;
631 sparc-*-*)
632 # Target: SPARC
633 gdb_target_obs="sparc-tdep.o \
634 ravenscar-thread.o sparc-ravenscar-thread.o"
635 gdb_sim=../sim/erc32/libsim.a
636 ;;
637 sparc64-*-*)
638 # Target: UltraSPARC
639 gdb_target_obs="sparc-tdep.o sparc64-tdep.o \
640 ravenscar-thread.o sparc-ravenscar-thread.o"
641 ;;
642
643 spu*-*-*)
644 # Target: Cell BE SPU
645 gdb_target_obs="spu-tdep.o"
646 build_gdbserver=yes
647 ;;
648
649 tic6x-*-*linux)
650 # Target: GNU/Linux TI C6x
651 gdb_target_obs="tic6x-tdep.o tic6x-linux-tdep.o solib-dsbt.o \
652 glibc-tdep.o linux-tdep.o"
653 ;;
654
655 tic6x-*-*)
656 # Target: TI C6X
657 gdb_target_obs="tic6x-tdep.o"
658 ;;
659
660 tilegx-*-linux*)
661 # Target: TILE-Gx
662 gdb_target_obs="tilegx-tdep.o tilegx-linux-tdep.o solib-svr4.o \
663 symfile-mem.o glibc-tdep.o linux-tdep.o"
664 build_gdbserver=yes
665 ;;
666
667 xstormy16-*-*)
668 # Target: Sanyo Xstormy16a processor
669 gdb_target_obs="xstormy16-tdep.o"
670 # No simulator libraries are needed -- target uses SID.
671 ;;
672
673 ft32-*-elf)
674 gdb_target_obs="ft32-tdep.o"
675 gdb_sim=../sim/ft32/libsim.a
676 ;;
677
678 v850*-*-elf | v850*-*-rtems*)
679 # Target: NEC V850 processor
680 gdb_target_obs="v850-tdep.o"
681 gdb_sim=../sim/v850/libsim.a
682 ;;
683
684 vax-*-netbsd* | vax-*-knetbsd*-gnu)
685 # Target: NetBSD/vax
686 gdb_target_obs="vax-tdep.o solib-svr4.o"
687 ;;
688 vax-*-openbsd*)
689 # Target: OpenBSD/vax
690 gdb_target_obs="vax-tdep.o"
691 ;;
692 vax-*-*)
693 # Target: VAX
694 gdb_target_obs="vax-tdep.o"
695 ;;
696
697 x86_64-*-darwin*)
698 # Target: Darwin/x86-64
699 gdb_target_obs="${i386_tobjs} \
700 i386-darwin-tdep.o amd64-darwin-tdep.o \
701 solib-darwin.o"
702 ;;
703
704 x86_64-*-dicos*)
705 # Target: DICOS/x86-64
706 gdb_target_obs="${i386_tobjs} \
707 dicos-tdep.o i386-dicos-tdep.o amd64-dicos-tdep.o"
708 ;;
709 x86_64-*-elf*)
710 gdb_target_obs="${i386_tobjs}"
711 ;;
712 x86_64-*-linux*)
713 # Target: GNU/Linux x86-64
714 gdb_target_obs="amd64-linux-tdep.o ${i386_tobjs} \
715 i386-linux-tdep.o glibc-tdep.o \
716 solib-svr4.o symfile-mem.o linux-tdep.o linux-record.o"
717 build_gdbserver=yes
718 ;;
719 x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
720 # Target: FreeBSD/amd64
721 gdb_target_obs="amd64-fbsd-tdep.o ${i386_tobjs} \
722 i386-bsd-tdep.o i386-fbsd-tdep.o"
723 ;;
724 x86_64-*-mingw* | x86_64-*-cygwin*)
725 # Target: MingW/amd64
726 gdb_target_obs="amd64-windows-tdep.o \
727 ${i386_tobjs} i386-cygwin-tdep.o \
728 windows-tdep.o"
729 build_gdbserver=yes
730 ;;
731 x86_64-*-netbsd* | x86_64-*-knetbsd*-gnu)
732 # Target: NetBSD/amd64
733 gdb_target_obs="amd64-nbsd-tdep.o ${i386_tobjs}"
734 ;;
735 x86_64-*-openbsd*)
736 # Target: OpenBSD/amd64
737 gdb_target_obs="amd64-obsd-tdep.o ${i386_tobjs} \
738 i386-bsd-tdep.o i386-obsd-tdep.o \
739 bsd-uthread.o"
740 ;;
741 x86_64-*-rtems*)
742 gdb_target_obs="${amd64_tobjs} ${i386_tobjs} i386-bsd-tdep.o"
743 ;;
744 xtensa*-*-linux*) gdb_target=linux
745 # Target: GNU/Linux Xtensa
746 gdb_target_obs="xtensa-linux-tdep.o symfile-mem.o linux-tdep.o"
747 build_gdbserver=yes
748 ;;
749
750 esac
751
752 # Put them together.
753
754 gdb_target_obs="${cpu_obs} ${os_obs} ${gdb_target_obs}"
755
756 # map target onto default OS ABI
757
758 case "${targ}" in
759 *-*-freebsd* | *-*-kfreebsd*-gnu)
760 gdb_osabi=GDB_OSABI_FREEBSD ;;
761 *-*-linux* | *-*-uclinux*)
762 gdb_osabi=GDB_OSABI_LINUX ;;
763 *-*-nto*) gdb_osabi=GDB_OSABI_QNXNTO ;;
764 m68*-*-openbsd* | m88*-*-openbsd* | vax-*-openbsd*) ;;
765 *-*-openbsd*) gdb_osabi=GDB_OSABI_OPENBSD ;;
766 *-*-solaris*) gdb_osabi=GDB_OSABI_SOLARIS ;;
767 *-*-*-gnu*) ;; # prevent non-GNU kernels to match the Hurd rule below
768 *-*-gnu*) gdb_osabi=GDB_OSABI_HURD ;;
769 *-*-mingw32ce*) gdb_osabi=GDB_OSABI_WINCE ;;
770 *-*-mingw* | *-*-cygwin*)
771 gdb_osabi=GDB_OSABI_CYGWIN ;;
772 *-*-dicos*) gdb_osabi=GDB_OSABI_DICOS ;;
773 *-*-symbianelf*)
774 gdb_osabi=GDB_OSABI_SYMBIAN ;;
775 powerpc-*-aix* | rs6000-*-* | powerpc64-*-aix*)
776 gdb_osabi=GDB_OSABI_AIX ;;
777 esac
778
779 # Check whether this target supports gcore.
780 # Such target has to call set_gdbarch_find_memory_regions.
781 gdb_have_gcore=false
782 for t in x ${gdb_target_obs}; do
783 if test "$t" = linux-tdep.o; then
784 gdb_have_gcore=true
785 fi
786 done
This page took 0.047447 seconds and 5 git commands to generate.