gdb/
[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
10 # NOTE: Every file added to a gdb_target_obs variable for any target here
11 #       must also be added to either ALL_TARGET_OBS or ALL_64_TARGET_OBS
12 #       in Makefile.in!
13
14 case $targ in
15  d10v-*-* | \
16  hppa*-*-hiux* | \
17  i[34567]86-ncr-* | \
18  m68*-cisco*-* | \
19  m68*-tandem-* | \
20  m68*-*-os68k* | \
21  mips*-*-pe | \
22  rs6000-*-lynxos* | \
23  sh*-*-pe | \
24  null)
25     echo "*** Configuration $targ is obsolete." >&2
26     echo "*** Support has been REMOVED." >&2
27     exit 1
28     ;;
29 esac
30
31 # map target info into gdb names.
32
33 case "${targ}" in
34 aarch64*-*-elf)
35         # Target: AArch64 embedded system
36         gdb_target_obs="aarch64-tdep.o aarch64-newlib-tdep.o"
37         ;;
38
39 aarch64*-*-linux*)
40         # Target: AArch64 linux
41         gdb_target_obs="aarch64-tdep.o aarch64-linux-tdep.o \
42                         glibc-tdep.o linux-tdep.o solib-svr4.o \
43                         symfile-mem.o"
44         build_gdbserver=yes
45         ;;
46
47 alpha*-*-osf*)
48         # Target: Little-endian Alpha running OSF/1
49         gdb_target_obs="alpha-tdep.o alpha-osf1-tdep.o alpha-mdebug-tdep.o"
50         ;;
51 alpha*-*-linux*)
52         # Target: Little-endian Alpha running Linux
53         gdb_target_obs="alpha-tdep.o alpha-mdebug-tdep.o alpha-linux-tdep.o \
54                         linux-tdep.o solib-svr4.o"
55         ;;
56 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
57         # Target: FreeBSD/alpha
58         gdb_target_obs="alpha-tdep.o alpha-mdebug-tdep.o alphabsd-tdep.o \
59                         alphafbsd-tdep.o solib-svr4.o"
60         ;;
61 alpha*-*-netbsd* | alpha*-*-knetbsd*-gnu)
62         # Target: NetBSD/alpha
63         gdb_target_obs="alpha-tdep.o alpha-mdebug-tdep.o alphabsd-tdep.o \
64                         alphanbsd-tdep.o nbsd-tdep.o solib-svr4.o"
65         ;;
66 alpha*-*-openbsd*)
67         # Target: OpenBSD/alpha
68         gdb_target_obs="alpha-tdep.o alpha-mdebug-tdep.o alphabsd-tdep.o \
69                         alphanbsd-tdep.o alphaobsd-tdep.o nbsd-tdep.o \
70                         obsd-tdep.o solib-svr4.o"
71         ;;
72 alpha*-*-*)
73         # Target: Alpha
74         gdb_target_obs="alpha-tdep.o"
75         ;;
76
77 am33_2.0*-*-linux*)
78         # Target: Matsushita mn10300 (AM33) running Linux
79         gdb_target_obs="mn10300-tdep.o mn10300-linux-tdep.o linux-tdep.o \
80                         solib-svr4.o"
81         ;;
82
83 arm*-wince-pe | arm*-*-mingw32ce*)
84         # Target: ARM based machine running Windows CE (win32)
85         gdb_target_obs="arm-tdep.o arm-wince-tdep.o"
86         build_gdbserver=yes
87         ;;
88 arm*-*-linux*)
89         # Target: ARM based machine running GNU/Linux
90         gdb_target_obs="arm-tdep.o arm-linux-tdep.o glibc-tdep.o \
91                         solib-svr4.o symfile-mem.o linux-tdep.o"
92         build_gdbserver=yes
93         ;;
94 arm*-*-netbsd* | arm*-*-knetbsd*-gnu)
95         # Target: NetBSD/arm
96         gdb_target_obs="arm-tdep.o armnbsd-tdep.o solib-svr4.o"
97         ;;
98 arm*-*-openbsd*)
99         # Target: OpenBSD/arm
100         gdb_target_obs="arm-tdep.o armbsd-tdep.o armobsd-tdep.o obsd-tdep.o \
101                         solib-svr4.o"
102         ;;
103 arm*-*-symbianelf*)
104         # Target: SymbianOS/arm
105         gdb_target_obs="arm-tdep.o arm-symbian-tdep.o"
106         ;;
107 arm*-*-*)
108         # Target: ARM embedded system
109         gdb_target_obs="arm-tdep.o"
110         gdb_sim=../sim/arm/libsim.a
111         ;;
112
113 avr-*-*)
114         # Target: AVR
115         gdb_target_obs="avr-tdep.o"
116         gdb_sim=../sim/avr/libsim.a
117         ;;
118
119 bfin-*-*linux*)
120         # Target: Blackfin Linux
121         gdb_target_obs="bfin-tdep.o bfin-linux-tdep.o linux-tdep.o"
122         gdb_sim=../sim/bfin/libsim.a
123         build_gdbserver=yes
124         ;;
125 bfin-*-*)
126         # Target: Blackfin processor
127         gdb_target_obs="bfin-tdep.o"
128         gdb_sim=../sim/bfin/libsim.a
129         ;;
130
131 cris*)
132         # Target: CRIS
133         gdb_target_obs="cris-tdep.o solib-svr4.o"
134         ;;
135
136 frv-*-*)
137         # Target: Fujitsu FRV processor
138         gdb_target_obs="frv-tdep.o frv-linux-tdep.o linux-tdep.o solib-frv.o"
139         gdb_sim=../sim/frv/libsim.a
140         ;;
141
142 moxie-*-elf | moxie-*-rtems*)
143         gdb_target_obs="moxie-tdep.o"
144         gdb_sim=../sim/moxie/libsim.a
145         ;;
146
147 h8300-*-*)
148         # Target: H8300 with HMS monitor and H8 simulator
149         gdb_target_obs="h8300-tdep.o monitor.o dsrec.o"
150         gdb_sim=../sim/h8300/libsim.a
151         ;;
152
153 hppa*-*-hpux*)
154         # Target: HP PA-RISC running hpux
155         gdb_target_obs="hppa-tdep.o hppa-hpux-tdep.o solib-som.o solib-pa64.o"
156         ;;
157 hppa*-*-linux*)
158         # Target: HP PA-RISC running Linux
159         gdb_target_obs="hppa-tdep.o hppa-linux-tdep.o glibc-tdep.o \
160                         linux-tdep.o solib-svr4.o symfile-mem.o"
161         ;;
162 hppa*-*-netbsd*)
163         # Target: NetBSD/hppa
164         gdb_target_obs="hppa-tdep.o hppabsd-tdep.o hppanbsd-tdep.o solib-svr4.o"
165         ;;
166 hppa*-*-openbsd*)
167         # Target: OpenBSD/hppa
168         gdb_target_obs="hppa-tdep.o hppabsd-tdep.o hppaobsd-tdep.o solib-svr4.o"
169         ;;
170 hppa*-*-*)
171         # Target: HP PA-RISC
172         gdb_target_obs="hppa-tdep.o"
173         ;;
174
175 i[34567]86-*-darwin*)
176         # Target: Darwin/i386
177         gdb_target_obs="i386-tdep.o i387-tdep.o \
178                         i386-darwin-tdep.o solib-darwin.o"
179         if test "x$enable_64_bit_bfd" = "xyes"; then
180             # Target: GNU/Linux x86-64
181             gdb_target_obs="amd64-tdep.o amd64-darwin-tdep.o ${gdb_target_obs}"
182         fi
183         ;;
184 i[34567]86-*-dicos*)
185         # Target: DICOS/i386
186         gdb_target_obs="i386-tdep.o i387-tdep.o dicos-tdep.o i386-dicos-tdep.o"
187         ;;
188 i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
189         # Target: FreeBSD/i386
190         gdb_target_obs="i386-tdep.o i387-tdep.o i386bsd-tdep.o i386fbsd-tdep.o \
191                         bsd-uthread.o solib-svr4.o"
192         ;;
193 i[34567]86-*-netbsd* | i[34567]86-*-knetbsd*-gnu)
194         # Target: NetBSD/i386
195         gdb_target_obs="i386-tdep.o i387-tdep.o i386bsd-tdep.o i386nbsd-tdep.o \
196                         nbsd-tdep.o solib-svr4.o"
197         ;;
198 i[34567]86-*-openbsd*)
199         # Target: OpenBSD/i386
200         gdb_target_obs="i386-tdep.o i387-tdep.o i386bsd-tdep.o i386obsd-tdep.o \
201                         bsd-uthread.o solib-svr4.o"
202         ;;
203 i[34567]86-*-nto*)
204         # Target: Intel 386 running qnx6.
205         gdb_target_obs="i386-tdep.o i387-tdep.o solib-svr4.o \
206                         i386-nto-tdep.o nto-tdep.o"
207         build_gdbserver=yes
208         ;;
209 i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
210         # Target: Solaris x86_64
211         gdb_target_obs="i386-tdep.o i387-tdep.o amd64-tdep.o amd64-sol2-tdep.o \
212                         i386-sol2-tdep.o sol2-tdep.o solib-svr4.o"
213         ;;
214 i[34567]86-*-solaris*)
215         # Target: Solaris x86
216         gdb_target_obs="i386-tdep.o i387-tdep.o i386-sol2-tdep.o sol2-tdep.o \
217                         solib-svr4.o"
218         ;;
219 i[34567]86-*-linux*)
220         # Target: Intel 386 running GNU/Linux
221         gdb_target_obs="i386-tdep.o i386-linux-tdep.o glibc-tdep.o i387-tdep.o \
222                         solib-svr4.o symfile-mem.o \
223                         linux-tdep.o linux-record.o"
224         if test "x$enable_64_bit_bfd" = "xyes"; then
225             # Target: GNU/Linux x86-64
226             gdb_target_obs="amd64-tdep.o amd64-linux-tdep.o ${gdb_target_obs}"
227         fi
228         build_gdbserver=yes
229         ;;
230 i[34567]86-*-gnu*)
231         # Target: Intel 386 running the GNU Hurd
232         gdb_target_obs="i386-tdep.o i387-tdep.o i386gnu-tdep.o solib-svr4.o"
233         ;;
234 i[34567]86-*-cygwin*)
235         # Target: Intel 386 running win32
236         gdb_target_obs="i386-tdep.o i386-cygwin-tdep.o i387-tdep.o \
237                         windows-tdep.o"
238         build_gdbserver=yes
239         ;;
240 i[34567]86-*-mingw32*)
241         # Target: Intel 386 running win32
242         gdb_target_obs="i386-tdep.o i386-cygwin-tdep.o i387-tdep.o \
243                         windows-tdep.o"
244         build_gdbserver=yes
245         ;;
246 i[34567]86-*-*)
247         # Target: i386
248         gdb_target_obs="i386-tdep.o i387-tdep.o"
249         ;;
250
251 ia64-*-hpux*)
252         # Target: Intel IA-64 running HP-UX
253         gdb_target_obs="ia64-tdep.o ia64-hpux-tdep.o"
254         ;;
255 ia64-*-linux*)
256         # Target: Intel IA-64 running GNU/Linux
257         gdb_target_obs="ia64-tdep.o ia64-linux-tdep.o linux-tdep.o \
258                         solib-svr4.o symfile-mem.o"
259         build_gdbserver=yes
260         ;;
261 ia64-*-*vms*)
262         # Target: Intel IA-64 running OpenVMS
263         gdb_target_obs="ia64-tdep.o ia64-vms-tdep.o"
264         ;;
265 ia64*-*-*)
266         # Target: Intel IA-64
267         gdb_target_obs="ia64-tdep.o"
268         ;;
269
270 iq2000-*-*)
271         gdb_target_obs="iq2000-tdep.o"
272         gdb_sim=../sim/iq2000/libsim.a
273         ;;
274
275 lm32-*-*)               
276         gdb_target_obs="lm32-tdep.o" 
277         gdb_sim=../sim/lm32/libsim.a
278         ;;
279
280 m32c-*-*)
281         # Target: Renesas M32C family
282         gdb_target_obs="m32c-tdep.o"
283         # There may also be a SID / CGEN simulator for this,
284         # but we do have DJ Delorie's mini-sim.
285         gdb_sim=../sim/m32c/libsim.a
286         ;;
287
288 m32r*-*-linux*)
289         # Target: Renesas M32R running GNU/Linux
290         gdb_target_obs="m32r-tdep.o m32r-linux-tdep.o remote-m32r-sdi.o \
291                         glibc-tdep.o solib-svr4.o symfile-mem.o \
292                         linux-tdep.o"
293         gdb_sim=../sim/m32r/libsim.a
294         build_gdbserver=yes
295         ;;
296 m32r*-*-*)
297         # Target: Renesas m32r processor
298         gdb_target_obs="m32r-tdep.o monitor.o m32r-rom.o dsrec.o \
299                         remote-m32r-sdi.o"
300         gdb_sim=../sim/m32r/libsim.a
301         ;;
302
303 m68hc11*-*-*|m6811*-*-*)
304         # Target: Motorola 68HC11 processor
305         gdb_target_obs="m68hc11-tdep.o"
306         gdb_sim=../sim/m68hc11/libsim.a
307         ;;
308
309 m68*-*-aout* | m68*-*-coff* | m68*-*-elf* | m68*-*-rtems* | m68*-*-uclinux* | \
310 fido-*-elf*)
311         # Target: Motorola m68k embedded (e.g. bug monitors)
312         gdb_target_obs="m68k-tdep.o monitor.o dbug-rom.o dsrec.o"
313         ;;
314 m68*-*-linux*)
315         # Target: Motorola m68k with a.out and ELF
316         gdb_target_obs="m68k-tdep.o m68klinux-tdep.o solib-svr4.o \
317                         linux-tdep.o glibc-tdep.o symfile-mem.o"
318         build_gdbserver=yes
319         ;;
320 m68*-*-netbsd* | m68*-*-knetbsd*-gnu)
321         # Target: NetBSD/m68k
322         gdb_target_obs="m68k-tdep.o m68kbsd-tdep.o solib-svr4.o"
323         ;;
324 m68*-*-openbsd*)
325         # Target: OpenBSD/m68k
326         gdb_target_obs="m68k-tdep.o m68kbsd-tdep.o solib-svr4.o"
327         ;;
328
329 m88*-*-openbsd*)
330         # Target: OpenBSD/m88k
331         gdb_target_obs="m88k-tdep.o"
332         ;;
333
334 mep-*-*)
335         # Target: Toshiba Media Processor (MEP)
336         gdb_target_obs="mep-tdep.o"
337         # No sim needed. Target uses SID.
338         ;;
339
340 microblaze*-linux-*|microblaze*-*-linux*)
341         # Target: Xilinx MicroBlaze running Linux
342         gdb_target_obs="microblaze-tdep.o microblaze-linux-tdep.o microblaze-rom.o \
343                         monitor.o dsrec.o solib-svr4.o symfile-mem.o linux-tdep.o"
344         gdb_sim=../sim/microblaze/libsim.a
345         ;;
346 microblaze*-*-*)
347         # Target: Xilinx MicroBlaze running standalone
348         gdb_target_obs="microblaze-tdep.o microblaze-rom.o monitor.o dsrec.o"
349         gdb_sim=../sim/microblaze/libsim.a
350         ;;
351
352 mips*-sgi-irix5*)
353         # Target: MIPS SGI running Irix 5
354         gdb_target_obs="mips-tdep.o mips-irix-tdep.o solib-irix.o"
355         ;;
356 mips*-sgi-irix6*)
357         # Target: MIPS SGI running Irix 6.x
358         gdb_target_obs="mips-tdep.o mips-irix-tdep.o solib-irix.o"
359         ;;
360 mips*-*-linux*)
361         # Target: Linux/MIPS
362         gdb_target_obs="mips-tdep.o mips-linux-tdep.o glibc-tdep.o \
363                         solib-svr4.o symfile-mem.o linux-tdep.o"
364         gdb_sim=../sim/mips/libsim.a
365         build_gdbserver=yes
366         ;;
367 mips*-*-netbsd* | mips*-*-knetbsd*-gnu)
368         # Target: MIPS running NetBSD
369         gdb_target_obs="mips-tdep.o mipsnbsd-tdep.o solib-svr4.o nbsd-tdep.o"
370         gdb_sim=../sim/mips/libsim.a
371         ;;
372 mips64*-*-openbsd*)
373         # Target: OpenBSD/mips64
374         gdb_target_obs="mips-tdep.o mips64obsd-tdep.o solib-svr4.o"
375         ;;
376 mips*-*-elf)
377         # Target: MIPS ELF
378         gdb_target_obs="mips-tdep.o remote-mips.o"
379         gdb_sim=../sim/mips/libsim.a
380         ;;
381 mips*-*-*)
382         # Target: MIPS
383         gdb_target_obs="mips-tdep.o"
384         gdb_sim=../sim/mips/libsim.a
385         ;;
386
387 mn10300-*-*)
388         # Target: Matsushita mn10300
389         gdb_target_obs="mn10300-tdep.o"
390         gdb_sim=../sim/mn10300/libsim.a
391         ;;
392
393 mt-*-*)
394         # Target: Morpho Technologies ms1 processor
395         gdb_target_obs="mt-tdep.o"
396         ;;
397
398 powerpc*-*-freebsd*)
399         # Target: FreeBSD/powerpc
400         gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppc64-tdep.o \
401                         ppcfbsd-tdep.o solib-svr4.o \
402                         ravenscar-thread.o ppc-ravenscar-thread.o"
403         ;;
404
405 powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu)
406         # Target: NetBSD/powerpc
407         gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppcnbsd-tdep.o \
408                         solib-svr4.o \
409                         ravenscar-thread.o ppc-ravenscar-thread.o"
410         gdb_sim=../sim/ppc/libsim.a
411         ;;
412 powerpc-*-openbsd*)
413         # Target: OpenBSD/powerpc
414         gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppcobsd-tdep.o \
415                         solib-svr4.o \
416                         ravenscar-thread.o ppc-ravenscar-thread.o"
417         ;;
418 powerpc-*-aix* | rs6000-*-*)
419         # Target: PowerPC running AIX
420         gdb_target_obs="rs6000-tdep.o rs6000-aix-tdep.o xcoffread.o \
421                         ppc-sysv-tdep.o solib-svr4.o \
422                         ravenscar-thread.o ppc-ravenscar-thread.o"
423         ;;
424 powerpc-*-linux* | powerpc64-*-linux*)
425         # Target: PowerPC running Linux
426         gdb_target_obs="rs6000-tdep.o ppc-linux-tdep.o ppc-sysv-tdep.o \
427                         ppc64-tdep.o solib-svr4.o solib-spu.o \
428                         spu-multiarch.o \
429                         glibc-tdep.o symfile-mem.o linux-tdep.o \
430                         ravenscar-thread.o ppc-ravenscar-thread.o"
431         gdb_sim=../sim/ppc/libsim.a
432         build_gdbserver=yes
433         ;;
434 powerpc-*-lynx*178)
435         # Target: PowerPC running Lynx178.
436         gdb_target_obs="rs6000-tdep.o rs6000-lynx178-tdep.o \
437                         xcoffread.o monitor.o dsrec.o ppc-sysv-tdep.o \
438                         ravenscar-thread.o ppc-ravenscar-thread.o"
439         ;;
440 powerpc*-*-*)
441         # Target: PowerPC running eabi
442         gdb_target_obs="rs6000-tdep.o monitor.o dsrec.o ppcbug-rom.o \
443                         dink32-rom.o ppc-sysv-tdep.o solib-svr4.o \
444                         ravenscar-thread.o ppc-ravenscar-thread.o"
445         if test -f ../sim/ppc/Makefile; then
446           gdb_sim=../sim/ppc/libsim.a
447         fi
448         ;;
449
450 s390*-*-*)
451         # Target: S390 running Linux
452         gdb_target_obs="s390-tdep.o solib-svr4.o linux-tdep.o"
453         build_gdbserver=yes
454         ;;
455
456 rl78-*-elf)
457         # Target: Renesas rl78
458         gdb_target_obs="rl78-tdep.o"
459         gdb_sim=../sim/rl78/libsim.a
460         ;;
461
462 rx-*-elf)
463         # Target: Renesas RX
464         gdb_target_obs="rx-tdep.o"
465         gdb_sim=../sim/rx/libsim.a
466         ;;
467
468 score-*-*)
469         # Target: S+core embedded system
470         gdb_target_obs="score-tdep.o"
471         if test -f ../sim/score/Makefile; then
472           gdb_sim=../sim/score/libsim.a
473         fi
474         build_gdbserver=yes
475         ;;
476
477 sh*-*-linux*)
478         # Target: GNU/Linux Super-H
479         gdb_target_obs="sh-tdep.o sh64-tdep.o sh-linux-tdep.o monitor.o \
480                         dsrec.o solib-svr4.o symfile-mem.o \
481                         glibc-tdep.o linux-tdep.o"
482         gdb_sim=../sim/sh/libsim.a
483         build_gdbserver=yes
484         ;;
485 sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu)
486         # Target: NetBSD/sh
487         gdb_target_obs="sh-tdep.o shnbsd-tdep.o solib-svr4.o"
488         gdb_sim=../sim/sh/libsim.a
489         ;;
490 sh*-*-openbsd*)
491         # Target: OpenBSD/sh
492         gdb_target_obs="sh-tdep.o sh64-tdep.o shnbsd-tdep.o solib-svr4.o"
493         ;;
494 sh64-*-elf*)
495         # Target: Renesas/Super-H 64 bit with simulator
496         gdb_target_obs="sh-tdep.o sh64-tdep.o"
497         gdb_sim=../sim/sh64/libsim.a
498         ;;
499 sh*)
500         # Target: Embedded Renesas Super-H with ICE and simulator
501         gdb_target_obs="sh-tdep.o sh64-tdep.o monitor.o dsrec.o"
502         gdb_sim=../sim/sh/libsim.a
503         ;;
504
505 sparc-*-linux*)
506         # Target: GNU/Linux SPARC
507         gdb_target_obs="sparc-tdep.o sparc-sol2-tdep.o sol2-tdep.o \
508                         sparc-linux-tdep.o solib-svr4.o symfile-mem.o \
509                         linux-tdep.o \
510                         ravenscar-thread.o sparc-ravenscar-thread.o"
511         if test "x$enable_64_bit_bfd" = "xyes"; then
512             # Target: GNU/Linux UltraSPARC
513             gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o \
514                             sparc64-linux-tdep.o ${gdb_target_obs}"
515         fi
516         build_gdbserver=yes
517         ;;
518 sparc64-*-linux*)
519         # Target: GNU/Linux UltraSPARC
520         gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o sol2-tdep.o \
521                         sparc64-linux-tdep.o sparc-tdep.o sparc-sol2-tdep.o \
522                         sparc-linux-tdep.o solib-svr4.o linux-tdep.o \
523                         ravenscar-thread.o sparc-ravenscar-thread.o"
524         build_gdbserver=yes
525         ;;
526 sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu)
527         # Target: FreeBSD/sparc64
528         gdb_target_obs="sparc-tdep.o sparc64-tdep.o sparc64fbsd-tdep.o \
529                         solib-svr4.o \
530                         ravenscar-thread.o sparc-ravenscar-thread.o"
531         ;;
532 sparc-*-netbsd* | sparc-*-knetbsd*-gnu)
533         # Target: NetBSD/sparc
534         gdb_target_obs="sparc-tdep.o sparcnbsd-tdep.o nbsd-tdep.o \
535                         solib-svr4.o \
536                         ravenscar-thread.o sparc-ravenscar-thread.o"
537         ;;
538 sparc64-*-netbsd* | sparc64-*-knetbsd*-gnu)
539         # Target: NetBSD/sparc64
540         gdb_target_obs="sparc64-tdep.o sparc64nbsd-tdep.o sparc-tdep.o \
541                         sparcnbsd-tdep.o nbsd-tdep.o solib-svr4.o \
542                         ravenscar-thread.o sparc-ravenscar-thread.o"
543         ;;
544 sparc-*-openbsd*)
545         # Target: OpenBSD/sparc
546         gdb_target_obs="sparc-tdep.o sparcnbsd-tdep.o sparcobsd-tdep.o \
547                         nbsd-tdep.o obsd-tdep.o bsd-uthread.o solib-svr4.o \
548                         ravenscar-thread.o sparc-ravenscar-thread.o"
549         ;;
550 sparc64-*-openbsd*)
551         # Target: OpenBSD/sparc64
552         gdb_target_obs="sparc64-tdep.o sparc64nbsd-tdep.o sparc64obsd-tdep.o \
553                         sparc-tdep.o sparcnbsd-tdep.o sparcobsd-tdep.o \
554                         nbsd-tdep.o obsd-tdep.o bsd-uthread.o solib-svr4.o \
555                         ravenscar-thread.o sparc-ravenscar-thread.o"
556         ;;
557 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
558         # Target: Solaris SPARC
559         gdb_target_obs="sparc-tdep.o sparc-sol2-tdep.o sol2-tdep.o \
560                         solib-svr4.o \
561                         ravenscar-thread.o sparc-ravenscar-thread.o"
562         ;;
563 sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*)
564         # Target: Solaris UltraSPARC
565         gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o sparc-tdep.o \
566                         sparc-sol2-tdep.o sol2-tdep.o solib-svr4.o \
567                         ravenscar-thread.o sparc-ravenscar-thread.o"
568         ;;
569 sparc-*-*)
570         # Target: SPARC
571         gdb_target_obs="sparc-tdep.o \
572                         ravenscar-thread.o sparc-ravenscar-thread.o"
573         gdb_sim=../sim/erc32/libsim.a
574         ;;
575 sparc64-*-*)
576         # Target: UltraSPARC
577         gdb_target_obs="sparc-tdep.o sparc64-tdep.o \
578                         ravenscar-thread.o sparc-ravenscar-thread.o"
579         ;;
580
581 spu*-*-*)
582         # Target: Cell BE SPU
583         gdb_target_obs="spu-tdep.o"
584         build_gdbserver=yes
585         ;;
586
587 tic6x-*-*linux)
588         # Target: GNU/Linux TI C6x
589         gdb_target_obs="tic6x-tdep.o tic6x-linux-tdep.o solib-dsbt.o \
590                         glibc-tdep.o linux-tdep.o"
591         ;;
592
593 tic6x-*-*)
594         # Target: TI C6X 
595         gdb_target_obs="tic6x-tdep.o"
596         ;;
597
598 tilegx-*-linux*)
599         # Target: TILE-Gx
600         gdb_target_obs="tilegx-tdep.o tilegx-linux-tdep.o solib-svr4.o \
601                         symfile-mem.o glibc-tdep.o linux-tdep.o"
602         ;;
603
604 xstormy16-*-*)
605         # Target: Sanyo Xstormy16a processor
606         gdb_target_obs="xstormy16-tdep.o"
607         # No simulator libraries are needed -- target uses SID.
608         ;;
609
610 v850*-*-elf | v850*-*-rtems*)
611         # Target: NEC V850 processor
612         gdb_target_obs="v850-tdep.o"
613         gdb_sim=../sim/v850/libsim.a
614         ;;
615
616 vax-*-netbsd* | vax-*-knetbsd*-gnu)
617         # Target: NetBSD/vax
618         gdb_target_obs="vax-tdep.o vaxnbsd-tdep.o solib-svr4.o"
619         ;;
620 vax-*-openbsd*)
621         # Target: OpenBSD/vax
622         gdb_target_obs="vax-tdep.o vaxobsd-tdep.o"
623         ;;
624 vax-*-*)
625         # Target: VAX running 4.2BSD or Ultrix
626         gdb_target_obs="vax-tdep.o"
627         ;;
628
629 x86_64-*-darwin*)
630         # Target: Darwin/x86-64
631         gdb_target_obs="amd64-tdep.o i386-tdep.o i387-tdep.o \
632                         i386-darwin-tdep.o amd64-darwin-tdep.o \
633                         solib-darwin.o"
634         ;;
635
636 x86_64-*-dicos*)
637         # Target: DICOS/x86-64
638         gdb_target_obs="amd64-tdep.o i386-tdep.o i387-tdep.o \
639                         dicos-tdep.o i386-dicos-tdep.o amd64-dicos-tdep.o"
640         ;;
641 x86_64-*-linux*)
642         # Target: GNU/Linux x86-64
643         gdb_target_obs="amd64-tdep.o amd64-linux-tdep.o i386-tdep.o \
644                         i387-tdep.o i386-linux-tdep.o glibc-tdep.o \
645                         solib-svr4.o symfile-mem.o linux-tdep.o linux-record.o"
646         build_gdbserver=yes
647         ;;
648 x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
649         # Target: FreeBSD/amd64
650         gdb_target_obs="amd64-tdep.o amd64fbsd-tdep.o i386-tdep.o \
651                         i387-tdep.o i386bsd-tdep.o i386fbsd-tdep.o \
652                         bsd-uthread.o solib-svr4.o"
653         ;;
654 x86_64-*-mingw*)
655         # Target: MingW/amd64
656         gdb_target_obs="amd64-tdep.o amd64-windows-tdep.o \
657                         i386-tdep.o i386-cygwin-tdep.o i387-tdep.o \
658                         windows-tdep.o"
659         build_gdbserver=yes
660         ;;
661 x86_64-*-netbsd* | x86_64-*-knetbsd*-gnu)
662         # Target: NetBSD/amd64
663         gdb_target_obs="amd64-tdep.o amd64nbsd-tdep.o i386-tdep.o i387-tdep.o \
664                         nbsd-tdep.o solib-svr4.o"
665         ;;
666 x86_64-*-openbsd*)
667         # Target: OpenBSD/amd64
668         gdb_target_obs="amd64-tdep.o amd64obsd-tdep.o i386-tdep.o \
669                         i387-tdep.o i386bsd-tdep.o i386obsd-tdep.o \
670                         bsd-uthread.o solib-svr4.o"
671         ;;
672 xtensa*-*-linux*)       gdb_target=linux
673         # Target: GNU/Linux Xtensa
674         gdb_target_obs="xtensa-tdep.o xtensa-config.o xtensa-linux-tdep.o \
675                         solib-svr4.o symfile-mem.o linux-tdep.o"
676         build_gdbserver=yes
677         ;;
678 xtensa*)
679         # Target: Tensilica Xtensa processors
680         gdb_target_obs="xtensa-tdep.o xtensa-config.o solib-svr4.o"
681         ;;
682
683 esac
684
685 # map target onto default OS ABI
686
687 case "${targ}" in
688 *-*-freebsd* | *-*-kfreebsd*-gnu)
689                 gdb_osabi=GDB_OSABI_FREEBSD_ELF ;;
690 *-*-linux* | *-*-uclinux*)
691                 gdb_osabi=GDB_OSABI_LINUX ;;
692 *-*-nto*)       gdb_osabi=GDB_OSABI_QNXNTO ;;
693 m68*-*-openbsd* | m88*-*-openbsd* | vax-*-openbsd*) ;;
694 *-*-openbsd*)   gdb_osabi=GDB_OSABI_OPENBSD_ELF ;;
695 *-*-solaris*)   gdb_osabi=GDB_OSABI_SOLARIS ;;
696 *-*-*-gnu*)     ;; # prevent non-GNU kernels to match the Hurd rule below
697 *-*-gnu*)       gdb_osabi=GDB_OSABI_HURD ;;
698 *-*-mingw32ce*) gdb_osabi=GDB_OSABI_WINCE ;;
699 *-*-mingw* | *-*-cygwin*)
700                 gdb_osabi=GDB_OSABI_CYGWIN ;;
701 *-*-dicos*)     gdb_osabi=GDB_OSABI_DICOS ;;
702 *-*-symbianelf*)
703                 gdb_osabi=GDB_OSABI_SYMBIAN ;;
704 esac