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