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