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