* configure.tgt: Recognize fido-*-elf.
[deliverable/binutils-gdb.git] / gdb / configure.tgt
CommitLineData
c906108c
SS
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_cpu generic name of CPU
6# gdb_target name of GDB target definition to use
7
483367ee 8case $target in
7ce59000 9 d10v-*-* | \
483367ee
DJ
10 hppa*-*-hiux* | \
11 i[34567]86-ncr-* | \
12 i[34567]86-*-lynxos* | \
13 m68*-cisco*-* | \
14 m68*-tandem-* | \
15 m68*-*-os68k* | \
ad527d2e 16 mips*-*-pe | \
483367ee 17 rs6000-*-lynxos* | \
ad527d2e 18 sh*-*-pe | \
483367ee
DJ
19 null)
20 echo "*** Configuration $target is obsolete." >&2
21 echo "*** Support has been REMOVED." >&2
22 exit 1
23 ;;
24esac
25
c906108c
SS
26# Map target cpu into the config cpu subdirectory name.
27# The default is $target_cpu.
28
29case "${target_cpu}" in
30
31alpha*) gdb_target_cpu=alpha ;;
63a09be5 32am33_2.0*) gdb_target_cpu=mn10300 ;;
ed9a39eb 33arm*) gdb_target_cpu=arm ;;
8818c391 34avr*) gdb_target_cpu=avr ;;
b8d5e0ac 35fido*) gdb_target_cpu=m68k ;;
c906108c 36hppa*) gdb_target_cpu=pa ;;
1581182a 37i[34567]86*) gdb_target_cpu=i386 ;;
78073dd8 38m68hc11*|m6811*) gdb_target_cpu=m68hc11 ;;
c906108c 39m68*) gdb_target_cpu=m68k ;;
bf2ca189 40m88*) gdb_target_cpu=m88k ;;
c906108c 41mips*) gdb_target_cpu=mips ;;
d9178763 42powerpc* | rs6000) gdb_target_cpu=powerpc ;;
c906108c
SS
43sparc*) gdb_target_cpu=sparc ;;
44thumb*) gdb_target_cpu=arm ;;
4009c677 45s390*) gdb_target_cpu=s390 ;;
27fd2f50 46score*) gdb_target_cpu=score ;;
13a38d45 47sh*) gdb_target_cpu=sh ;;
771b4502 48spu*) gdb_target_cpu=spu ;;
c906108c 49strongarm*) gdb_target_cpu=arm ;;
7cf6486b 50xscale*) gdb_target_cpu=arm ;;
abf22e64 51x86_64*) gdb_target_cpu=i386 ;;
ca3bf3bd 52xtensa*) gdb_target_cpu=xtensa ;;
c906108c
SS
53*) gdb_target_cpu=$target_cpu ;;
54
55esac
56
57# map target info into gdb names.
58
59case "${target}" in
60
69489883
NN
61x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
62 gdb_target=fbsd64 ;;
63*-*-freebsd* | *-*-kfreebsd*-gnu)
64 gdb_target=fbsd ;;
05e17ccd 65
c906108c
SS
66alpha*-*-osf*) gdb_target=alpha-osf1 ;;
67alpha*-*-linux*) gdb_target=alpha-linux ;;
69489883
NN
68alpha*-*-netbsd* | alpha*-*-knetbsd*-gnu)
69 gdb_target=nbsd ;;
8a112c90 70alpha*-*-openbsd*) gdb_target=obsd ;;
32089c7c 71alpha*-*-*) gdb_target=alpha ;;
c906108c 72
63a09be5
MS
73# mn10300 / am33 liunux
74am33_2.0*-*-linux*) gdb_target=linux ;;
75
68070c10
PA
76arm*-wince-pe | arm*-*-mingw32ce*)
77 gdb_target=wince
78 build_gdbserver=yes
79 ;;
a85f51e7
DJ
80arm*-*-linux*) gdb_target=linux
81 build_gdbserver=yes
41c49b06 82 ;;
69489883
NN
83arm*-*-netbsd* | arm*-*-knetbsd*-gnu)
84 gdb_target=nbsd ;;
a58dc200 85arm*-*-openbsd*) gdb_target=obsd ;;
ed9a39eb
JM
86arm*-*-* | thumb*-*-* | strongarm*-*-*)
87 gdb_target=embed
065a1afc 88 build_rdi_share=yes
7cf6486b
NC
89 ;;
90xscale-*-*) gdb_target=embed
065a1afc 91 build_rdi_share=yes
7be570e7 92 ;;
c906108c 93
57b29be7 94avr-*-*) gdb_target=avr ;;
8818c391 95
29134980
OF
96cris*) gdb_target=cris ;;
97
b8d5e0ac
KH
98fido-*-elf*) gdb_target=monitor ;;
99
456f8b9d 100frv-*-*) gdb_target=frv ;;
adf40b2e 101
f0bdd87d
YS
102h8300-*-*) gdb_target=h8300 ;;
103
5ec846f9 104hppa*64*-*-hpux11*) gdb_target=hppa64 ;;
c906108c 105hppa*-*-hpux*) gdb_target=hppahpux ;;
50306a9d 106hppa*-*-linux*) gdb_target=linux ;;
0e56aeaf 107hppa*-*-openbsd*) gdb_target=obsd ;;
61d8d407 108hppa*-*-*) gdb_target=hppa ;;
c906108c 109
48184fd4
AC
110i[34567]86-*-netbsd* | i[34567]86-*-knetbsd*-gnu)
111 gdb_target=nbsd ;;
1581182a 112i[34567]86-*-openbsd*) gdb_target=obsd ;;
1581182a 113i[34567]86-*-nto*) gdb_target=nto ;;
0bbc026e 114i[34567]86-*-solaris2.1[0-9]*) gdb_target=sol2-64 ;;
1581182a 115i[34567]86-*-solaris*) gdb_target=i386sol2 ;;
1581182a 116i[34567]86-*-linux*) gdb_target=linux
a85f51e7
DJ
117 build_gdbserver=yes
118 ;;
1581182a 119i[34567]86-*-gnu*) gdb_target=i386gnu ;;
b80864fb
DJ
120i[34567]86-*-cygwin*) gdb_target=cygwin
121 build_gdbserver=yes
122 ;;
123i[34567]86-*-mingw32*) gdb_target=i386
124 build_gdbserver=yes
125 ;;
bd153b94 126i[34567]86-*-*) gdb_target=i386 ;;
7a292a7a 127
a85f51e7
DJ
128ia64-*-linux*) gdb_target=linux
129 build_gdbserver=yes
130 ;;
32089c7c 131ia64*-*-*) gdb_target=ia64 ;;
eafb8301 132
20be272b
CV
133iq2000-*-*) gdb_target=iq2000 ;;
134
96309189
MS
135m32c-*-*) gdb_target=m32c ;;
136
ec5a4d75
KI
137m32r*-*-linux*) gdb_target=linux
138 build_gdbserver=yes
139 ;;
9b32d526 140m32r*-*-*) gdb_target=m32r ;;
c906108c 141
78073dd8
AC
142m68hc11*-*-*|m6811*-*-*) gdb_target=m68hc11 ;;
143
c906108c
SS
144m68*-*-aout*) gdb_target=monitor ;;
145m68*-*-coff*) gdb_target=monitor ;;
146m68*-*-elf*) gdb_target=monitor ;;
eb308878 147m68*-*-rtems*) gdb_target=monitor ;;
c906108c 148m68*-*-linux*) gdb_target=linux
a85f51e7
DJ
149 build_gdbserver=yes
150 ;;
69489883
NN
151m68*-*-netbsd* | m68*-*-knetbsd*-gnu)
152 gdb_target=nbsd ;;
8f2d3ea0 153m68*-*-openbsd*) gdb_target=obsd ;;
86b013ed 154m68*-*-uclinux*) gdb_target=monitor ;;
c906108c 155
bf2ca189
MK
156m88*-*-openbsd*) gdb_target=obsd ;;
157
aeb43123
KB
158mep-*-*) gdb_target=mep ;;
159
c906108c 160mips*-sgi-irix5*) gdb_target=irix5 ;;
1d06468c 161mips*-sgi-irix6*) gdb_target=irix6 ;;
a85f51e7
DJ
162mips*-*-linux*) gdb_target=linux
163 build_gdbserver=yes
164 ;;
69489883
NN
165mips*-*-netbsd* | mips*-*-knetbsd*-gnu)
166 gdb_target=nbsd ;;
abc08782 167mips64*-*-openbsd*) gdb_target=obsd64 ;;
c1bab85b 168mips*-*-*) gdb_target=embed ;;
c906108c 169
e02147b1
MS
170mn10300-*-*) gdb_target=mn10300 ;;
171
4970f871 172mt-*-*) gdb_target=mt ;;
61def6bd 173
69489883
NN
174powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu)
175 gdb_target=nbsd ;;
d195bc9f 176powerpc-*-openbsd*) gdb_target=obsd ;;
d9178763
UW
177powerpc-*-aix* | rs6000-*-*)
178 gdb_target=aix ;;
a85f51e7
DJ
179powerpc-*-linux*) gdb_target=linux
180 build_gdbserver=yes
181 ;;
eee84df1
DJ
182powerpc64-*-linux*) gdb_target=linux
183 build_gdbserver=yes
184 ;;
ea47855f
AC
185powerpc*-*-*) if test -f ../sim/ppc/Makefile; then
186 gdb_target=ppc-sim
187 else
188 gdb_target=ppc-eabi
189 fi ;;
c906108c 190
d0f54f9d 191s390*-*-*) gdb_target=s390
265f716b
DJ
192 build_gdbserver=yes
193 ;;
4009c677 194
27fd2f50 195score-*-*) gdb_target=embed ;;
10214f55
C
196sh-*-coff*) gdb_target=embed ;;
197sh-*-elf*) gdb_target=embed ;;
55ff77ac 198# FIXME should that be sh*-*-linux*, perhaps?
a85f51e7
DJ
199sh-*-linux*) gdb_target=linux
200 build_gdbserver=yes
201 ;;
69489883
NN
202sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu)
203 gdb_target=nbsd ;;
54fe9172 204sh*-*-openbsd*) gdb_target=obsd ;;
c30dc700 205sh64-*-elf*) gdb_target=sh64 ;;
843fedf4 206sh*) gdb_target=embed ;;
cce74817 207
c906108c 208sparc-*-linux*) gdb_target=linux ;;
386c036b 209sparc64-*-linux*) gdb_target=linux64 ;;
69489883
NN
210sparc-*-netbsd* | sparc-*-knetbsd*-gnu)
211 gdb_target=nbsd ;;
212sparc64-*-netbsd* | sparc64-*-knetbsd*-gnu)
213 gdb_target=nbsd64 ;;
566626fa 214sparc-*-openbsd*) gdb_target=obsd ;;
890c8f4d 215sparc64-*-openbsd*) gdb_target=obsd64 ;;
386c036b
MK
216sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
217 gdb_target=sol2
218 ;;
219sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*)
220 gdb_target=sol2-64
221 ;;
ce928021 222sparc-*-rtems*) gdb_target=embed ;;
386c036b
MK
223sparc-*-*) gdb_target=sparc ;;
224sparc64-*-*) gdb_target=sparc64 ;;
c906108c 225
a13e2c95
UW
226spu*-*-*) gdb_target=spu
227 build_gdbserver=yes
228 ;;
771b4502 229
0c884e17
CV
230xstormy16-*-*) gdb_target=xstormy16 ;;
231
181124bc
CV
232v850*-*-elf) gdb_target=v850 ;;
233
69489883
NN
234vax-*-netbsd* | vax-*-knetbsd*-gnu)
235 gdb_target=nbsd ;;
a5bf92c5 236vax-*-openbsd*) gdb_target=obsd ;;
c906108c
SS
237vax-*-*) gdb_target=vax ;;
238
9c1488cb 239x86_64-*-linux*) gdb_target=linux64
58caa3dc
DJ
240 build_gdbserver=yes
241 ;;
69489883
NN
242x86_64-*-netbsd* | x86_64-*-knetbsd*-gnu)
243 gdb_target=nbsd64 ;;
890c8f4d 244x86_64-*-openbsd*) gdb_target=obsd64 ;;
abf22e64 245
ca3bf3bd
DJ
246xtensa*) gdb_target=xtensa ;;
247
c906108c 248esac
2acceee2 249
b00a8037
DJ
250# map target onto default OS ABI
251
252case "${target}" in
4fabe3d5 253*-*-freebsd*) gdb_osabi=GDB_OSABI_FREEBSD_ELF ;;
b00a8037 254*-*-linux*) gdb_osabi=GDB_OSABI_LINUX ;;
1b883d35 255*-*-nto*) gdb_osabi=GDB_OSABI_QNXNTO ;;
663408c2 256m68*-*-openbsd* | m88*-*-openbsd* | vax-*-openbsd*) ;;
890c8f4d 257*-*-openbsd*) gdb_osabi=GDB_OSABI_OPENBSD_ELF ;;
5b729aa5 258*-*-solaris*) gdb_osabi=GDB_OSABI_SOLARIS ;;
69489883
NN
259*-*-*-gnu*) ;; # prevent non-GNU kernels to match the Hurd rule below
260*-*-gnu*) gdb_osabi=GDB_OSABI_HURD ;;
b00a8037 261esac
This page took 0.501226 seconds and 4 git commands to generate.