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