* configure.tgt: Reformat main case statement.
[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 61x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
732cd360
UW
62 gdb_target=fbsd64
63 ;;
69489883 64*-*-freebsd* | *-*-kfreebsd*-gnu)
732cd360
UW
65 gdb_target=fbsd
66 ;;
67
68alpha*-*-osf*)
69 gdb_target=alpha-osf1
70 ;;
71alpha*-*-linux*)
72 gdb_target=alpha-linux
73 ;;
69489883 74alpha*-*-netbsd* | alpha*-*-knetbsd*-gnu)
732cd360
UW
75 gdb_target=nbsd
76 ;;
77alpha*-*-openbsd*)
78 gdb_target=obsd
79 ;;
80alpha*-*-*)
81 gdb_target=alpha
82 ;;
c906108c 83
63a09be5 84# mn10300 / am33 liunux
732cd360
UW
85am33_2.0*-*-linux*)
86 gdb_target=linux
87 ;;
63a09be5 88
68070c10 89arm*-wince-pe | arm*-*-mingw32ce*)
732cd360
UW
90 gdb_target=wince
91 build_gdbserver=yes
92 ;;
93arm*-*-linux*)
94 gdb_target=linux
95 build_gdbserver=yes
96 ;;
69489883 97arm*-*-netbsd* | arm*-*-knetbsd*-gnu)
732cd360
UW
98 gdb_target=nbsd
99 ;;
100arm*-*-openbsd*)
101 gdb_target=obsd
102 ;;
ed9a39eb 103arm*-*-* | thumb*-*-* | strongarm*-*-*)
732cd360
UW
104 gdb_target=embed
105 build_rdi_share=yes
106 ;;
107xscale-*-*)
108 gdb_target=embed
109 build_rdi_share=yes
110 ;;
111
112avr-*-*)
113 gdb_target=avr
114 ;;
115
116cris*)
117 gdb_target=cris
118 ;;
119
120fido-*-elf*)
121 gdb_target=monitor
122 ;;
123
124frv-*-*)
125 gdb_target=frv
126 ;;
127
128h8300-*-*)
129 gdb_target=h8300
130 ;;
131
132hppa*-*-hpux*)
133 gdb_target=hppahpux
134 ;;
135hppa*-*-linux*)
136 gdb_target=linux
137 ;;
138hppa*-*-openbsd*)
139 gdb_target=obsd
140 ;;
141hppa*-*-*)
142 gdb_target=hppa
143 ;;
c906108c 144
48184fd4 145i[34567]86-*-netbsd* | i[34567]86-*-knetbsd*-gnu)
732cd360
UW
146 gdb_target=nbsd
147 ;;
148i[34567]86-*-openbsd*)
149 gdb_target=obsd
150 ;;
151i[34567]86-*-nto*)
152 gdb_target=nto
153 ;;
154i[34567]86-*-solaris2.1[0-9]*)
155 gdb_target=sol2-64
156 ;;
157i[34567]86-*-solaris*)
158 gdb_target=i386sol2
159 ;;
160i[34567]86-*-linux*)
161 gdb_target=linux
162 build_gdbserver=yes
163 ;;
164i[34567]86-*-gnu*)
165 gdb_target=i386gnu
166 ;;
167i[34567]86-*-cygwin*)
168 gdb_target=cygwin
169 build_gdbserver=yes
170 ;;
171i[34567]86-*-mingw32*)
172 gdb_target=mingw
173 build_gdbserver=yes
174 ;;
175i[34567]86-*-*)
176 gdb_target=i386
177 ;;
178
179ia64-*-linux*)
180 gdb_target=linux
181 build_gdbserver=yes
182 ;;
183ia64*-*-*)
184 gdb_target=ia64
185 ;;
186
187iq2000-*-*)
188 gdb_target=iq2000
189 ;;
190
191m32c-*-*)
192 gdb_target=m32c
193 ;;
194
195m32r*-*-linux*)
196 gdb_target=linux
197 build_gdbserver=yes
198 ;;
199m32r*-*-*)
200 gdb_target=m32r
201 ;;
202
203m68hc11*-*-*|m6811*-*-*)
204 gdb_target=m68hc11
205 ;;
206
207m68*-*-aout*)
208 gdb_target=monitor
209 ;;
210m68*-*-coff*)
211 gdb_target=monitor
212 ;;
213m68*-*-elf*)
214 gdb_target=monitor
215 ;;
216m68*-*-rtems*)
217 gdb_target=monitor
218 ;;
219m68*-*-linux*)
220 gdb_target=linux
221 build_gdbserver=yes
222 ;;
69489883 223m68*-*-netbsd* | m68*-*-knetbsd*-gnu)
732cd360
UW
224 gdb_target=nbsd
225 ;;
226m68*-*-openbsd*)
227 gdb_target=obsd
228 ;;
229m68*-*-uclinux*)
230 gdb_target=monitor
231 ;;
232
233m88*-*-openbsd*)
234 gdb_target=obsd
235 ;;
236
237mep-*-*)
238 gdb_target=mep
239 ;;
240
241mips*-sgi-irix5*)
242 gdb_target=irix5
243 ;;
244mips*-sgi-irix6*)
245 gdb_target=irix6
246 ;;
247mips*-*-linux*)
248 gdb_target=linux
249 build_gdbserver=yes
250 ;;
69489883 251mips*-*-netbsd* | mips*-*-knetbsd*-gnu)
732cd360
UW
252 gdb_target=nbsd
253 ;;
254mips64*-*-openbsd*)
255 gdb_target=obsd64
256 ;;
257mips*-*-*)
258 gdb_target=embed
259 ;;
260
261mn10300-*-*)
262 gdb_target=mn10300
263 ;;
264
265mt-*-*)
266 gdb_target=mt
267 ;;
61def6bd 268
69489883 269powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu)
732cd360
UW
270 gdb_target=nbsd
271 ;;
272powerpc-*-openbsd*)
273 gdb_target=obsd
274 ;;
d9178763 275powerpc-*-aix* | rs6000-*-*)
732cd360
UW
276 gdb_target=aix
277 ;;
278powerpc-*-linux*)
279 gdb_target=linux
280 build_gdbserver=yes
281 ;;
282powerpc64-*-linux*)
283 gdb_target=linux
284 build_gdbserver=yes
285 ;;
286powerpc*-*-*)
287 if test -f ../sim/ppc/Makefile; then
288 gdb_target=ppc-sim
289 else
290 gdb_target=ppc-eabi
291 fi
292 ;;
293
294s390*-*-*)
295 gdb_target=s390
296 build_gdbserver=yes
297 ;;
298
299score-*-*)
300 gdb_target=embed
301 ;;
302
303sh-*-coff*)
304 gdb_target=embed
305 ;;
306sh-*-elf*)
307 gdb_target=embed
308 ;;
55ff77ac 309# FIXME should that be sh*-*-linux*, perhaps?
732cd360
UW
310sh-*-linux*)
311 gdb_target=linux
312 build_gdbserver=yes
313 ;;
69489883 314sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu)
732cd360
UW
315 gdb_target=nbsd
316 ;;
317sh*-*-openbsd*)
318 gdb_target=obsd
319 ;;
320sh64-*-elf*)
321 gdb_target=sh64
322 ;;
323sh*)
324 gdb_target=embed
325 ;;
326
327sparc-*-linux*)
328 gdb_target=linux
329 ;;
330sparc64-*-linux*)
331 gdb_target=linux64
332 ;;
69489883 333sparc-*-netbsd* | sparc-*-knetbsd*-gnu)
732cd360
UW
334 gdb_target=nbsd
335 ;;
69489883 336sparc64-*-netbsd* | sparc64-*-knetbsd*-gnu)
732cd360
UW
337 gdb_target=nbsd64
338 ;;
339sparc-*-openbsd*)
340 gdb_target=obsd
341 ;;
342sparc64-*-openbsd*)
343 gdb_target=obsd64
344 ;;
386c036b 345sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
732cd360
UW
346 gdb_target=sol2
347 ;;
386c036b 348sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*)
732cd360
UW
349 gdb_target=sol2-64
350 ;;
351sparc-*-rtems*)
352 gdb_target=embed
353 ;;
354sparc-*-*)
355 gdb_target=sparc
356 ;;
357sparc64-*-*)
358 gdb_target=sparc64
359 ;;
360
361spu*-*-*)
362 gdb_target=spu
363 build_gdbserver=yes
364 ;;
365
366xstormy16-*-*)
367 gdb_target=xstormy16
368 ;;
369
370v850*-*-elf)
371 gdb_target=v850
372 ;;
181124bc 373
69489883 374vax-*-netbsd* | vax-*-knetbsd*-gnu)
732cd360
UW
375 gdb_target=nbsd
376 ;;
377vax-*-openbsd*)
378 gdb_target=obsd
379 ;;
380vax-*-*)
381 gdb_target=vax
382 ;;
383
384x86_64-*-linux*)
385 gdb_target=linux64
386 build_gdbserver=yes
387 ;;
69489883 388x86_64-*-netbsd* | x86_64-*-knetbsd*-gnu)
732cd360
UW
389 gdb_target=nbsd64
390 ;;
391x86_64-*-openbsd*)
392 gdb_target=obsd64
393 ;;
394
395xtensa*)
396 gdb_target=xtensa
397 ;;
ca3bf3bd 398
c906108c 399esac
2acceee2 400
b00a8037
DJ
401# map target onto default OS ABI
402
403case "${target}" in
4fabe3d5 404*-*-freebsd*) gdb_osabi=GDB_OSABI_FREEBSD_ELF ;;
b00a8037 405*-*-linux*) gdb_osabi=GDB_OSABI_LINUX ;;
1b883d35 406*-*-nto*) gdb_osabi=GDB_OSABI_QNXNTO ;;
663408c2 407m68*-*-openbsd* | m88*-*-openbsd* | vax-*-openbsd*) ;;
890c8f4d 408*-*-openbsd*) gdb_osabi=GDB_OSABI_OPENBSD_ELF ;;
5b729aa5 409*-*-solaris*) gdb_osabi=GDB_OSABI_SOLARIS ;;
69489883
NN
410*-*-*-gnu*) ;; # prevent non-GNU kernels to match the Hurd rule below
411*-*-gnu*) gdb_osabi=GDB_OSABI_HURD ;;
b00a8037 412esac
This page took 0.497107 seconds and 4 git commands to generate.