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