]> Git Repo - binutils.git/blame - gdb/configure.tgt
* configure.tgt (gdb_osabi, build_gdbserver): Comment variables.
[binutils.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
fa987fc4
UW
7# gdb_osabi default OS ABI to use with target
8# build_gdbserver set to "yes" if gdbserver supports target
c906108c 9
483367ee 10case $target in
7ce59000 11 d10v-*-* | \
483367ee
DJ
12 hppa*-*-hiux* | \
13 i[34567]86-ncr-* | \
14 i[34567]86-*-lynxos* | \
15 m68*-cisco*-* | \
16 m68*-tandem-* | \
17 m68*-*-os68k* | \
ad527d2e 18 mips*-*-pe | \
483367ee 19 rs6000-*-lynxos* | \
ad527d2e 20 sh*-*-pe | \
483367ee
DJ
21 null)
22 echo "*** Configuration $target is obsolete." >&2
23 echo "*** Support has been REMOVED." >&2
24 exit 1
25 ;;
26esac
27
c906108c
SS
28# Map target cpu into the config cpu subdirectory name.
29# The default is $target_cpu.
30
31case "${target_cpu}" in
32
33alpha*) gdb_target_cpu=alpha ;;
63a09be5 34am33_2.0*) gdb_target_cpu=mn10300 ;;
ed9a39eb 35arm*) gdb_target_cpu=arm ;;
8818c391 36avr*) gdb_target_cpu=avr ;;
b8d5e0ac 37fido*) gdb_target_cpu=m68k ;;
c906108c 38hppa*) gdb_target_cpu=pa ;;
1581182a 39i[34567]86*) gdb_target_cpu=i386 ;;
78073dd8 40m68hc11*|m6811*) gdb_target_cpu=m68hc11 ;;
c906108c 41m68*) gdb_target_cpu=m68k ;;
bf2ca189 42m88*) gdb_target_cpu=m88k ;;
c906108c 43mips*) gdb_target_cpu=mips ;;
d9178763 44powerpc* | rs6000) gdb_target_cpu=powerpc ;;
c906108c
SS
45sparc*) gdb_target_cpu=sparc ;;
46thumb*) gdb_target_cpu=arm ;;
4009c677 47s390*) gdb_target_cpu=s390 ;;
27fd2f50 48score*) gdb_target_cpu=score ;;
13a38d45 49sh*) gdb_target_cpu=sh ;;
771b4502 50spu*) gdb_target_cpu=spu ;;
c906108c 51strongarm*) gdb_target_cpu=arm ;;
7cf6486b 52xscale*) gdb_target_cpu=arm ;;
abf22e64 53x86_64*) gdb_target_cpu=i386 ;;
ca3bf3bd 54xtensa*) gdb_target_cpu=xtensa ;;
c906108c
SS
55*) gdb_target_cpu=$target_cpu ;;
56
57esac
58
59# map target info into gdb names.
60
61case "${target}" in
62
732cd360
UW
63alpha*-*-osf*)
64 gdb_target=alpha-osf1
65 ;;
66alpha*-*-linux*)
67 gdb_target=alpha-linux
68 ;;
fa987fc4
UW
69alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
70 gdb_target=fbsd
71 ;;
69489883 72alpha*-*-netbsd* | alpha*-*-knetbsd*-gnu)
732cd360
UW
73 gdb_target=nbsd
74 ;;
75alpha*-*-openbsd*)
76 gdb_target=obsd
77 ;;
78alpha*-*-*)
79 gdb_target=alpha
80 ;;
c906108c 81
63a09be5 82# mn10300 / am33 liunux
732cd360
UW
83am33_2.0*-*-linux*)
84 gdb_target=linux
85 ;;
63a09be5 86
68070c10 87arm*-wince-pe | arm*-*-mingw32ce*)
732cd360
UW
88 gdb_target=wince
89 build_gdbserver=yes
90 ;;
91arm*-*-linux*)
92 gdb_target=linux
93 build_gdbserver=yes
94 ;;
69489883 95arm*-*-netbsd* | arm*-*-knetbsd*-gnu)
732cd360
UW
96 gdb_target=nbsd
97 ;;
98arm*-*-openbsd*)
99 gdb_target=obsd
100 ;;
fa987fc4 101arm*-*-* | thumb*-*-* | strongarm*-*-* | xscale-*-*)
732cd360 102 gdb_target=embed
732cd360
UW
103 ;;
104
105avr-*-*)
106 gdb_target=avr
107 ;;
108
109cris*)
110 gdb_target=cris
111 ;;
112
732cd360
UW
113frv-*-*)
114 gdb_target=frv
115 ;;
116
117h8300-*-*)
118 gdb_target=h8300
119 ;;
120
121hppa*-*-hpux*)
122 gdb_target=hppahpux
123 ;;
124hppa*-*-linux*)
125 gdb_target=linux
126 ;;
127hppa*-*-openbsd*)
128 gdb_target=obsd
129 ;;
130hppa*-*-*)
131 gdb_target=hppa
132 ;;
c906108c 133
fa987fc4
UW
134i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
135 gdb_target=fbsd
136 ;;
48184fd4 137i[34567]86-*-netbsd* | i[34567]86-*-knetbsd*-gnu)
732cd360
UW
138 gdb_target=nbsd
139 ;;
140i[34567]86-*-openbsd*)
141 gdb_target=obsd
142 ;;
143i[34567]86-*-nto*)
144 gdb_target=nto
145 ;;
146i[34567]86-*-solaris2.1[0-9]*)
147 gdb_target=sol2-64
148 ;;
149i[34567]86-*-solaris*)
150 gdb_target=i386sol2
151 ;;
152i[34567]86-*-linux*)
153 gdb_target=linux
154 build_gdbserver=yes
155 ;;
156i[34567]86-*-gnu*)
157 gdb_target=i386gnu
158 ;;
159i[34567]86-*-cygwin*)
160 gdb_target=cygwin
161 build_gdbserver=yes
162 ;;
163i[34567]86-*-mingw32*)
164 gdb_target=mingw
165 build_gdbserver=yes
166 ;;
167i[34567]86-*-*)
168 gdb_target=i386
169 ;;
170
171ia64-*-linux*)
172 gdb_target=linux
173 build_gdbserver=yes
174 ;;
175ia64*-*-*)
176 gdb_target=ia64
177 ;;
178
179iq2000-*-*)
180 gdb_target=iq2000
181 ;;
182
183m32c-*-*)
184 gdb_target=m32c
185 ;;
186
187m32r*-*-linux*)
188 gdb_target=linux
189 build_gdbserver=yes
190 ;;
191m32r*-*-*)
192 gdb_target=m32r
193 ;;
194
195m68hc11*-*-*|m6811*-*-*)
196 gdb_target=m68hc11
197 ;;
198
fa987fc4
UW
199m68*-*-aout* | m68*-*-coff* | m68*-*-elf* | m68*-*-rtems* | m68*-*-uclinux* | \
200fido-*-elf*)
732cd360
UW
201 gdb_target=monitor
202 ;;
203m68*-*-linux*)
204 gdb_target=linux
205 build_gdbserver=yes
206 ;;
69489883 207m68*-*-netbsd* | m68*-*-knetbsd*-gnu)
732cd360
UW
208 gdb_target=nbsd
209 ;;
210m68*-*-openbsd*)
211 gdb_target=obsd
212 ;;
732cd360
UW
213
214m88*-*-openbsd*)
215 gdb_target=obsd
216 ;;
217
218mep-*-*)
219 gdb_target=mep
220 ;;
221
222mips*-sgi-irix5*)
223 gdb_target=irix5
224 ;;
225mips*-sgi-irix6*)
226 gdb_target=irix6
227 ;;
228mips*-*-linux*)
229 gdb_target=linux
230 build_gdbserver=yes
231 ;;
69489883 232mips*-*-netbsd* | mips*-*-knetbsd*-gnu)
732cd360
UW
233 gdb_target=nbsd
234 ;;
235mips64*-*-openbsd*)
236 gdb_target=obsd64
237 ;;
238mips*-*-*)
239 gdb_target=embed
240 ;;
241
242mn10300-*-*)
243 gdb_target=mn10300
244 ;;
245
246mt-*-*)
247 gdb_target=mt
248 ;;
61def6bd 249
69489883 250powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu)
732cd360
UW
251 gdb_target=nbsd
252 ;;
253powerpc-*-openbsd*)
254 gdb_target=obsd
255 ;;
d9178763 256powerpc-*-aix* | rs6000-*-*)
732cd360
UW
257 gdb_target=aix
258 ;;
fa987fc4 259powerpc-*-linux* | powerpc64-*-linux*)
732cd360
UW
260 gdb_target=linux
261 build_gdbserver=yes
262 ;;
263powerpc*-*-*)
264 if test -f ../sim/ppc/Makefile; then
265 gdb_target=ppc-sim
266 else
267 gdb_target=ppc-eabi
268 fi
269 ;;
270
271s390*-*-*)
272 gdb_target=s390
273 build_gdbserver=yes
274 ;;
275
276score-*-*)
277 gdb_target=embed
278 ;;
279
55ff77ac 280# FIXME should that be sh*-*-linux*, perhaps?
732cd360
UW
281sh-*-linux*)
282 gdb_target=linux
283 build_gdbserver=yes
284 ;;
69489883 285sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu)
732cd360
UW
286 gdb_target=nbsd
287 ;;
288sh*-*-openbsd*)
289 gdb_target=obsd
290 ;;
291sh64-*-elf*)
292 gdb_target=sh64
293 ;;
294sh*)
295 gdb_target=embed
296 ;;
297
298sparc-*-linux*)
299 gdb_target=linux
300 ;;
301sparc64-*-linux*)
302 gdb_target=linux64
303 ;;
fa987fc4
UW
304sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu)
305 gdb_target=fbsd
306 ;;
69489883 307sparc-*-netbsd* | sparc-*-knetbsd*-gnu)
732cd360
UW
308 gdb_target=nbsd
309 ;;
69489883 310sparc64-*-netbsd* | sparc64-*-knetbsd*-gnu)
732cd360
UW
311 gdb_target=nbsd64
312 ;;
313sparc-*-openbsd*)
314 gdb_target=obsd
315 ;;
316sparc64-*-openbsd*)
317 gdb_target=obsd64
318 ;;
386c036b 319sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
732cd360
UW
320 gdb_target=sol2
321 ;;
386c036b 322sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*)
732cd360
UW
323 gdb_target=sol2-64
324 ;;
325sparc-*-rtems*)
326 gdb_target=embed
327 ;;
328sparc-*-*)
329 gdb_target=sparc
330 ;;
331sparc64-*-*)
332 gdb_target=sparc64
333 ;;
334
335spu*-*-*)
336 gdb_target=spu
337 build_gdbserver=yes
338 ;;
339
340xstormy16-*-*)
341 gdb_target=xstormy16
342 ;;
343
344v850*-*-elf)
345 gdb_target=v850
346 ;;
181124bc 347
69489883 348vax-*-netbsd* | vax-*-knetbsd*-gnu)
732cd360
UW
349 gdb_target=nbsd
350 ;;
351vax-*-openbsd*)
352 gdb_target=obsd
353 ;;
354vax-*-*)
355 gdb_target=vax
356 ;;
357
358x86_64-*-linux*)
359 gdb_target=linux64
360 build_gdbserver=yes
361 ;;
fa987fc4
UW
362x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
363 gdb_target=fbsd64
364 ;;
69489883 365x86_64-*-netbsd* | x86_64-*-knetbsd*-gnu)
732cd360
UW
366 gdb_target=nbsd64
367 ;;
368x86_64-*-openbsd*)
369 gdb_target=obsd64
370 ;;
371
372xtensa*)
373 gdb_target=xtensa
374 ;;
ca3bf3bd 375
c906108c 376esac
2acceee2 377
b00a8037
DJ
378# map target onto default OS ABI
379
380case "${target}" in
4fabe3d5 381*-*-freebsd*) gdb_osabi=GDB_OSABI_FREEBSD_ELF ;;
b00a8037 382*-*-linux*) gdb_osabi=GDB_OSABI_LINUX ;;
1b883d35 383*-*-nto*) gdb_osabi=GDB_OSABI_QNXNTO ;;
663408c2 384m68*-*-openbsd* | m88*-*-openbsd* | vax-*-openbsd*) ;;
890c8f4d 385*-*-openbsd*) gdb_osabi=GDB_OSABI_OPENBSD_ELF ;;
5b729aa5 386*-*-solaris*) gdb_osabi=GDB_OSABI_SOLARIS ;;
69489883
NN
387*-*-*-gnu*) ;; # prevent non-GNU kernels to match the Hurd rule below
388*-*-gnu*) gdb_osabi=GDB_OSABI_HURD ;;
b00a8037 389esac
This page took 1.060563 seconds and 4 git commands to generate.