2012-03-05 Tristan Gingold <gingold@adacore.com>
[platform/upstream/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
10 # NOTE: Every file added to a gdb_target_obs variable for any target here
11 #       must also be added to either ALL_TARGET_OBS or ALL_64_TARGET_OBS
12 #       in Makefile.in!
13
14 case $targ in
15  d10v-*-* | \
16  hppa*-*-hiux* | \
17  i[34567]86-ncr-* | \
18  m68*-cisco*-* | \
19  m68*-tandem-* | \
20  m68*-*-os68k* | \
21  mips*-*-pe | \
22  rs6000-*-lynxos* | \
23  sh*-*-pe | \
24  null)
25     echo "*** Configuration $targ is obsolete." >&2
26     echo "*** Support has been REMOVED." >&2
27     exit 1
28     ;;
29 esac
30
31 # map target info into gdb names.
32
33 case "${targ}" in
34
35 alpha*-*-osf*)
36         # Target: Little-endian Alpha running OSF/1
37         gdb_target_obs="alpha-tdep.o alpha-osf1-tdep.o alpha-mdebug-tdep.o"
38         ;;
39 alpha*-*-linux*)
40         # Target: Little-endian Alpha running Linux
41         gdb_target_obs="alpha-tdep.o alpha-mdebug-tdep.o alpha-linux-tdep.o \
42                         linux-tdep.o solib-svr4.o"
43         ;;
44 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
45         # Target: FreeBSD/alpha
46         gdb_target_obs="alpha-tdep.o alpha-mdebug-tdep.o alphabsd-tdep.o \
47                         alphafbsd-tdep.o solib-svr4.o"
48         ;;
49 alpha*-*-netbsd* | alpha*-*-knetbsd*-gnu)
50         # Target: NetBSD/alpha
51         gdb_target_obs="alpha-tdep.o alpha-mdebug-tdep.o alphabsd-tdep.o \
52                         alphanbsd-tdep.o nbsd-tdep.o solib-svr4.o"
53         ;;
54 alpha*-*-openbsd*)
55         # Target: OpenBSD/alpha
56         gdb_target_obs="alpha-tdep.o alpha-mdebug-tdep.o alphabsd-tdep.o \
57                         alphanbsd-tdep.o alphaobsd-tdep.o nbsd-tdep.o \
58                         obsd-tdep.o solib-svr4.o"
59         ;;
60 alpha*-*-*)
61         # Target: Alpha
62         gdb_target_obs="alpha-tdep.o"
63         ;;
64
65 am33_2.0*-*-linux*)
66         # Target: Matsushita mn10300 (AM33) running Linux
67         gdb_target_obs="mn10300-tdep.o mn10300-linux-tdep.o linux-tdep.o \
68                         solib-svr4.o"
69         ;;
70
71 arm*-wince-pe | arm*-*-mingw32ce*)
72         # Target: ARM based machine running Windows CE (win32)
73         gdb_target_obs="arm-tdep.o arm-wince-tdep.o"
74         build_gdbserver=yes
75         ;;
76 arm*-*-linux*)
77         # Target: ARM based machine running GNU/Linux
78         gdb_target_obs="arm-tdep.o arm-linux-tdep.o glibc-tdep.o \
79                         solib-svr4.o symfile-mem.o linux-tdep.o"
80         build_gdbserver=yes
81         ;;
82 arm*-*-netbsd* | arm*-*-knetbsd*-gnu)
83         # Target: NetBSD/arm
84         gdb_target_obs="arm-tdep.o armnbsd-tdep.o solib-svr4.o"
85         ;;
86 arm*-*-openbsd*)
87         # Target: OpenBSD/arm
88         gdb_target_obs="arm-tdep.o armbsd-tdep.o armobsd-tdep.o obsd-tdep.o \
89                         solib-svr4.o"
90         ;;
91 arm*-*-symbianelf*)
92         # Target: SymbianOS/arm
93         gdb_target_obs="arm-tdep.o arm-symbian-tdep.o"
94         ;;
95 arm*-*-*)
96         # Target: ARM embedded system
97         gdb_target_obs="arm-tdep.o"
98         gdb_sim=../sim/arm/libsim.a
99         ;;
100
101 avr-*-*)
102         # Target: AVR
103         gdb_target_obs="avr-tdep.o"
104         gdb_sim=../sim/avr/libsim.a
105         ;;
106
107 bfin-*-*linux*)
108         # Target: Blackfin Linux
109         gdb_target_obs="bfin-tdep.o bfin-linux-tdep.o linux-tdep.o"
110         gdb_sim=../sim/bfin/libsim.a
111         build_gdbserver=yes
112         ;;
113 bfin-*-*)
114         # Target: Blackfin processor
115         gdb_target_obs="bfin-tdep.o"
116         gdb_sim=../sim/bfin/libsim.a
117         ;;
118
119 cris*)
120         # Target: CRIS
121         gdb_target_obs="cris-tdep.o solib-svr4.o"
122         ;;
123
124 frv-*-*)
125         # Target: Fujitsu FRV processor
126         gdb_target_obs="frv-tdep.o frv-linux-tdep.o linux-tdep.o solib-frv.o"
127         gdb_sim=../sim/frv/libsim.a
128         ;;
129
130 moxie-*-elf)
131         gdb_target_obs="moxie-tdep.o"
132         gdb_sim=../sim/moxie/libsim.a
133         ;;
134
135 h8300-*-*)
136         # Target: H8300 with HMS monitor and H8 simulator
137         gdb_target_obs="h8300-tdep.o monitor.o dsrec.o"
138         gdb_sim=../sim/h8300/libsim.a
139         ;;
140
141 hppa*-*-hpux*)
142         # Target: HP PA-RISC running hpux
143         gdb_target_obs="hppa-tdep.o hppa-hpux-tdep.o solib-som.o solib-pa64.o"
144         ;;
145 hppa*-*-linux*)
146         # Target: HP PA-RISC running Linux
147         gdb_target_obs="hppa-tdep.o hppa-linux-tdep.o glibc-tdep.o \
148                         linux-tdep.o solib-svr4.o symfile-mem.o"
149         ;;
150 hppa*-*-netbsd*)
151         # Target: NetBSD/hppa
152         gdb_target_obs="hppa-tdep.o hppabsd-tdep.o hppanbsd-tdep.o solib-svr4.o"
153         ;;
154 hppa*-*-openbsd*)
155         # Target: OpenBSD/hppa
156         gdb_target_obs="hppa-tdep.o hppabsd-tdep.o hppaobsd-tdep.o solib-svr4.o"
157         ;;
158 hppa*-*-*)
159         # Target: HP PA-RISC
160         gdb_target_obs="hppa-tdep.o"
161         ;;
162
163 i[34567]86-*-darwin*)
164         # Target: Darwin/i386
165         gdb_target_obs="i386-tdep.o i387-tdep.o \
166                         i386-darwin-tdep.o solib-darwin.o"
167         if test "x$enable_64_bit_bfd" = "xyes"; then
168             # Target: GNU/Linux x86-64
169             gdb_target_obs="amd64-tdep.o amd64-darwin-tdep.o ${gdb_target_obs}"
170         fi
171         ;;
172 i[34567]86-*-dicos*)
173         # Target: DICOS/i386
174         gdb_target_obs="i386-tdep.o i387-tdep.o dicos-tdep.o i386-dicos-tdep.o"
175         ;;
176 i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
177         # Target: FreeBSD/i386
178         gdb_target_obs="i386-tdep.o i387-tdep.o i386bsd-tdep.o i386fbsd-tdep.o \
179                         bsd-uthread.o solib-svr4.o"
180         ;;
181 i[34567]86-*-netbsd* | i[34567]86-*-knetbsd*-gnu)
182         # Target: NetBSD/i386
183         gdb_target_obs="i386-tdep.o i387-tdep.o i386bsd-tdep.o i386nbsd-tdep.o \
184                         nbsd-tdep.o solib-svr4.o"
185         ;;
186 i[34567]86-*-openbsd*)
187         # Target: OpenBSD/i386
188         gdb_target_obs="i386-tdep.o i387-tdep.o i386bsd-tdep.o i386obsd-tdep.o \
189                         bsd-uthread.o solib-svr4.o"
190         ;;
191 i[34567]86-*-nto*)
192         # Target: Intel 386 running qnx6.
193         gdb_target_obs="i386-tdep.o i387-tdep.o solib-svr4.o \
194                         i386-nto-tdep.o nto-tdep.o"
195         build_gdbserver=yes
196         ;;
197 i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
198         # Target: Solaris x86_64
199         gdb_target_obs="i386-tdep.o i387-tdep.o amd64-tdep.o amd64-sol2-tdep.o \
200                         i386-sol2-tdep.o sol2-tdep.o solib-svr4.o"
201         ;;
202 i[34567]86-*-solaris*)
203         # Target: Solaris x86
204         gdb_target_obs="i386-tdep.o i387-tdep.o i386-sol2-tdep.o sol2-tdep.o \
205                         solib-svr4.o"
206         ;;
207 i[34567]86-*-linux*)
208         # Target: Intel 386 running GNU/Linux
209         gdb_target_obs="i386-tdep.o i386-linux-tdep.o glibc-tdep.o i387-tdep.o \
210                         solib-svr4.o symfile-mem.o \
211                         linux-tdep.o linux-record.o"
212         if test "x$enable_64_bit_bfd" = "xyes"; then
213             # Target: GNU/Linux x86-64
214             gdb_target_obs="amd64-tdep.o amd64-linux-tdep.o ${gdb_target_obs}"
215         fi
216         build_gdbserver=yes
217         ;;
218 i[34567]86-*-gnu*)
219         # Target: Intel 386 running the GNU Hurd
220         gdb_target_obs="i386-tdep.o i387-tdep.o i386gnu-tdep.o solib-svr4.o"
221         ;;
222 i[34567]86-*-cygwin*)
223         # Target: Intel 386 running win32
224         gdb_target_obs="i386-tdep.o i386-cygwin-tdep.o i387-tdep.o \
225                         windows-tdep.o"
226         build_gdbserver=yes
227         ;;
228 i[34567]86-*-mingw32*)
229         # Target: Intel 386 running win32
230         gdb_target_obs="i386-tdep.o i386-cygwin-tdep.o i387-tdep.o \
231                         windows-tdep.o"
232         build_gdbserver=yes
233         ;;
234 i[34567]86-*-*)
235         # Target: i386
236         gdb_target_obs="i386-tdep.o i387-tdep.o"
237         ;;
238
239 ia64-*-hpux*)
240         # Target: Intel IA-64 running HP-UX
241         gdb_target_obs="ia64-tdep.o ia64-hpux-tdep.o"
242         ;;
243 ia64-*-linux*)
244         # Target: Intel IA-64 running GNU/Linux
245         gdb_target_obs="ia64-tdep.o ia64-linux-tdep.o linux-tdep.o \
246                         solib-svr4.o symfile-mem.o"
247         build_gdbserver=yes
248         ;;
249 ia64-*-*vms*)
250         # Target: Intel IA-64 running OpenVMS
251         gdb_target_obs="ia64-tdep.o ia64-vms-tdep.o"
252         ;;
253 ia64*-*-*)
254         # Target: Intel IA-64
255         gdb_target_obs="ia64-tdep.o"
256         ;;
257
258 iq2000-*-*)
259         gdb_target_obs="iq2000-tdep.o"
260         gdb_sim=../sim/iq2000/libsim.a
261         ;;
262
263 lm32-*-*)               
264         gdb_target_obs="lm32-tdep.o" 
265         gdb_sim=../sim/lm32/libsim.a
266         ;;
267
268 m32c-*-*)
269         # Target: Renesas M32C family
270         gdb_target_obs="m32c-tdep.o prologue-value.o"
271         # There may also be a SID / CGEN simulator for this,
272         # but we do have DJ Delorie's mini-sim.
273         gdb_sim=../sim/m32c/libsim.a
274         ;;
275
276 m32r*-*-linux*)
277         # Target: Renesas M32R running GNU/Linux
278         gdb_target_obs="m32r-tdep.o m32r-linux-tdep.o remote-m32r-sdi.o \
279                         glibc-tdep.o solib-svr4.o symfile-mem.o \
280                         linux-tdep.o"
281         gdb_sim=../sim/m32r/libsim.a
282         build_gdbserver=yes
283         ;;
284 m32r*-*-*)
285         # Target: Renesas m32r processor
286         gdb_target_obs="m32r-tdep.o monitor.o m32r-rom.o dsrec.o \
287                         remote-m32r-sdi.o"
288         gdb_sim=../sim/m32r/libsim.a
289         ;;
290
291 m68hc11*-*-*|m6811*-*-*)
292         # Target: Motorola 68HC11 processor
293         gdb_target_obs="m68hc11-tdep.o"
294         gdb_sim=../sim/m68hc11/libsim.a
295         ;;
296
297 m68*-*-aout* | m68*-*-coff* | m68*-*-elf* | m68*-*-rtems* | m68*-*-uclinux* | \
298 fido-*-elf*)
299         # Target: Motorola m68k embedded (e.g. bug monitors)
300         gdb_target_obs="m68k-tdep.o monitor.o dbug-rom.o dsrec.o"
301         ;;
302 m68*-*-linux*)
303         # Target: Motorola m68k with a.out and ELF
304         gdb_target_obs="m68k-tdep.o m68klinux-tdep.o solib-svr4.o \
305                         linux-tdep.o glibc-tdep.o symfile-mem.o"
306         build_gdbserver=yes
307         ;;
308 m68*-*-netbsd* | m68*-*-knetbsd*-gnu)
309         # Target: NetBSD/m68k
310         gdb_target_obs="m68k-tdep.o m68kbsd-tdep.o solib-svr4.o"
311         ;;
312 m68*-*-openbsd*)
313         # Target: OpenBSD/m68k
314         gdb_target_obs="m68k-tdep.o m68kbsd-tdep.o solib-svr4.o"
315         ;;
316
317 m88*-*-openbsd*)
318         # Target: OpenBSD/m88k
319         gdb_target_obs="m88k-tdep.o"
320         ;;
321
322 mep-*-*)
323         # Target: Toshiba Media Processor (MEP)
324         gdb_target_obs="mep-tdep.o prologue-value.o"
325         # No sim needed. Target uses SID.
326         ;;
327
328 microblaze*-linux-*|microblaze*-*-linux*)
329         # Target: Xilinx MicroBlaze running Linux
330         gdb_target_obs="microblaze-tdep.o microblaze-linux-tdep.o microblaze-rom.o \
331                         monitor.o dsrec.o solib-svr4.o symfile-mem.o linux-tdep.o"
332         gdb_sim=../sim/microblaze/libsim.a
333         ;;
334 microblaze*-*-*)
335         # Target: Xilinx MicroBlaze running standalone
336         gdb_target_obs="microblaze-tdep.o microblaze-rom.o monitor.o dsrec.o"
337         gdb_sim=../sim/microblaze/libsim.a
338         ;;
339
340 mips*-sgi-irix5*)
341         # Target: MIPS SGI running Irix 5
342         gdb_target_obs="mips-tdep.o mips-irix-tdep.o solib-irix.o"
343         ;;
344 mips*-sgi-irix6*)
345         # Target: MIPS SGI running Irix 6.x
346         gdb_target_obs="mips-tdep.o mips-irix-tdep.o solib-irix.o"
347         ;;
348 mips*-*-linux*)
349         # Target: Linux/MIPS
350         gdb_target_obs="mips-tdep.o mips-linux-tdep.o glibc-tdep.o \
351                         solib-svr4.o symfile-mem.o linux-tdep.o"
352         gdb_sim=../sim/mips/libsim.a
353         build_gdbserver=yes
354         ;;
355 mips*-*-netbsd* | mips*-*-knetbsd*-gnu)
356         # Target: MIPS running NetBSD
357         gdb_target_obs="mips-tdep.o mipsnbsd-tdep.o solib-svr4.o nbsd-tdep.o"
358         gdb_sim=../sim/mips/libsim.a
359         ;;
360 mips64*-*-openbsd*)
361         # Target: OpenBSD/mips64
362         gdb_target_obs="mips-tdep.o mips64obsd-tdep.o solib-svr4.o"
363         ;;
364 mips*-*-elf)
365         # Target: MIPS ELF
366         gdb_target_obs="mips-tdep.o remote-mips.o"
367         gdb_sim=../sim/mips/libsim.a
368         ;;
369 mips*-*-*)
370         # Target: MIPS
371         gdb_target_obs="mips-tdep.o"
372         gdb_sim=../sim/mips/libsim.a
373         ;;
374
375 mn10300-*-*)
376         # Target: Matsushita mn10300
377         gdb_target_obs="mn10300-tdep.o"
378         gdb_sim=../sim/mn10300/libsim.a
379         ;;
380
381 mt-*-*)
382         # Target: Morpho Technologies ms1 processor
383         gdb_target_obs="mt-tdep.o"
384         ;;
385
386 powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu)
387         # Target: NetBSD/powerpc
388         gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppcnbsd-tdep.o \
389                         solib-svr4.o"
390         gdb_sim=../sim/ppc/libsim.a
391         ;;
392 powerpc-*-openbsd*)
393         # Target: OpenBSD/powerpc
394         gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppcobsd-tdep.o \
395                         solib-svr4.o"
396         ;;
397 powerpc-*-aix* | rs6000-*-*)
398         # Target: PowerPC running AIX
399         gdb_target_obs="rs6000-tdep.o rs6000-aix-tdep.o xcoffread.o \
400                         ppc-sysv-tdep.o solib-svr4.o"
401         ;;
402 powerpc-*-linux* | powerpc64-*-linux*)
403         # Target: PowerPC running Linux
404         gdb_target_obs="rs6000-tdep.o ppc-linux-tdep.o ppc-sysv-tdep.o \
405                         solib-svr4.o solib-spu.o spu-multiarch.o \
406                         glibc-tdep.o symfile-mem.o linux-tdep.o"
407         gdb_sim=../sim/ppc/libsim.a
408         build_gdbserver=yes
409         ;;
410 powerpc*-*-*)
411         # Target: PowerPC running eabi
412         gdb_target_obs="rs6000-tdep.o monitor.o dsrec.o ppcbug-rom.o \
413                         dink32-rom.o ppc-sysv-tdep.o solib-svr4.o"
414         if test -f ../sim/ppc/Makefile; then
415           gdb_sim=../sim/ppc/libsim.a
416         fi
417         ;;
418
419 s390*-*-*)
420         # Target: S390 running Linux
421         gdb_target_obs="s390-tdep.o solib-svr4.o linux-tdep.o"
422         build_gdbserver=yes
423         ;;
424
425 rl78-*-elf)
426         # Target: Renesas rl78
427         gdb_target_obs="rl78-tdep.o"
428         gdb_sim=../sim/rl78/libsim.a
429         ;;
430
431 rx-*-elf)
432         # Target: Renesas RX
433         gdb_target_obs="rx-tdep.o"
434         gdb_sim=../sim/rx/libsim.a
435         ;;
436
437 score-*-*)
438         # Target: S+core embedded system
439         gdb_target_obs="score-tdep.o"
440         if test -f ../sim/score/Makefile; then
441           gdb_sim=../sim/score/libsim.a
442         fi
443         build_gdbserver=yes
444         ;;
445
446 sh*-*-linux*)
447         # Target: GNU/Linux Super-H
448         gdb_target_obs="sh-tdep.o sh64-tdep.o sh-linux-tdep.o monitor.o \
449                         dsrec.o solib-svr4.o symfile-mem.o \
450                         glibc-tdep.o linux-tdep.o"
451         gdb_sim=../sim/sh/libsim.a
452         build_gdbserver=yes
453         ;;
454 sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu)
455         # Target: NetBSD/sh
456         gdb_target_obs="sh-tdep.o shnbsd-tdep.o solib-svr4.o"
457         gdb_sim=../sim/sh/libsim.a
458         ;;
459 sh*-*-openbsd*)
460         # Target: OpenBSD/sh
461         gdb_target_obs="sh-tdep.o sh64-tdep.o shnbsd-tdep.o solib-svr4.o"
462         ;;
463 sh64-*-elf*)
464         # Target: Renesas/Super-H 64 bit with simulator
465         gdb_target_obs="sh-tdep.o sh64-tdep.o"
466         gdb_sim=../sim/sh64/libsim.a
467         ;;
468 sh*)
469         # Target: Embedded Renesas Super-H with ICE and simulator
470         gdb_target_obs="sh-tdep.o sh64-tdep.o monitor.o dsrec.o"
471         gdb_sim=../sim/sh/libsim.a
472         ;;
473
474 sparc-*-linux*)
475         # Target: GNU/Linux SPARC
476         gdb_target_obs="sparc-tdep.o sparc-sol2-tdep.o sol2-tdep.o \
477                         sparc-linux-tdep.o solib-svr4.o symfile-mem.o \
478                         linux-tdep.o"
479         if test "x$enable_64_bit_bfd" = "xyes"; then
480             # Target: GNU/Linux UltraSPARC
481             gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o \
482                             sparc64-linux-tdep.o ${gdb_target_obs}"
483         fi
484         ;;
485 sparc64-*-linux*)
486         # Target: GNU/Linux UltraSPARC
487         gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o sol2-tdep.o \
488                         sparc64-linux-tdep.o sparc-tdep.o sparc-sol2-tdep.o \
489                         sparc-linux-tdep.o solib-svr4.o linux-tdep.o"
490         build_gdbserver=yes
491         ;;
492 sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu)
493         # Target: FreeBSD/sparc64
494         gdb_target_obs="sparc-tdep.o sparc64-tdep.o sparc64fbsd-tdep.o \
495                         solib-svr4.o"
496         ;;
497 sparc-*-netbsd* | sparc-*-knetbsd*-gnu)
498         # Target: NetBSD/sparc
499         gdb_target_obs="sparc-tdep.o sparcnbsd-tdep.o nbsd-tdep.o solib-svr4.o"
500         ;;
501 sparc64-*-netbsd* | sparc64-*-knetbsd*-gnu)
502         # Target: NetBSD/sparc64
503         gdb_target_obs="sparc64-tdep.o sparc64nbsd-tdep.o sparc-tdep.o \
504                         sparcnbsd-tdep.o nbsd-tdep.o solib-svr4.o"
505         ;;
506 sparc-*-openbsd*)
507         # Target: OpenBSD/sparc
508         gdb_target_obs="sparc-tdep.o sparcnbsd-tdep.o sparcobsd-tdep.o \
509                         nbsd-tdep.o obsd-tdep.o bsd-uthread.o solib-svr4.o"
510         ;;
511 sparc64-*-openbsd*)
512         # Target: OpenBSD/sparc64
513         gdb_target_obs="sparc64-tdep.o sparc64nbsd-tdep.o sparc64obsd-tdep.o \
514                         sparc-tdep.o sparcnbsd-tdep.o sparcobsd-tdep.o \
515                         nbsd-tdep.o obsd-tdep.o bsd-uthread.o solib-svr4.o"
516         ;;
517 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
518         # Target: Solaris SPARC
519         gdb_target_obs="sparc-tdep.o sparc-sol2-tdep.o sol2-tdep.o solib-svr4.o"
520         ;;
521 sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*)
522         # Target: Solaris UltraSPARC
523         gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o sparc-tdep.o \
524                         sparc-sol2-tdep.o sol2-tdep.o solib-svr4.o"
525         ;;
526 sparc-*-*)
527         # Target: SPARC
528         gdb_target_obs="sparc-tdep.o ravenscar-thread.o \
529                         ravenscar-sparc-thread.o"
530         gdb_sim=../sim/erc32/libsim.a
531         ;;
532 sparc64-*-*)
533         # Target: UltraSPARC
534         gdb_target_obs="sparc-tdep.o sparc64-tdep.o"
535         ;;
536
537 spu*-*-*)
538         # Target: Cell BE SPU
539         gdb_target_obs="spu-tdep.o"
540         build_gdbserver=yes
541         ;;
542
543 tic6x-*-*linux)
544         # Target: GNU/Linux TI C6x
545         gdb_target_obs="tic6x-tdep.o tic6x-linux-tdep.o solib-dsbt.o \
546                         glibc-tdep.o linux-tdep.o"
547         ;;
548
549 tic6x-*-*)
550         # Target: TI C6X 
551         gdb_target_obs="tic6x-tdep.o"
552         ;;
553
554 xstormy16-*-*)
555         # Target: Sanyo Xstormy16a processor
556         gdb_target_obs="xstormy16-tdep.o"
557         # No simulator libraries are needed -- target uses SID.
558         ;;
559
560 v850*-*-elf)
561         # Target: NEC V850 processor
562         gdb_target_obs="v850-tdep.o"
563         gdb_sim=../sim/v850/libsim.a
564         ;;
565
566 vax-*-netbsd* | vax-*-knetbsd*-gnu)
567         # Target: NetBSD/vax
568         gdb_target_obs="vax-tdep.o vaxnbsd-tdep.o solib-svr4.o"
569         ;;
570 vax-*-openbsd*)
571         # Target: OpenBSD/vax
572         gdb_target_obs="vax-tdep.o vaxobsd-tdep.o"
573         ;;
574 vax-*-*)
575         # Target: VAX running 4.2BSD or Ultrix
576         gdb_target_obs="vax-tdep.o"
577         ;;
578
579 x86_64-*-darwin*)
580         # Target: Darwin/x86-64
581         gdb_target_obs="amd64-tdep.o i386-tdep.o i387-tdep.o \
582                         i386-darwin-tdep.o amd64-darwin-tdep.o \
583                         solib-darwin.o"
584         ;;
585
586 x86_64-*-dicos*)
587         # Target: DICOS/x86-64
588         gdb_target_obs="amd64-tdep.o i386-tdep.o i387-tdep.o \
589                         dicos-tdep.o i386-dicos-tdep.o amd64-dicos-tdep.o"
590         ;;
591 x86_64-*-linux*)
592         # Target: GNU/Linux x86-64
593         gdb_target_obs="amd64-tdep.o amd64-linux-tdep.o i386-tdep.o \
594                         i387-tdep.o i386-linux-tdep.o glibc-tdep.o \
595                         solib-svr4.o symfile-mem.o linux-tdep.o linux-record.o"
596         build_gdbserver=yes
597         ;;
598 x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
599         # Target: FreeBSD/amd64
600         gdb_target_obs="amd64-tdep.o amd64fbsd-tdep.o i386-tdep.o \
601                         i387-tdep.o i386bsd-tdep.o i386fbsd-tdep.o \
602                         bsd-uthread.o solib-svr4.o"
603         ;;
604 x86_64-*-mingw*)
605         # Target: MingW/amd64
606         gdb_target_obs="amd64-tdep.o amd64-windows-tdep.o \
607                         i386-tdep.o i386-cygwin-tdep.o i387-tdep.o \
608                         windows-tdep.o"
609         build_gdbserver=yes
610         ;;
611 x86_64-*-netbsd* | x86_64-*-knetbsd*-gnu)
612         # Target: NetBSD/amd64
613         gdb_target_obs="amd64-tdep.o amd64nbsd-tdep.o i386-tdep.o i387-tdep.o \
614                         nbsd-tdep.o solib-svr4.o"
615         ;;
616 x86_64-*-openbsd*)
617         # Target: OpenBSD/amd64
618         gdb_target_obs="amd64-tdep.o amd64obsd-tdep.o i386-tdep.o \
619                         i387-tdep.o i386bsd-tdep.o i386obsd-tdep.o \
620                         bsd-uthread.o solib-svr4.o"
621         ;;
622 xtensa*-*-linux*)       gdb_target=linux
623         # Target: GNU/Linux Xtensa
624         gdb_target_obs="xtensa-tdep.o xtensa-config.o xtensa-linux-tdep.o \
625                         solib-svr4.o symfile-mem.o linux-tdep.o"
626         build_gdbserver=yes
627         ;;
628 xtensa*)
629         # Target: Tensilica Xtensa processors
630         gdb_target_obs="xtensa-tdep.o xtensa-config.o solib-svr4.o"
631         ;;
632
633 esac
634
635 # map target onto default OS ABI
636
637 case "${targ}" in
638 *-*-freebsd* | *-*-kfreebsd*-gnu)
639                 gdb_osabi=GDB_OSABI_FREEBSD_ELF ;;
640 *-*-linux* | *-*-uclinux*)
641                 gdb_osabi=GDB_OSABI_LINUX ;;
642 *-*-nto*)       gdb_osabi=GDB_OSABI_QNXNTO ;;
643 m68*-*-openbsd* | m88*-*-openbsd* | vax-*-openbsd*) ;;
644 *-*-openbsd*)   gdb_osabi=GDB_OSABI_OPENBSD_ELF ;;
645 *-*-solaris*)   gdb_osabi=GDB_OSABI_SOLARIS ;;
646 *-*-*-gnu*)     ;; # prevent non-GNU kernels to match the Hurd rule below
647 *-*-gnu*)       gdb_osabi=GDB_OSABI_HURD ;;
648 *-*-mingw32ce*) gdb_osabi=GDB_OSABI_WINCE ;;
649 *-*-mingw* | *-*-cygwin*)
650                 gdb_osabi=GDB_OSABI_CYGWIN ;;
651 *-*-dicos*)     gdb_osabi=GDB_OSABI_DICOS ;;
652 *-*-symbianelf*)
653                 gdb_osabi=GDB_OSABI_SYMBIAN ;;
654 esac