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