gdb: xtensa: drop gdb_target definition
[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 gdb_sim=../sim/ppc/libsim.a
497 build_gdbserver=yes
498 ;;
499 powerpc-*-lynx*178)
500 # Target: PowerPC running Lynx178.
501 gdb_target_obs="rs6000-tdep.o rs6000-lynx178-tdep.o \
502 xcoffread.o ppc-sysv-tdep.o \
503 ravenscar-thread.o ppc-ravenscar-thread.o"
504 ;;
505 powerpc*-*-*)
506 # Target: PowerPC running eabi
507 gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o solib-svr4.o \
508 ravenscar-thread.o ppc-ravenscar-thread.o"
509 gdb_sim=../sim/ppc/libsim.a
510 ;;
511
512 s390*-*-linux*)
513 # Target: S390 running Linux
514 gdb_target_obs="s390-linux-tdep.o s390-tdep.o solib-svr4.o \
515 linux-tdep.o linux-record.o symfile-mem.o"
516 build_gdbserver=yes
517 ;;
518
519 riscv*-*-*)
520 # Target: RISC-V architecture
521 gdb_target_obs="riscv-tdep.o"
522 ;;
523
524 rl78-*-elf)
525 # Target: Renesas rl78
526 gdb_target_obs="rl78-tdep.o"
527 gdb_sim=../sim/rl78/libsim.a
528 ;;
529
530 rx-*-elf)
531 # Target: Renesas RX
532 gdb_target_obs="rx-tdep.o"
533 gdb_sim=../sim/rx/libsim.a
534 ;;
535
536 score-*-*)
537 # Target: S+core embedded system
538 gdb_target_obs="score-tdep.o"
539 build_gdbserver=yes
540 ;;
541
542 sh*-*-linux*)
543 # Target: GNU/Linux Super-H
544 gdb_target_obs="sh-tdep.o sh-linux-tdep.o \
545 solib-svr4.o symfile-mem.o \
546 glibc-tdep.o linux-tdep.o"
547 gdb_sim=../sim/sh/libsim.a
548 build_gdbserver=yes
549 ;;
550 sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu)
551 # Target: NetBSD/sh
552 gdb_target_obs="sh-tdep.o sh-nbsd-tdep.o"
553 gdb_sim=../sim/sh/libsim.a
554 ;;
555 sh*-*-openbsd*)
556 # Target: OpenBSD/sh
557 gdb_target_obs="sh-tdep.o sh-nbsd-tdep.o"
558 ;;
559 sh*)
560 # Target: Embedded Renesas Super-H processor
561 gdb_target_obs="sh-tdep.o"
562 gdb_sim=../sim/sh/libsim.a
563 ;;
564
565 sparc-*-linux*)
566 # Target: GNU/Linux SPARC
567 gdb_target_obs="sparc-tdep.o sparc-sol2-tdep.o sol2-tdep.o \
568 sparc-linux-tdep.o solib-svr4.o symfile-mem.o \
569 linux-tdep.o \
570 ravenscar-thread.o sparc-ravenscar-thread.o"
571 if test "x$enable_64_bit_bfd" = "xyes"; then
572 # Target: GNU/Linux UltraSPARC
573 gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o \
574 sparc64-linux-tdep.o ${gdb_target_obs}"
575 fi
576 build_gdbserver=yes
577 ;;
578 sparc64-*-linux*)
579 # Target: GNU/Linux UltraSPARC
580 gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o sol2-tdep.o \
581 sparc64-linux-tdep.o sparc-tdep.o sparc-sol2-tdep.o \
582 sparc-linux-tdep.o solib-svr4.o linux-tdep.o \
583 ravenscar-thread.o sparc-ravenscar-thread.o"
584 build_gdbserver=yes
585 ;;
586 sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu)
587 # Target: FreeBSD/sparc64
588 gdb_target_obs="sparc-tdep.o sparc64-tdep.o sparc64-fbsd-tdep.o \
589 ravenscar-thread.o sparc-ravenscar-thread.o"
590 ;;
591 sparc-*-netbsd* | sparc-*-knetbsd*-gnu)
592 # Target: NetBSD/sparc
593 gdb_target_obs="sparc-tdep.o sparc-nbsd-tdep.o \
594 ravenscar-thread.o sparc-ravenscar-thread.o"
595 ;;
596 sparc64-*-netbsd* | sparc64-*-knetbsd*-gnu)
597 # Target: NetBSD/sparc64
598 gdb_target_obs="sparc64-tdep.o sparc64-nbsd-tdep.o sparc-tdep.o \
599 sparc-nbsd-tdep.o \
600 ravenscar-thread.o sparc-ravenscar-thread.o"
601 ;;
602 sparc-*-openbsd*)
603 # Target: OpenBSD/sparc
604 gdb_target_obs="sparc-tdep.o sparc-nbsd-tdep.o sparc-obsd-tdep.o \
605 nbsd-tdep.o bsd-uthread.o \
606 ravenscar-thread.o sparc-ravenscar-thread.o"
607 ;;
608 sparc64-*-openbsd*)
609 # Target: OpenBSD/sparc64
610 gdb_target_obs="sparc64-tdep.o sparc64-nbsd-tdep.o sparc64-obsd-tdep.o \
611 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 sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*)
616 # Target: Solaris UltraSPARC
617 gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o sparc-tdep.o \
618 sparc-sol2-tdep.o sol2-tdep.o solib-svr4.o \
619 ravenscar-thread.o sparc-ravenscar-thread.o"
620 ;;
621 sparc-*-*)
622 # Target: SPARC
623 gdb_target_obs="sparc-tdep.o \
624 ravenscar-thread.o sparc-ravenscar-thread.o"
625 gdb_sim=../sim/erc32/libsim.a
626 ;;
627 sparc64-*-*)
628 # Target: UltraSPARC
629 gdb_target_obs="sparc-tdep.o sparc64-tdep.o \
630 ravenscar-thread.o sparc-ravenscar-thread.o"
631 ;;
632
633 spu*-*-*)
634 # Target: Cell BE SPU
635 gdb_target_obs="spu-tdep.o"
636 build_gdbserver=yes
637 ;;
638
639 tic6x-*-*linux)
640 # Target: GNU/Linux TI C6x
641 gdb_target_obs="tic6x-tdep.o tic6x-linux-tdep.o solib-dsbt.o \
642 glibc-tdep.o linux-tdep.o"
643 ;;
644
645 tic6x-*-*)
646 # Target: TI C6X
647 gdb_target_obs="tic6x-tdep.o"
648 ;;
649
650 tilegx-*-linux*)
651 # Target: TILE-Gx
652 gdb_target_obs="tilegx-tdep.o tilegx-linux-tdep.o solib-svr4.o \
653 symfile-mem.o glibc-tdep.o linux-tdep.o"
654 build_gdbserver=yes
655 ;;
656
657 xstormy16-*-*)
658 # Target: Sanyo Xstormy16a processor
659 gdb_target_obs="xstormy16-tdep.o"
660 # No simulator libraries are needed -- target uses SID.
661 ;;
662
663 ft32-*-elf)
664 gdb_target_obs="ft32-tdep.o"
665 gdb_sim=../sim/ft32/libsim.a
666 ;;
667
668 v850*-*-elf | v850*-*-rtems*)
669 # Target: NEC V850 processor
670 gdb_target_obs="v850-tdep.o"
671 gdb_sim=../sim/v850/libsim.a
672 ;;
673
674 vax-*-netbsd* | vax-*-knetbsd*-gnu)
675 # Target: NetBSD/vax
676 gdb_target_obs="vax-tdep.o solib-svr4.o"
677 ;;
678 vax-*-openbsd*)
679 # Target: OpenBSD/vax
680 gdb_target_obs="vax-tdep.o"
681 ;;
682 vax-*-*)
683 # Target: VAX
684 gdb_target_obs="vax-tdep.o"
685 ;;
686
687 x86_64-*-darwin*)
688 # Target: Darwin/x86-64
689 gdb_target_obs="${i386_tobjs} \
690 i386-darwin-tdep.o amd64-darwin-tdep.o \
691 solib-darwin.o"
692 ;;
693
694 x86_64-*-dicos*)
695 # Target: DICOS/x86-64
696 gdb_target_obs="${i386_tobjs} \
697 dicos-tdep.o i386-dicos-tdep.o amd64-dicos-tdep.o"
698 ;;
699 x86_64-*-elf*)
700 gdb_target_obs="${i386_tobjs}"
701 ;;
702 x86_64-*-linux*)
703 # Target: GNU/Linux x86-64
704 gdb_target_obs="amd64-linux-tdep.o ${i386_tobjs} \
705 i386-linux-tdep.o glibc-tdep.o \
706 solib-svr4.o symfile-mem.o linux-tdep.o linux-record.o"
707 build_gdbserver=yes
708 ;;
709 x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
710 # Target: FreeBSD/amd64
711 gdb_target_obs="amd64-fbsd-tdep.o ${i386_tobjs} \
712 i386-bsd-tdep.o i386-fbsd-tdep.o"
713 ;;
714 x86_64-*-mingw* | x86_64-*-cygwin*)
715 # Target: MingW/amd64
716 gdb_target_obs="amd64-windows-tdep.o \
717 ${i386_tobjs} i386-cygwin-tdep.o \
718 windows-tdep.o"
719 build_gdbserver=yes
720 ;;
721 x86_64-*-netbsd* | x86_64-*-knetbsd*-gnu)
722 # Target: NetBSD/amd64
723 gdb_target_obs="amd64-nbsd-tdep.o ${i386_tobjs}"
724 ;;
725 x86_64-*-openbsd*)
726 # Target: OpenBSD/amd64
727 gdb_target_obs="amd64-obsd-tdep.o ${i386_tobjs} \
728 i386-bsd-tdep.o i386-obsd-tdep.o \
729 bsd-uthread.o"
730 ;;
731 x86_64-*-rtems*)
732 gdb_target_obs="${amd64_tobjs} ${i386_tobjs} i386-bsd-tdep.o"
733 ;;
734 xtensa*-*-linux*)
735 # Target: GNU/Linux Xtensa
736 gdb_target_obs="xtensa-linux-tdep.o symfile-mem.o linux-tdep.o"
737 build_gdbserver=yes
738 ;;
739
740 esac
741
742 # Put them together.
743
744 gdb_target_obs="${cpu_obs} ${os_obs} ${gdb_target_obs}"
745
746 # map target onto default OS ABI
747
748 case "${targ}" in
749 *-*-freebsd* | *-*-kfreebsd*-gnu)
750 gdb_osabi=GDB_OSABI_FREEBSD ;;
751 *-*-linux* | *-*-uclinux*)
752 gdb_osabi=GDB_OSABI_LINUX ;;
753 *-*-nto*) gdb_osabi=GDB_OSABI_QNXNTO ;;
754 m68*-*-openbsd* | m88*-*-openbsd* | vax-*-openbsd*) ;;
755 *-*-openbsd*) gdb_osabi=GDB_OSABI_OPENBSD ;;
756 *-*-solaris*) gdb_osabi=GDB_OSABI_SOLARIS ;;
757 *-*-*-gnu*) ;; # prevent non-GNU kernels to match the Hurd rule below
758 *-*-gnu*) gdb_osabi=GDB_OSABI_HURD ;;
759 *-*-mingw32ce*) gdb_osabi=GDB_OSABI_WINCE ;;
760 *-*-mingw* | *-*-cygwin*)
761 gdb_osabi=GDB_OSABI_CYGWIN ;;
762 *-*-dicos*) gdb_osabi=GDB_OSABI_DICOS ;;
763 *-*-symbianelf*)
764 gdb_osabi=GDB_OSABI_SYMBIAN ;;
765 powerpc-*-aix* | rs6000-*-* | powerpc64-*-aix*)
766 gdb_osabi=GDB_OSABI_AIX ;;
767 esac
768
769 # Check whether this target supports gcore.
770 # Such target has to call set_gdbarch_find_memory_regions.
771 gdb_have_gcore=false
772 for t in x ${gdb_target_obs}; do
773 if test "$t" = linux-tdep.o; then
774 gdb_have_gcore=true
775 fi
776 done
This page took 0.047644 seconds and 4 git commands to generate.