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