Remove support for Solaris < 10 (PR gdb/22185)
[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* | x86_64-*-solaris2*)
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-*-linux*)
233         # Target: Intel 386 running GNU/Linux
234         gdb_target_obs="i386-tdep.o i386.o i386-linux-tdep.o \
235                         glibc-tdep.o i387-tdep.o \
236                         solib-svr4.o symfile-mem.o \
237                         linux-tdep.o linux-record.o"
238         if test "x$enable_64_bit_bfd" = "xyes"; then
239             # Target: GNU/Linux x86-64
240             gdb_target_obs="amd64-tdep.o amd64.o amd64-linux-tdep.o ${gdb_target_obs}"
241         fi
242         build_gdbserver=yes
243         ;;
244 i[34567]86-*-gnu*)
245         # Target: Intel 386 running the GNU Hurd
246         gdb_target_obs="i386-tdep.o i386.o i387-tdep.o i386-gnu-tdep.o solib-svr4.o"
247         ;;
248 i[34567]86-*-cygwin*)
249         # Target: Intel 386 running win32
250         gdb_target_obs="i386-tdep.o i386.o i386-cygwin-tdep.o i387-tdep.o \
251                         windows-tdep.o"
252         build_gdbserver=yes
253         ;;
254 i[34567]86-*-mingw32*)
255         # Target: Intel 386 running win32
256         gdb_target_obs="i386-tdep.o i386.o i386-cygwin-tdep.o i387-tdep.o \
257                         windows-tdep.o"
258         build_gdbserver=yes
259         ;;
260 i[34567]86-*-go32* | i[34567]86-*-msdosdjgpp*)
261         # Target: i386 running DJGPP/go32.
262         gdb_target_obs="i386-tdep.o i386.o i387-tdep.o i386-go32-tdep.o"
263         ;;
264 i[34567]86-*-*)
265         # Target: i386
266         gdb_target_obs="i386-tdep.o i386.o i387-tdep.o"
267         ;;
268
269 ia64-*-linux*)
270         # Target: Intel IA-64 running GNU/Linux
271         gdb_target_obs="ia64-tdep.o ia64-linux-tdep.o linux-tdep.o \
272                         solib-svr4.o symfile-mem.o"
273         build_gdbserver=yes
274         ;;
275 ia64-*-*vms*)
276         # Target: Intel IA-64 running OpenVMS
277         gdb_target_obs="ia64-tdep.o ia64-vms-tdep.o"
278         ;;
279 ia64*-*-*)
280         # Target: Intel IA-64
281         gdb_target_obs="ia64-tdep.o"
282         ;;
283
284 iq2000-*-*)
285         gdb_target_obs="iq2000-tdep.o"
286         gdb_sim=../sim/iq2000/libsim.a
287         ;;
288
289 lm32-*-*)               
290         gdb_target_obs="lm32-tdep.o" 
291         gdb_sim=../sim/lm32/libsim.a
292         ;;
293
294 m32c-*-*)
295         # Target: Renesas M32C family
296         gdb_target_obs="m32c-tdep.o"
297         # There may also be a SID / CGEN simulator for this,
298         # but we do have DJ Delorie's mini-sim.
299         gdb_sim=../sim/m32c/libsim.a
300         ;;
301
302 m32r*-*-linux*)
303         # Target: Renesas M32R running GNU/Linux
304         gdb_target_obs="m32r-tdep.o m32r-linux-tdep.o \
305                         glibc-tdep.o solib-svr4.o symfile-mem.o \
306                         linux-tdep.o"
307         gdb_sim=../sim/m32r/libsim.a
308         build_gdbserver=yes
309         ;;
310 m32r*-*-*)
311         # Target: Renesas m32r processor
312         gdb_target_obs="m32r-tdep.o"
313         gdb_sim=../sim/m32r/libsim.a
314         ;;
315
316 m68hc11*-*-*|m6811*-*-*)
317         # Target: Motorola 68HC11 processor
318         gdb_target_obs="m68hc11-tdep.o"
319         gdb_sim=../sim/m68hc11/libsim.a
320         ;;
321
322 m68*-*-aout* | m68*-*-coff* | m68*-*-elf* | m68*-*-rtems* | m68*-*-uclinux* | \
323 fido-*-elf*)
324         # Target: Motorola m68k embedded
325         gdb_target_obs="m68k-tdep.o"
326         ;;
327 m68*-*-linux*)
328         # Target: Motorola m68k with a.out and ELF
329         gdb_target_obs="m68k-tdep.o m68k-linux-tdep.o solib-svr4.o \
330                         linux-tdep.o glibc-tdep.o symfile-mem.o"
331         build_gdbserver=yes
332         ;;
333 m68*-*-netbsd* | m68*-*-knetbsd*-gnu)
334         # Target: NetBSD/m68k
335         gdb_target_obs="m68k-tdep.o m68k-bsd-tdep.o solib-svr4.o"
336         ;;
337 m68*-*-openbsd*)
338         # Target: OpenBSD/m68k
339         gdb_target_obs="m68k-tdep.o m68k-bsd-tdep.o solib-svr4.o"
340         ;;
341
342 m88*-*-openbsd*)
343         # Target: OpenBSD/m88k
344         gdb_target_obs="m88k-tdep.o"
345         ;;
346
347 mep-*-*)
348         # Target: Toshiba Media Processor (MEP)
349         gdb_target_obs="mep-tdep.o"
350         # No sim needed. Target uses SID.
351         ;;
352
353 microblaze*-linux-*|microblaze*-*-linux*)
354         # Target: Xilinx MicroBlaze running Linux
355         gdb_target_obs="microblaze-tdep.o microblaze-linux-tdep.o solib-svr4.o \
356                         symfile-mem.o linux-tdep.o"
357         gdb_sim=../sim/microblaze/libsim.a
358         ;;
359 microblaze*-*-*)
360         # Target: Xilinx MicroBlaze running standalone
361         gdb_target_obs="microblaze-tdep.o"
362         gdb_sim=../sim/microblaze/libsim.a
363         ;;
364
365 mips*-*-linux*)
366         # Target: Linux/MIPS
367         gdb_target_obs="mips-tdep.o mips-linux-tdep.o glibc-tdep.o \
368                         solib-svr4.o symfile-mem.o linux-tdep.o"
369         gdb_sim=../sim/mips/libsim.a
370         build_gdbserver=yes
371         ;;
372 mips*-*-netbsd* | mips*-*-knetbsd*-gnu)
373         # Target: MIPS running NetBSD
374         gdb_target_obs="mips-tdep.o mips-nbsd-tdep.o solib-svr4.o nbsd-tdep.o"
375         gdb_sim=../sim/mips/libsim.a
376         ;;
377 mips*-*-freebsd*)
378         # Target: MIPS running FreeBSD
379         gdb_target_obs="mips-tdep.o mips-fbsd-tdep.o solib-svr4.o fbsd-tdep.o"
380         gdb_sim=../sim/mips/libsim.a
381         ;;
382 mips64*-*-openbsd*)
383         # Target: OpenBSD/mips64
384         gdb_target_obs="mips-tdep.o mips64-obsd-tdep.o obsd-tdep.o solib-svr4.o"
385         ;;
386 mips*-sde*-elf*)
387         # Target: MIPS SDE
388         gdb_target_obs="mips-tdep.o mips-sde-tdep.o"
389         gdb_sim=../sim/mips/libsim.a
390         ;;
391 mips*-*-elf)
392         # Target: MIPS ELF
393         gdb_target_obs="mips-tdep.o"
394         gdb_sim=../sim/mips/libsim.a
395         ;;
396 mips*-*-*)
397         # Target: MIPS
398         gdb_target_obs="mips-tdep.o"
399         gdb_sim=../sim/mips/libsim.a
400         ;;
401
402 mn10300-*-*)
403         # Target: Matsushita mn10300
404         gdb_target_obs="mn10300-tdep.o"
405         gdb_sim=../sim/mn10300/libsim.a
406         ;;
407
408 msp430*-*-elf)
409         gdb_target_obs="msp430-tdep.o"
410         gdb_sim=../sim/msp430/libsim.a
411         ;;
412
413 mt-*-*)
414         # Target: Morpho Technologies ms1 processor
415         gdb_target_obs="mt-tdep.o"
416         ;;
417
418 nds32*-*-elf)
419         # Target: AndesTech NDS32 core
420         gdb_target_obs="nds32-tdep.o"
421         ;;
422
423 nios2*-*-linux*)
424         # Target: Altera Nios II running Linux
425         gdb_target_obs="nios2-tdep.o nios2-linux-tdep.o solib-svr4.o \
426                         symfile-mem.o glibc-tdep.o linux-tdep.o"
427         ;;
428
429 nios2*-*-*)
430         # Target: Altera Nios II bare-metal
431         gdb_target_obs="nios2-tdep.o"
432         ;;
433
434 powerpc*-*-freebsd*)
435         # Target: FreeBSD/powerpc
436         gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppc64-tdep.o \
437                         ppc-fbsd-tdep.o fbsd-tdep.o solib-svr4.o \
438                         ravenscar-thread.o ppc-ravenscar-thread.o"
439         ;;
440
441 powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu)
442         # Target: NetBSD/powerpc
443         gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppc-nbsd-tdep.o \
444                         solib-svr4.o \
445                         ravenscar-thread.o ppc-ravenscar-thread.o"
446         gdb_sim=../sim/ppc/libsim.a
447         ;;
448 powerpc-*-openbsd*)
449         # Target: OpenBSD/powerpc
450         gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppc-obsd-tdep.o \
451                         solib-svr4.o \
452                         ravenscar-thread.o ppc-ravenscar-thread.o"
453         ;;
454 powerpc-*-aix* | rs6000-*-* | powerpc64-*-aix*)
455         # Target: PowerPC running AIX
456         gdb_target_obs="rs6000-tdep.o rs6000-aix-tdep.o xcoffread.o \
457                         ppc-sysv-tdep.o solib-aix.o \
458                         ravenscar-thread.o ppc-ravenscar-thread.o"
459         ;;
460 powerpc*-*-linux*)
461         # Target: PowerPC running Linux
462         gdb_target_obs="rs6000-tdep.o ppc-linux-tdep.o ppc-sysv-tdep.o \
463                         ppc64-tdep.o solib-svr4.o solib-spu.o \
464                         spu-multiarch.o \
465                         glibc-tdep.o symfile-mem.o linux-tdep.o \
466                         ravenscar-thread.o ppc-ravenscar-thread.o \
467                         linux-record.o "
468         gdb_sim=../sim/ppc/libsim.a
469         build_gdbserver=yes
470         ;;
471 powerpc-*-lynx*178)
472         # Target: PowerPC running Lynx178.
473         gdb_target_obs="rs6000-tdep.o rs6000-lynx178-tdep.o \
474                         xcoffread.o ppc-sysv-tdep.o \
475                         ravenscar-thread.o ppc-ravenscar-thread.o"
476         ;;
477 powerpc*-*-*)
478         # Target: PowerPC running eabi
479         gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o solib-svr4.o \
480                         ravenscar-thread.o ppc-ravenscar-thread.o"
481         gdb_sim=../sim/ppc/libsim.a
482         ;;
483
484 s390*-*-linux*)
485         # Target: S390 running Linux
486         gdb_target_obs="s390-linux-tdep.o solib-svr4.o linux-tdep.o \
487                         linux-record.o"
488         build_gdbserver=yes
489         ;;
490
491 rl78-*-elf)
492         # Target: Renesas rl78
493         gdb_target_obs="rl78-tdep.o"
494         gdb_sim=../sim/rl78/libsim.a
495         ;;
496
497 rx-*-elf)
498         # Target: Renesas RX
499         gdb_target_obs="rx-tdep.o"
500         gdb_sim=../sim/rx/libsim.a
501         ;;
502
503 score-*-*)
504         # Target: S+core embedded system
505         gdb_target_obs="score-tdep.o"
506         build_gdbserver=yes
507         ;;
508
509 sh*-*-linux*)
510         # Target: GNU/Linux Super-H
511         gdb_target_obs="sh-tdep.o sh64-tdep.o sh-linux-tdep.o \
512                         solib-svr4.o symfile-mem.o \
513                         glibc-tdep.o linux-tdep.o"
514         gdb_sim=../sim/sh/libsim.a
515         build_gdbserver=yes
516         ;;
517 sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu)
518         # Target: NetBSD/sh
519         gdb_target_obs="sh-tdep.o sh-nbsd-tdep.o solib-svr4.o"
520         gdb_sim=../sim/sh/libsim.a
521         ;;
522 sh*-*-openbsd*)
523         # Target: OpenBSD/sh
524         gdb_target_obs="sh-tdep.o sh64-tdep.o sh-nbsd-tdep.o solib-svr4.o"
525         ;;
526 sh64-*-elf*)
527         # Target: Renesas/Super-H 64 bit with simulator
528         gdb_target_obs="sh-tdep.o sh64-tdep.o"
529         gdb_sim=../sim/sh64/libsim.a
530         ;;
531 sh*)
532         # Target: Embedded Renesas Super-H processor
533         gdb_target_obs="sh-tdep.o sh64-tdep.o"
534         gdb_sim=../sim/sh/libsim.a
535         ;;
536
537 sparc-*-linux*)
538         # Target: GNU/Linux SPARC
539         gdb_target_obs="sparc-tdep.o sparc-sol2-tdep.o sol2-tdep.o \
540                         sparc-linux-tdep.o solib-svr4.o symfile-mem.o \
541                         linux-tdep.o \
542                         ravenscar-thread.o sparc-ravenscar-thread.o"
543         if test "x$enable_64_bit_bfd" = "xyes"; then
544             # Target: GNU/Linux UltraSPARC
545             gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o \
546                             sparc64-linux-tdep.o ${gdb_target_obs}"
547         fi
548         build_gdbserver=yes
549         ;;
550 sparc64-*-linux*)
551         # Target: GNU/Linux UltraSPARC
552         gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o sol2-tdep.o \
553                         sparc64-linux-tdep.o sparc-tdep.o sparc-sol2-tdep.o \
554                         sparc-linux-tdep.o solib-svr4.o linux-tdep.o \
555                         ravenscar-thread.o sparc-ravenscar-thread.o"
556         build_gdbserver=yes
557         ;;
558 sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu)
559         # Target: FreeBSD/sparc64
560         gdb_target_obs="sparc-tdep.o sparc64-tdep.o sparc64-fbsd-tdep.o \
561                         fbsd-tdep.o solib-svr4.o \
562                         ravenscar-thread.o sparc-ravenscar-thread.o"
563         ;;
564 sparc-*-netbsd* | sparc-*-knetbsd*-gnu)
565         # Target: NetBSD/sparc
566         gdb_target_obs="sparc-tdep.o sparc-nbsd-tdep.o nbsd-tdep.o \
567                         solib-svr4.o \
568                         ravenscar-thread.o sparc-ravenscar-thread.o"
569         ;;
570 sparc64-*-netbsd* | sparc64-*-knetbsd*-gnu)
571         # Target: NetBSD/sparc64
572         gdb_target_obs="sparc64-tdep.o sparc64-nbsd-tdep.o sparc-tdep.o \
573                         sparc-nbsd-tdep.o nbsd-tdep.o solib-svr4.o \
574                         ravenscar-thread.o sparc-ravenscar-thread.o"
575         ;;
576 sparc-*-openbsd*)
577         # Target: OpenBSD/sparc
578         gdb_target_obs="sparc-tdep.o sparc-nbsd-tdep.o sparc-obsd-tdep.o \
579                         nbsd-tdep.o obsd-tdep.o bsd-uthread.o solib-svr4.o \
580                         ravenscar-thread.o sparc-ravenscar-thread.o"
581         ;;
582 sparc64-*-openbsd*)
583         # Target: OpenBSD/sparc64
584         gdb_target_obs="sparc64-tdep.o sparc64-nbsd-tdep.o sparc64-obsd-tdep.o \
585                         sparc-tdep.o sparc-nbsd-tdep.o sparc-obsd-tdep.o \
586                         nbsd-tdep.o obsd-tdep.o bsd-uthread.o solib-svr4.o \
587                         ravenscar-thread.o sparc-ravenscar-thread.o"
588         ;;
589 sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*)
590         # Target: Solaris UltraSPARC
591         gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o sparc-tdep.o \
592                         sparc-sol2-tdep.o sol2-tdep.o solib-svr4.o \
593                         ravenscar-thread.o sparc-ravenscar-thread.o"
594         ;;
595 sparc-*-*)
596         # Target: SPARC
597         gdb_target_obs="sparc-tdep.o \
598                         ravenscar-thread.o sparc-ravenscar-thread.o"
599         gdb_sim=../sim/erc32/libsim.a
600         ;;
601 sparc64-*-*)
602         # Target: UltraSPARC
603         gdb_target_obs="sparc-tdep.o sparc64-tdep.o \
604                         ravenscar-thread.o sparc-ravenscar-thread.o"
605         ;;
606
607 spu*-*-*)
608         # Target: Cell BE SPU
609         gdb_target_obs="spu-tdep.o"
610         build_gdbserver=yes
611         ;;
612
613 tic6x-*-*linux)
614         # Target: GNU/Linux TI C6x
615         gdb_target_obs="tic6x-tdep.o tic6x-linux-tdep.o solib-dsbt.o \
616                         glibc-tdep.o linux-tdep.o"
617         ;;
618
619 tic6x-*-*)
620         # Target: TI C6X 
621         gdb_target_obs="tic6x-tdep.o"
622         ;;
623
624 tilegx-*-linux*)
625         # Target: TILE-Gx
626         gdb_target_obs="tilegx-tdep.o tilegx-linux-tdep.o solib-svr4.o \
627                         symfile-mem.o glibc-tdep.o linux-tdep.o"
628         build_gdbserver=yes
629         ;;
630
631 xstormy16-*-*)
632         # Target: Sanyo Xstormy16a processor
633         gdb_target_obs="xstormy16-tdep.o"
634         # No simulator libraries are needed -- target uses SID.
635         ;;
636
637 ft32-*-elf)
638         gdb_target_obs="ft32-tdep.o"
639         gdb_sim=../sim/ft32/libsim.a
640         ;;
641
642 v850*-*-elf | v850*-*-rtems*)
643         # Target: NEC V850 processor
644         gdb_target_obs="v850-tdep.o"
645         gdb_sim=../sim/v850/libsim.a
646         ;;
647
648 vax-*-netbsd* | vax-*-knetbsd*-gnu)
649         # Target: NetBSD/vax
650         gdb_target_obs="vax-tdep.o solib-svr4.o"
651         ;;
652 vax-*-openbsd*)
653         # Target: OpenBSD/vax
654         gdb_target_obs="vax-tdep.o"
655         ;;
656 vax-*-*)
657         # Target: VAX
658         gdb_target_obs="vax-tdep.o"
659         ;;
660
661 x86_64-*-darwin*)
662         # Target: Darwin/x86-64
663         gdb_target_obs="amd64-tdep.o amd64.o i386-tdep.o i386.o i387-tdep.o \
664                         i386-darwin-tdep.o amd64-darwin-tdep.o \
665                         solib-darwin.o"
666         ;;
667
668 x86_64-*-dicos*)
669         # Target: DICOS/x86-64
670         gdb_target_obs="amd64-tdep.o amd64.o i386-tdep.o i386.o i387-tdep.o \
671                         dicos-tdep.o i386-dicos-tdep.o amd64-dicos-tdep.o"
672         ;;
673 x86_64-*-elf*)
674         gdb_target_obs="amd64-tdep.o amd64.o i386-tdep.o i386.o i387-tdep.o"
675         ;;
676 x86_64-*-linux*)
677         # Target: GNU/Linux x86-64
678         gdb_target_obs="amd64-tdep.o amd64-linux-tdep.o amd64.o i386-tdep.o \
679                         i387-tdep.o i386.o i386-linux-tdep.o glibc-tdep.o \
680                         solib-svr4.o symfile-mem.o linux-tdep.o linux-record.o"
681         build_gdbserver=yes
682         ;;
683 x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
684         # Target: FreeBSD/amd64
685         gdb_target_obs="amd64-tdep.o amd64.o amd64-fbsd-tdep.o i386-tdep.o \
686                         i386.o i387-tdep.o i386-bsd-tdep.o i386-fbsd-tdep.o \
687                         fbsd-tdep.o solib-svr4.o"
688         ;;
689 x86_64-*-mingw* | x86_64-*-cygwin*)
690         # Target: MingW/amd64
691         gdb_target_obs="amd64-tdep.o amd64.o amd64-windows-tdep.o \
692                         i386-tdep.o i386.o i386-cygwin-tdep.o i387-tdep.o \
693                         windows-tdep.o"
694         build_gdbserver=yes
695         ;;
696 x86_64-*-netbsd* | x86_64-*-knetbsd*-gnu)
697         # Target: NetBSD/amd64
698         gdb_target_obs="amd64-tdep.o amd64.o amd64-nbsd-tdep.o i386-tdep.o \
699                         i386.o i387-tdep.o nbsd-tdep.o solib-svr4.o"
700         ;;
701 x86_64-*-openbsd*)
702         # Target: OpenBSD/amd64
703         gdb_target_obs="amd64-tdep.o amd64.o amd64-obsd-tdep.o i386-tdep.o \
704                         i387-tdep.o i386-bsd-tdep.o i386-obsd-tdep.o \
705                         i386.o obsd-tdep.o bsd-uthread.o solib-svr4.o"
706         ;;
707 x86_64-*-rtems*)
708         gdb_target_obs="amd64-tdep.o amd64.o i386-tdep.o i386.o i387-tdep.o \
709                         i386-bsd-tdep.o"
710         ;;
711 xtensa*-*-linux*)       gdb_target=linux
712         # Target: GNU/Linux Xtensa
713         gdb_target_obs="xtensa-tdep.o xtensa-config.o xtensa-linux-tdep.o \
714                         solib-svr4.o symfile-mem.o linux-tdep.o"
715         build_gdbserver=yes
716         ;;
717 xtensa*)
718         # Target: Tensilica Xtensa processors
719         gdb_target_obs="xtensa-tdep.o xtensa-config.o solib-svr4.o"
720         ;;
721
722 esac
723
724 # map target onto default OS ABI
725
726 case "${targ}" in
727 *-*-freebsd* | *-*-kfreebsd*-gnu)
728                 gdb_osabi=GDB_OSABI_FREEBSD ;;
729 *-*-linux* | *-*-uclinux*)
730                 gdb_osabi=GDB_OSABI_LINUX ;;
731 *-*-nto*)       gdb_osabi=GDB_OSABI_QNXNTO ;;
732 m68*-*-openbsd* | m88*-*-openbsd* | vax-*-openbsd*) ;;
733 *-*-openbsd*)   gdb_osabi=GDB_OSABI_OPENBSD ;;
734 *-*-solaris*)   gdb_osabi=GDB_OSABI_SOLARIS ;;
735 *-*-*-gnu*)     ;; # prevent non-GNU kernels to match the Hurd rule below
736 *-*-gnu*)       gdb_osabi=GDB_OSABI_HURD ;;
737 *-*-mingw32ce*) gdb_osabi=GDB_OSABI_WINCE ;;
738 *-*-mingw* | *-*-cygwin*)
739                 gdb_osabi=GDB_OSABI_CYGWIN ;;
740 *-*-dicos*)     gdb_osabi=GDB_OSABI_DICOS ;;
741 *-*-symbianelf*)
742                 gdb_osabi=GDB_OSABI_SYMBIAN ;;
743 powerpc-*-aix* | rs6000-*-* | powerpc64-*-aix*)
744                 gdb_osabi=GDB_OSABI_AIX ;;
745 esac
746
747 # Check whether this target supports gcore.
748 # Such target has to call set_gdbarch_find_memory_regions.
749 gdb_have_gcore=false
750 for t in x ${gdb_target_obs}; do
751   if test "$t" = linux-tdep.o; then
752     gdb_have_gcore=true
753   fi
754 done