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