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