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