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