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