Add native target for FreeBSD/mips.
[deliverable/binutils-gdb.git] / gdb / configure.tgt
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_obs target-specific object files to use
6 # gdb_sim simulator library for target
7 # gdb_osabi default OS ABI to use with target
8 # build_gdbserver set to "yes" if gdbserver supports target
9 # gdb_have_gcore set to "true"/"false" if this target can run gcore
10
11 # NOTE: Every file added to a gdb_target_obs variable for any target here
12 # must also be added to either ALL_TARGET_OBS or ALL_64_TARGET_OBS
13 # in Makefile.in!
14
15 case $targ in
16 *-*-irix* | \
17 alpha*-*-osf* | \
18 d10v-*-* | \
19 hppa*-*-hiux* | \
20 i[34567]86-ncr-* | \
21 m68*-cisco*-* | \
22 m68*-tandem-* | \
23 m68*-*-os68k* | \
24 mips*-*-pe | \
25 rs6000-*-lynxos* | \
26 sh*-*-pe | \
27 hppa*-*-hpux* | \
28 ia64-*-hpux* | \
29 *-*-vxworks* | \
30 null)
31 echo "*** Configuration $targ is obsolete." >&2
32 echo "*** Support has been REMOVED." >&2
33 exit 1
34 ;;
35 esac
36
37 # map target info into gdb names.
38
39 case "${targ}" in
40 aarch64*-*-elf | aarch64*-*-rtems*)
41 # Target: AArch64 embedded system
42 gdb_target_obs="aarch64-tdep.o aarch64-newlib-tdep.o aarch64-insn.o"
43 ;;
44
45 aarch64*-*-linux*)
46 # Target: AArch64 linux
47 gdb_target_obs="aarch64-tdep.o aarch64-linux-tdep.o aarch64-insn.o \
48 arm.o arm-linux.o arm-get-next-pcs.o arm-tdep.o \
49 arm-linux-tdep.o \
50 glibc-tdep.o linux-tdep.o solib-svr4.o \
51 symfile-mem.o linux-record.o"
52 build_gdbserver=yes
53 ;;
54
55 alpha*-*-linux*)
56 # Target: Little-endian Alpha running Linux
57 gdb_target_obs="alpha-tdep.o alpha-mdebug-tdep.o alpha-linux-tdep.o \
58 linux-tdep.o solib-svr4.o"
59 ;;
60 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
61 # Target: FreeBSD/alpha
62 gdb_target_obs="alpha-tdep.o alpha-mdebug-tdep.o alpha-bsd-tdep.o \
63 alpha-fbsd-tdep.o solib-svr4.o"
64 ;;
65 alpha*-*-netbsd* | alpha*-*-knetbsd*-gnu)
66 # Target: NetBSD/alpha
67 gdb_target_obs="alpha-tdep.o alpha-mdebug-tdep.o alpha-bsd-tdep.o \
68 alpha-nbsd-tdep.o nbsd-tdep.o solib-svr4.o"
69 ;;
70 alpha*-*-openbsd*)
71 # Target: OpenBSD/alpha
72 gdb_target_obs="alpha-tdep.o alpha-mdebug-tdep.o alpha-bsd-tdep.o \
73 alpha-nbsd-tdep.o alpha-obsd-tdep.o nbsd-tdep.o \
74 obsd-tdep.o solib-svr4.o"
75 ;;
76 alpha*-*-*)
77 # Target: Alpha
78 gdb_target_obs="alpha-tdep.o"
79 ;;
80
81 am33_2.0*-*-linux*)
82 # Target: Matsushita mn10300 (AM33) running Linux
83 gdb_target_obs="mn10300-tdep.o mn10300-linux-tdep.o linux-tdep.o \
84 solib-svr4.o"
85 ;;
86
87 arc*-*-elf32)
88 # Target: baremetal ARC elf32 (newlib) target
89 gdb_target_obs="arc-newlib-tdep.o arc-tdep.o"
90 ;;
91
92 arc*-*-*)
93 # Target: Unidentified ARC target
94 gdb_target_obs="arc-tdep.o"
95 ;;
96
97 arm*-wince-pe | arm*-*-mingw32ce*)
98 # Target: ARM based machine running Windows CE (win32)
99 gdb_target_obs="arm.o arm-get-next-pcs.o arm-tdep.o \
100 arm-wince-tdep.o windows-tdep.o"
101 build_gdbserver=yes
102 ;;
103 arm*-*-linux*)
104 # Target: ARM based machine running GNU/Linux
105 gdb_target_obs="arm.o arm-linux.o arm-get-next-pcs.o arm-tdep.o \
106 arm-linux-tdep.o glibc-tdep.o \
107 solib-svr4.o symfile-mem.o linux-tdep.o linux-record.o"
108 build_gdbserver=yes
109 ;;
110 arm*-*-netbsd* | arm*-*-knetbsd*-gnu)
111 # Target: NetBSD/arm
112 gdb_target_obs="arm.o arm-get-next-pcs.o arm-tdep.o arm-nbsd-tdep.o \
113 solib-svr4.o"
114 ;;
115 arm*-*-openbsd*)
116 # Target: OpenBSD/arm
117 gdb_target_obs="arm.o arm-get-next-pcs.o arm-tdep.o arm-bsd-tdep.o \
118 arm-obsd-tdep.o obsd-tdep.o solib-svr4.o"
119 ;;
120 arm*-*-symbianelf*)
121 # Target: SymbianOS/arm
122 gdb_target_obs="arm.o arm-get-next-pcs.o arm-tdep.o arm-symbian-tdep.o"
123 ;;
124 arm*-*-*)
125 # Target: ARM embedded system
126 gdb_target_obs="arm.o arm-get-next-pcs.o arm-tdep.o"
127 gdb_sim=../sim/arm/libsim.a
128 ;;
129
130 avr-*-*)
131 # Target: AVR
132 gdb_target_obs="avr-tdep.o"
133 gdb_sim=../sim/avr/libsim.a
134 ;;
135
136 bfin-*-*linux*)
137 # Target: Blackfin Linux
138 gdb_target_obs="bfin-tdep.o bfin-linux-tdep.o linux-tdep.o"
139 gdb_sim=../sim/bfin/libsim.a
140 build_gdbserver=yes
141 ;;
142 bfin-*-*)
143 # Target: Blackfin processor
144 gdb_target_obs="bfin-tdep.o"
145 gdb_sim=../sim/bfin/libsim.a
146 ;;
147
148 cris*)
149 # Target: CRIS
150 gdb_target_obs="cris-tdep.o cris-linux-tdep.o linux-tdep.o solib-svr4.o"
151 ;;
152
153 frv-*-*)
154 # Target: Fujitsu FRV processor
155 gdb_target_obs="frv-tdep.o frv-linux-tdep.o linux-tdep.o solib-frv.o"
156 gdb_sim=../sim/frv/libsim.a
157 ;;
158
159 moxie-*-elf | moxie-*-moxiebox | moxie-*-rtems*)
160 gdb_target_obs="moxie-tdep.o"
161 gdb_sim=../sim/moxie/libsim.a
162 ;;
163
164 h8300-*-*)
165 # Target: H8300 processor
166 gdb_target_obs="h8300-tdep.o"
167 gdb_sim=../sim/h8300/libsim.a
168 ;;
169
170 hppa*-*-linux*)
171 # Target: HP PA-RISC running Linux
172 gdb_target_obs="hppa-tdep.o hppa-linux-tdep.o glibc-tdep.o \
173 linux-tdep.o solib-svr4.o symfile-mem.o"
174 ;;
175 hppa*-*-netbsd*)
176 # Target: NetBSD/hppa
177 gdb_target_obs="hppa-tdep.o hppa-bsd-tdep.o hppa-nbsd-tdep.o solib-svr4.o"
178 ;;
179 hppa*-*-openbsd*)
180 # Target: OpenBSD/hppa
181 gdb_target_obs="hppa-tdep.o hppa-bsd-tdep.o hppa-obsd-tdep.o solib-svr4.o"
182 ;;
183 hppa*-*-*)
184 # Target: HP PA-RISC
185 gdb_target_obs="hppa-tdep.o"
186 ;;
187
188 i[34567]86-*-darwin*)
189 # Target: Darwin/i386
190 gdb_target_obs="i386-tdep.o i387-tdep.o \
191 i386-darwin-tdep.o solib-darwin.o"
192 if test "x$enable_64_bit_bfd" = "xyes"; then
193 # Target: GNU/Linux x86-64
194 gdb_target_obs="amd64-tdep.o amd64-darwin-tdep.o ${gdb_target_obs}"
195 fi
196 ;;
197 i[34567]86-*-dicos*)
198 # Target: DICOS/i386
199 gdb_target_obs="i386-tdep.o i387-tdep.o dicos-tdep.o i386-dicos-tdep.o"
200 ;;
201 i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
202 # Target: FreeBSD/i386
203 gdb_target_obs="i386-tdep.o i387-tdep.o i386-bsd-tdep.o i386-fbsd-tdep.o \
204 bsd-uthread.o fbsd-tdep.o solib-svr4.o"
205 ;;
206 i[34567]86-*-netbsd* | i[34567]86-*-knetbsd*-gnu)
207 # Target: NetBSD/i386
208 gdb_target_obs="i386-tdep.o i387-tdep.o i386-bsd-tdep.o i386-nbsd-tdep.o \
209 nbsd-tdep.o solib-svr4.o"
210 ;;
211 i[34567]86-*-openbsd*)
212 # Target: OpenBSD/i386
213 gdb_target_obs="i386-tdep.o i387-tdep.o i386-bsd-tdep.o i386-obsd-tdep.o \
214 obsd-tdep.o bsd-uthread.o solib-svr4.o"
215 ;;
216 i[34567]86-*-nto*)
217 # Target: Intel 386 running qnx6.
218 gdb_target_obs="i386-tdep.o i387-tdep.o solib-svr4.o \
219 i386-nto-tdep.o nto-tdep.o"
220 build_gdbserver=yes
221 ;;
222 i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
223 # Target: Solaris x86_64
224 gdb_target_obs="i386-tdep.o i387-tdep.o amd64-tdep.o amd64-sol2-tdep.o \
225 i386-sol2-tdep.o sol2-tdep.o solib-svr4.o"
226 ;;
227 i[34567]86-*-solaris*)
228 # Target: Solaris x86
229 gdb_target_obs="i386-tdep.o i387-tdep.o i386-sol2-tdep.o sol2-tdep.o \
230 solib-svr4.o"
231 ;;
232 i[34567]86-*-linux*)
233 # Target: Intel 386 running GNU/Linux
234 gdb_target_obs="i386-tdep.o i386-linux-tdep.o glibc-tdep.o i387-tdep.o \
235 solib-svr4.o symfile-mem.o \
236 linux-tdep.o linux-record.o"
237 if test "x$enable_64_bit_bfd" = "xyes"; then
238 # Target: GNU/Linux x86-64
239 gdb_target_obs="amd64-tdep.o amd64-linux-tdep.o ${gdb_target_obs}"
240 fi
241 build_gdbserver=yes
242 ;;
243 i[34567]86-*-gnu*)
244 # Target: Intel 386 running the GNU Hurd
245 gdb_target_obs="i386-tdep.o i387-tdep.o i386-gnu-tdep.o solib-svr4.o"
246 ;;
247 i[34567]86-*-cygwin*)
248 # Target: Intel 386 running win32
249 gdb_target_obs="i386-tdep.o i386-cygwin-tdep.o i387-tdep.o \
250 windows-tdep.o"
251 build_gdbserver=yes
252 ;;
253 i[34567]86-*-mingw32*)
254 # Target: Intel 386 running win32
255 gdb_target_obs="i386-tdep.o i386-cygwin-tdep.o i387-tdep.o \
256 windows-tdep.o"
257 build_gdbserver=yes
258 ;;
259 i[34567]86-*-*)
260 # Target: i386
261 gdb_target_obs="i386-tdep.o i387-tdep.o"
262 ;;
263
264 ia64-*-linux*)
265 # Target: Intel IA-64 running GNU/Linux
266 gdb_target_obs="ia64-tdep.o ia64-linux-tdep.o linux-tdep.o \
267 solib-svr4.o symfile-mem.o"
268 build_gdbserver=yes
269 ;;
270 ia64-*-*vms*)
271 # Target: Intel IA-64 running OpenVMS
272 gdb_target_obs="ia64-tdep.o ia64-vms-tdep.o"
273 ;;
274 ia64*-*-*)
275 # Target: Intel IA-64
276 gdb_target_obs="ia64-tdep.o"
277 ;;
278
279 iq2000-*-*)
280 gdb_target_obs="iq2000-tdep.o"
281 gdb_sim=../sim/iq2000/libsim.a
282 ;;
283
284 lm32-*-*)
285 gdb_target_obs="lm32-tdep.o"
286 gdb_sim=../sim/lm32/libsim.a
287 ;;
288
289 m32c-*-*)
290 # Target: Renesas M32C family
291 gdb_target_obs="m32c-tdep.o"
292 # There may also be a SID / CGEN simulator for this,
293 # but we do have DJ Delorie's mini-sim.
294 gdb_sim=../sim/m32c/libsim.a
295 ;;
296
297 m32r*-*-linux*)
298 # Target: Renesas M32R running GNU/Linux
299 gdb_target_obs="m32r-tdep.o m32r-linux-tdep.o \
300 glibc-tdep.o solib-svr4.o symfile-mem.o \
301 linux-tdep.o"
302 gdb_sim=../sim/m32r/libsim.a
303 build_gdbserver=yes
304 ;;
305 m32r*-*-*)
306 # Target: Renesas m32r processor
307 gdb_target_obs="m32r-tdep.o"
308 gdb_sim=../sim/m32r/libsim.a
309 ;;
310
311 m68hc11*-*-*|m6811*-*-*)
312 # Target: Motorola 68HC11 processor
313 gdb_target_obs="m68hc11-tdep.o"
314 gdb_sim=../sim/m68hc11/libsim.a
315 ;;
316
317 m68*-*-aout* | m68*-*-coff* | m68*-*-elf* | m68*-*-rtems* | m68*-*-uclinux* | \
318 fido-*-elf*)
319 # Target: Motorola m68k embedded
320 gdb_target_obs="m68k-tdep.o"
321 ;;
322 m68*-*-linux*)
323 # Target: Motorola m68k with a.out and ELF
324 gdb_target_obs="m68k-tdep.o m68k-linux-tdep.o solib-svr4.o \
325 linux-tdep.o glibc-tdep.o symfile-mem.o"
326 build_gdbserver=yes
327 ;;
328 m68*-*-netbsd* | m68*-*-knetbsd*-gnu)
329 # Target: NetBSD/m68k
330 gdb_target_obs="m68k-tdep.o m68k-bsd-tdep.o solib-svr4.o"
331 ;;
332 m68*-*-openbsd*)
333 # Target: OpenBSD/m68k
334 gdb_target_obs="m68k-tdep.o m68k-bsd-tdep.o solib-svr4.o"
335 ;;
336
337 m88*-*-openbsd*)
338 # Target: OpenBSD/m88k
339 gdb_target_obs="m88k-tdep.o"
340 ;;
341
342 mep-*-*)
343 # Target: Toshiba Media Processor (MEP)
344 gdb_target_obs="mep-tdep.o"
345 # No sim needed. Target uses SID.
346 ;;
347
348 microblaze*-linux-*|microblaze*-*-linux*)
349 # Target: Xilinx MicroBlaze running Linux
350 gdb_target_obs="microblaze-tdep.o microblaze-linux-tdep.o solib-svr4.o \
351 symfile-mem.o linux-tdep.o"
352 gdb_sim=../sim/microblaze/libsim.a
353 ;;
354 microblaze*-*-*)
355 # Target: Xilinx MicroBlaze running standalone
356 gdb_target_obs="microblaze-tdep.o"
357 gdb_sim=../sim/microblaze/libsim.a
358 ;;
359
360 mips*-*-linux*)
361 # Target: Linux/MIPS
362 gdb_target_obs="mips-tdep.o mips-linux-tdep.o glibc-tdep.o \
363 solib-svr4.o symfile-mem.o linux-tdep.o"
364 gdb_sim=../sim/mips/libsim.a
365 build_gdbserver=yes
366 ;;
367 mips*-*-netbsd* | mips*-*-knetbsd*-gnu)
368 # Target: MIPS running NetBSD
369 gdb_target_obs="mips-tdep.o mips-nbsd-tdep.o solib-svr4.o nbsd-tdep.o"
370 gdb_sim=../sim/mips/libsim.a
371 ;;
372 mips*-*-freebsd*)
373 # Target: MIPS running FreeBSD
374 gdb_target_obs="mips-tdep.o mips-fbsd-tdep.o solib-svr4.o fbsd-tdep.o"
375 gdb_sim=../sim/mips/libsim.a
376 ;;
377 mips64*-*-openbsd*)
378 # Target: OpenBSD/mips64
379 gdb_target_obs="mips-tdep.o mips64-obsd-tdep.o obsd-tdep.o solib-svr4.o"
380 ;;
381 mips*-sde*-elf*)
382 # Target: MIPS SDE
383 gdb_target_obs="mips-tdep.o mips-sde-tdep.o"
384 gdb_sim=../sim/mips/libsim.a
385 ;;
386 mips*-*-elf)
387 # Target: MIPS ELF
388 gdb_target_obs="mips-tdep.o"
389 gdb_sim=../sim/mips/libsim.a
390 ;;
391 mips*-*-*)
392 # Target: MIPS
393 gdb_target_obs="mips-tdep.o"
394 gdb_sim=../sim/mips/libsim.a
395 ;;
396
397 mn10300-*-*)
398 # Target: Matsushita mn10300
399 gdb_target_obs="mn10300-tdep.o"
400 gdb_sim=../sim/mn10300/libsim.a
401 ;;
402
403 msp430*-*-elf)
404 gdb_target_obs="msp430-tdep.o"
405 gdb_sim=../sim/msp430/libsim.a
406 ;;
407
408 mt-*-*)
409 # Target: Morpho Technologies ms1 processor
410 gdb_target_obs="mt-tdep.o"
411 ;;
412
413 nds32*-*-elf)
414 # Target: AndesTech NDS32 core
415 gdb_target_obs="nds32-tdep.o"
416 ;;
417
418 nios2*-*-linux*)
419 # Target: Altera Nios II running Linux
420 gdb_target_obs="nios2-tdep.o nios2-linux-tdep.o solib-svr4.o \
421 symfile-mem.o glibc-tdep.o linux-tdep.o"
422 ;;
423
424 nios2*-*-*)
425 # Target: Altera Nios II bare-metal
426 gdb_target_obs="nios2-tdep.o"
427 ;;
428
429 powerpc*-*-freebsd*)
430 # Target: FreeBSD/powerpc
431 gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppc64-tdep.o \
432 ppc-fbsd-tdep.o fbsd-tdep.o solib-svr4.o \
433 ravenscar-thread.o ppc-ravenscar-thread.o"
434 ;;
435
436 powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu)
437 # Target: NetBSD/powerpc
438 gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppc-nbsd-tdep.o \
439 solib-svr4.o \
440 ravenscar-thread.o ppc-ravenscar-thread.o"
441 gdb_sim=../sim/ppc/libsim.a
442 ;;
443 powerpc-*-openbsd*)
444 # Target: OpenBSD/powerpc
445 gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppc-obsd-tdep.o \
446 solib-svr4.o \
447 ravenscar-thread.o ppc-ravenscar-thread.o"
448 ;;
449 powerpc-*-aix* | rs6000-*-* | powerpc64-*-aix*)
450 # Target: PowerPC running AIX
451 gdb_target_obs="rs6000-tdep.o rs6000-aix-tdep.o xcoffread.o \
452 ppc-sysv-tdep.o solib-aix.o \
453 ravenscar-thread.o ppc-ravenscar-thread.o"
454 ;;
455 powerpc*-*-linux*)
456 # Target: PowerPC running Linux
457 gdb_target_obs="rs6000-tdep.o ppc-linux-tdep.o ppc-sysv-tdep.o \
458 ppc64-tdep.o solib-svr4.o solib-spu.o \
459 spu-multiarch.o \
460 glibc-tdep.o symfile-mem.o linux-tdep.o \
461 ravenscar-thread.o ppc-ravenscar-thread.o \
462 linux-record.o "
463 gdb_sim=../sim/ppc/libsim.a
464 build_gdbserver=yes
465 ;;
466 powerpc-*-lynx*178)
467 # Target: PowerPC running Lynx178.
468 gdb_target_obs="rs6000-tdep.o rs6000-lynx178-tdep.o \
469 xcoffread.o ppc-sysv-tdep.o \
470 ravenscar-thread.o ppc-ravenscar-thread.o"
471 ;;
472 powerpc*-*-*)
473 # Target: PowerPC running eabi
474 gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o solib-svr4.o \
475 ravenscar-thread.o ppc-ravenscar-thread.o"
476 gdb_sim=../sim/ppc/libsim.a
477 ;;
478
479 s390*-*-linux*)
480 # Target: S390 running Linux
481 gdb_target_obs="s390-linux-tdep.o solib-svr4.o linux-tdep.o \
482 linux-record.o"
483 build_gdbserver=yes
484 ;;
485
486 rl78-*-elf)
487 # Target: Renesas rl78
488 gdb_target_obs="rl78-tdep.o"
489 gdb_sim=../sim/rl78/libsim.a
490 ;;
491
492 rx-*-elf)
493 # Target: Renesas RX
494 gdb_target_obs="rx-tdep.o"
495 gdb_sim=../sim/rx/libsim.a
496 ;;
497
498 score-*-*)
499 # Target: S+core embedded system
500 gdb_target_obs="score-tdep.o"
501 build_gdbserver=yes
502 ;;
503
504 sh*-*-linux*)
505 # Target: GNU/Linux Super-H
506 gdb_target_obs="sh-tdep.o sh64-tdep.o sh-linux-tdep.o \
507 solib-svr4.o symfile-mem.o \
508 glibc-tdep.o linux-tdep.o"
509 gdb_sim=../sim/sh/libsim.a
510 build_gdbserver=yes
511 ;;
512 sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu)
513 # Target: NetBSD/sh
514 gdb_target_obs="sh-tdep.o sh-nbsd-tdep.o solib-svr4.o"
515 gdb_sim=../sim/sh/libsim.a
516 ;;
517 sh*-*-openbsd*)
518 # Target: OpenBSD/sh
519 gdb_target_obs="sh-tdep.o sh64-tdep.o sh-nbsd-tdep.o solib-svr4.o"
520 ;;
521 sh64-*-elf*)
522 # Target: Renesas/Super-H 64 bit with simulator
523 gdb_target_obs="sh-tdep.o sh64-tdep.o"
524 gdb_sim=../sim/sh64/libsim.a
525 ;;
526 sh*)
527 # Target: Embedded Renesas Super-H processor
528 gdb_target_obs="sh-tdep.o sh64-tdep.o"
529 gdb_sim=../sim/sh/libsim.a
530 ;;
531
532 sparc-*-linux*)
533 # Target: GNU/Linux SPARC
534 gdb_target_obs="sparc-tdep.o sparc-sol2-tdep.o sol2-tdep.o \
535 sparc-linux-tdep.o solib-svr4.o symfile-mem.o \
536 linux-tdep.o \
537 ravenscar-thread.o sparc-ravenscar-thread.o"
538 if test "x$enable_64_bit_bfd" = "xyes"; then
539 # Target: GNU/Linux UltraSPARC
540 gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o \
541 sparc64-linux-tdep.o ${gdb_target_obs}"
542 fi
543 build_gdbserver=yes
544 ;;
545 sparc64-*-linux*)
546 # Target: GNU/Linux UltraSPARC
547 gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o sol2-tdep.o \
548 sparc64-linux-tdep.o sparc-tdep.o sparc-sol2-tdep.o \
549 sparc-linux-tdep.o solib-svr4.o linux-tdep.o \
550 ravenscar-thread.o sparc-ravenscar-thread.o"
551 build_gdbserver=yes
552 ;;
553 sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu)
554 # Target: FreeBSD/sparc64
555 gdb_target_obs="sparc-tdep.o sparc64-tdep.o sparc64-fbsd-tdep.o \
556 fbsd-tdep.o solib-svr4.o \
557 ravenscar-thread.o sparc-ravenscar-thread.o"
558 ;;
559 sparc-*-netbsd* | sparc-*-knetbsd*-gnu)
560 # Target: NetBSD/sparc
561 gdb_target_obs="sparc-tdep.o sparc-nbsd-tdep.o nbsd-tdep.o \
562 solib-svr4.o \
563 ravenscar-thread.o sparc-ravenscar-thread.o"
564 ;;
565 sparc64-*-netbsd* | sparc64-*-knetbsd*-gnu)
566 # Target: NetBSD/sparc64
567 gdb_target_obs="sparc64-tdep.o sparc64-nbsd-tdep.o sparc-tdep.o \
568 sparc-nbsd-tdep.o nbsd-tdep.o solib-svr4.o \
569 ravenscar-thread.o sparc-ravenscar-thread.o"
570 ;;
571 sparc-*-openbsd*)
572 # Target: OpenBSD/sparc
573 gdb_target_obs="sparc-tdep.o sparc-nbsd-tdep.o sparc-obsd-tdep.o \
574 nbsd-tdep.o obsd-tdep.o bsd-uthread.o solib-svr4.o \
575 ravenscar-thread.o sparc-ravenscar-thread.o"
576 ;;
577 sparc64-*-openbsd*)
578 # Target: OpenBSD/sparc64
579 gdb_target_obs="sparc64-tdep.o sparc64-nbsd-tdep.o sparc64-obsd-tdep.o \
580 sparc-tdep.o sparc-nbsd-tdep.o sparc-obsd-tdep.o \
581 nbsd-tdep.o obsd-tdep.o bsd-uthread.o solib-svr4.o \
582 ravenscar-thread.o sparc-ravenscar-thread.o"
583 ;;
584 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
585 # Target: Solaris SPARC
586 gdb_target_obs="sparc-tdep.o sparc-sol2-tdep.o sol2-tdep.o \
587 solib-svr4.o \
588 ravenscar-thread.o sparc-ravenscar-thread.o"
589 ;;
590 sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*)
591 # Target: Solaris UltraSPARC
592 gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o sparc-tdep.o \
593 sparc-sol2-tdep.o sol2-tdep.o solib-svr4.o \
594 ravenscar-thread.o sparc-ravenscar-thread.o"
595 ;;
596 sparc-*-*)
597 # Target: SPARC
598 gdb_target_obs="sparc-tdep.o \
599 ravenscar-thread.o sparc-ravenscar-thread.o"
600 gdb_sim=../sim/erc32/libsim.a
601 ;;
602 sparc64-*-*)
603 # Target: UltraSPARC
604 gdb_target_obs="sparc-tdep.o sparc64-tdep.o \
605 ravenscar-thread.o sparc-ravenscar-thread.o"
606 ;;
607
608 spu*-*-*)
609 # Target: Cell BE SPU
610 gdb_target_obs="spu-tdep.o"
611 build_gdbserver=yes
612 ;;
613
614 tic6x-*-*linux)
615 # Target: GNU/Linux TI C6x
616 gdb_target_obs="tic6x-tdep.o tic6x-linux-tdep.o solib-dsbt.o \
617 glibc-tdep.o linux-tdep.o"
618 ;;
619
620 tic6x-*-*)
621 # Target: TI C6X
622 gdb_target_obs="tic6x-tdep.o"
623 ;;
624
625 tilegx-*-linux*)
626 # Target: TILE-Gx
627 gdb_target_obs="tilegx-tdep.o tilegx-linux-tdep.o solib-svr4.o \
628 symfile-mem.o glibc-tdep.o linux-tdep.o"
629 build_gdbserver=yes
630 ;;
631
632 xstormy16-*-*)
633 # Target: Sanyo Xstormy16a processor
634 gdb_target_obs="xstormy16-tdep.o"
635 # No simulator libraries are needed -- target uses SID.
636 ;;
637
638 ft32-*-elf)
639 gdb_target_obs="ft32-tdep.o"
640 gdb_sim=../sim/ft32/libsim.a
641 ;;
642
643 v850*-*-elf | v850*-*-rtems*)
644 # Target: NEC V850 processor
645 gdb_target_obs="v850-tdep.o"
646 gdb_sim=../sim/v850/libsim.a
647 ;;
648
649 vax-*-netbsd* | vax-*-knetbsd*-gnu)
650 # Target: NetBSD/vax
651 gdb_target_obs="vax-tdep.o solib-svr4.o"
652 ;;
653 vax-*-openbsd*)
654 # Target: OpenBSD/vax
655 gdb_target_obs="vax-tdep.o"
656 ;;
657 vax-*-*)
658 # Target: VAX
659 gdb_target_obs="vax-tdep.o"
660 ;;
661
662 x86_64-*-darwin*)
663 # Target: Darwin/x86-64
664 gdb_target_obs="amd64-tdep.o i386-tdep.o i387-tdep.o \
665 i386-darwin-tdep.o amd64-darwin-tdep.o \
666 solib-darwin.o"
667 ;;
668
669 x86_64-*-dicos*)
670 # Target: DICOS/x86-64
671 gdb_target_obs="amd64-tdep.o i386-tdep.o i387-tdep.o \
672 dicos-tdep.o i386-dicos-tdep.o amd64-dicos-tdep.o"
673 ;;
674 x86_64-*-elf*)
675 gdb_target_obs="amd64-tdep.o i386-tdep.o i387-tdep.o"
676 ;;
677 x86_64-*-linux*)
678 # Target: GNU/Linux x86-64
679 gdb_target_obs="amd64-tdep.o amd64-linux-tdep.o i386-tdep.o \
680 i387-tdep.o i386-linux-tdep.o glibc-tdep.o \
681 solib-svr4.o symfile-mem.o linux-tdep.o linux-record.o"
682 build_gdbserver=yes
683 ;;
684 x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
685 # Target: FreeBSD/amd64
686 gdb_target_obs="amd64-tdep.o amd64-fbsd-tdep.o i386-tdep.o \
687 i387-tdep.o i386-bsd-tdep.o i386-fbsd-tdep.o \
688 bsd-uthread.o fbsd-tdep.o solib-svr4.o"
689 ;;
690 x86_64-*-mingw* | x86_64-*-cygwin*)
691 # Target: MingW/amd64
692 gdb_target_obs="amd64-tdep.o amd64-windows-tdep.o \
693 i386-tdep.o i386-cygwin-tdep.o i387-tdep.o \
694 windows-tdep.o"
695 build_gdbserver=yes
696 ;;
697 x86_64-*-netbsd* | x86_64-*-knetbsd*-gnu)
698 # Target: NetBSD/amd64
699 gdb_target_obs="amd64-tdep.o amd64-nbsd-tdep.o i386-tdep.o i387-tdep.o \
700 nbsd-tdep.o solib-svr4.o"
701 ;;
702 x86_64-*-openbsd*)
703 # Target: OpenBSD/amd64
704 gdb_target_obs="amd64-tdep.o amd64-obsd-tdep.o i386-tdep.o \
705 i387-tdep.o i386-bsd-tdep.o i386-obsd-tdep.o \
706 obsd-tdep.o bsd-uthread.o solib-svr4.o"
707 ;;
708 x86_64-*-rtems*)
709 gdb_target_obs="amd64-tdep.o i386-tdep.o i387-tdep.o i386-bsd-tdep.o"
710 ;;
711 xtensa*-*-linux*) gdb_target=linux
712 # Target: GNU/Linux Xtensa
713 gdb_target_obs="xtensa-tdep.o xtensa-config.o xtensa-linux-tdep.o \
714 solib-svr4.o symfile-mem.o linux-tdep.o"
715 build_gdbserver=yes
716 ;;
717 xtensa*)
718 # Target: Tensilica Xtensa processors
719 gdb_target_obs="xtensa-tdep.o xtensa-config.o solib-svr4.o"
720 ;;
721
722 esac
723
724 # map target onto default OS ABI
725
726 case "${targ}" in
727 *-*-freebsd* | *-*-kfreebsd*-gnu)
728 gdb_osabi=GDB_OSABI_FREEBSD ;;
729 *-*-linux* | *-*-uclinux*)
730 gdb_osabi=GDB_OSABI_LINUX ;;
731 *-*-nto*) gdb_osabi=GDB_OSABI_QNXNTO ;;
732 m68*-*-openbsd* | m88*-*-openbsd* | vax-*-openbsd*) ;;
733 *-*-openbsd*) gdb_osabi=GDB_OSABI_OPENBSD ;;
734 *-*-solaris*) gdb_osabi=GDB_OSABI_SOLARIS ;;
735 *-*-*-gnu*) ;; # prevent non-GNU kernels to match the Hurd rule below
736 *-*-gnu*) gdb_osabi=GDB_OSABI_HURD ;;
737 *-*-mingw32ce*) gdb_osabi=GDB_OSABI_WINCE ;;
738 *-*-mingw* | *-*-cygwin*)
739 gdb_osabi=GDB_OSABI_CYGWIN ;;
740 *-*-dicos*) gdb_osabi=GDB_OSABI_DICOS ;;
741 *-*-symbianelf*)
742 gdb_osabi=GDB_OSABI_SYMBIAN ;;
743 powerpc-*-aix* | rs6000-*-* | powerpc64-*-aix*)
744 gdb_osabi=GDB_OSABI_AIX ;;
745 esac
746
747 # Check whether this target supports gcore.
748 # Such target has to call set_gdbarch_find_memory_regions.
749 gdb_have_gcore=false
750 for t in x ${gdb_target_obs}; do
751 if test "$t" = linux-tdep.o; then
752 gdb_have_gcore=true
753 fi
754 done
This page took 0.054321 seconds and 4 git commands to generate.