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