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