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