Merge branch 'vendor/GDB'
[dragonfly.git] / contrib / gdb-7 / 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-*-dragonfly*)
204         # Target: DragonFly/i386
205         gdb_target_obs="i386-tdep.o i387-tdep.o i386bsd-tdep.o i386fbsd-tdep.o \
206                         i386dfly-tdep.o bsd-uthread.o corelow.o solib.o solib-svr4.o"
207         ;;
208 i[34567]86-*-nto*)
209         # Target: Intel 386 running qnx6.
210         gdb_target_obs="i386-tdep.o i387-tdep.o solib-svr4.o \
211                         i386-nto-tdep.o nto-tdep.o"
212         build_gdbserver=yes
213         ;;
214 i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
215         # Target: Solaris x86_64
216         gdb_target_obs="i386-tdep.o i387-tdep.o amd64-tdep.o amd64-sol2-tdep.o \
217                         i386-sol2-tdep.o sol2-tdep.o solib-svr4.o"
218         ;;
219 i[34567]86-*-solaris*)
220         # Target: Solaris x86
221         gdb_target_obs="i386-tdep.o i387-tdep.o i386-sol2-tdep.o sol2-tdep.o \
222                         solib-svr4.o"
223         ;;
224 i[34567]86-*-linux*)
225         # Target: Intel 386 running GNU/Linux
226         gdb_target_obs="i386-tdep.o i386-linux-tdep.o glibc-tdep.o i387-tdep.o \
227                         solib-svr4.o symfile-mem.o \
228                         linux-tdep.o linux-record.o"
229         if test "x$enable_64_bit_bfd" = "xyes"; then
230             # Target: GNU/Linux x86-64
231             gdb_target_obs="amd64-tdep.o amd64-linux-tdep.o ${gdb_target_obs}"
232         fi
233         build_gdbserver=yes
234         ;;
235 i[34567]86-*-gnu*)
236         # Target: Intel 386 running the GNU Hurd
237         gdb_target_obs="i386-tdep.o i387-tdep.o i386gnu-tdep.o solib-svr4.o"
238         ;;
239 i[34567]86-*-cygwin*)
240         # Target: Intel 386 running win32
241         gdb_target_obs="i386-tdep.o i386-cygwin-tdep.o i387-tdep.o \
242                         windows-tdep.o"
243         build_gdbserver=yes
244         ;;
245 i[34567]86-*-mingw32*)
246         # Target: Intel 386 running win32
247         gdb_target_obs="i386-tdep.o i386-cygwin-tdep.o i387-tdep.o \
248                         windows-tdep.o"
249         build_gdbserver=yes
250         ;;
251 i[34567]86-*-*)
252         # Target: i386
253         gdb_target_obs="i386-tdep.o i387-tdep.o"
254         ;;
255
256 ia64-*-hpux*)
257         # Target: Intel IA-64 running HP-UX
258         gdb_target_obs="ia64-tdep.o ia64-hpux-tdep.o"
259         ;;
260 ia64-*-linux*)
261         # Target: Intel IA-64 running GNU/Linux
262         gdb_target_obs="ia64-tdep.o ia64-linux-tdep.o linux-tdep.o \
263                         solib-svr4.o symfile-mem.o"
264         build_gdbserver=yes
265         ;;
266 ia64-*-*vms*)
267         # Target: Intel IA-64 running OpenVMS
268         gdb_target_obs="ia64-tdep.o ia64-vms-tdep.o"
269         ;;
270 ia64*-*-*)
271         # Target: Intel IA-64
272         gdb_target_obs="ia64-tdep.o"
273         ;;
274
275 iq2000-*-*)
276         gdb_target_obs="iq2000-tdep.o"
277         gdb_sim=../sim/iq2000/libsim.a
278         ;;
279
280 lm32-*-*)               
281         gdb_target_obs="lm32-tdep.o" 
282         gdb_sim=../sim/lm32/libsim.a
283         ;;
284
285 m32c-*-*)
286         # Target: Renesas M32C family
287         gdb_target_obs="m32c-tdep.o"
288         # There may also be a SID / CGEN simulator for this,
289         # but we do have DJ Delorie's mini-sim.
290         gdb_sim=../sim/m32c/libsim.a
291         ;;
292
293 m32r*-*-linux*)
294         # Target: Renesas M32R running GNU/Linux
295         gdb_target_obs="m32r-tdep.o m32r-linux-tdep.o remote-m32r-sdi.o \
296                         glibc-tdep.o solib-svr4.o symfile-mem.o \
297                         linux-tdep.o"
298         gdb_sim=../sim/m32r/libsim.a
299         build_gdbserver=yes
300         ;;
301 m32r*-*-*)
302         # Target: Renesas m32r processor
303         gdb_target_obs="m32r-tdep.o monitor.o m32r-rom.o dsrec.o \
304                         remote-m32r-sdi.o"
305         gdb_sim=../sim/m32r/libsim.a
306         ;;
307
308 m68hc11*-*-*|m6811*-*-*)
309         # Target: Motorola 68HC11 processor
310         gdb_target_obs="m68hc11-tdep.o"
311         gdb_sim=../sim/m68hc11/libsim.a
312         ;;
313
314 m68*-*-aout* | m68*-*-coff* | m68*-*-elf* | m68*-*-rtems* | m68*-*-uclinux* | \
315 fido-*-elf*)
316         # Target: Motorola m68k embedded (e.g. bug monitors)
317         gdb_target_obs="m68k-tdep.o monitor.o dbug-rom.o dsrec.o"
318         ;;
319 m68*-*-linux*)
320         # Target: Motorola m68k with a.out and ELF
321         gdb_target_obs="m68k-tdep.o m68klinux-tdep.o solib-svr4.o \
322                         linux-tdep.o glibc-tdep.o symfile-mem.o"
323         build_gdbserver=yes
324         ;;
325 m68*-*-netbsd* | m68*-*-knetbsd*-gnu)
326         # Target: NetBSD/m68k
327         gdb_target_obs="m68k-tdep.o m68kbsd-tdep.o solib-svr4.o"
328         ;;
329 m68*-*-openbsd*)
330         # Target: OpenBSD/m68k
331         gdb_target_obs="m68k-tdep.o m68kbsd-tdep.o solib-svr4.o"
332         ;;
333
334 m88*-*-openbsd*)
335         # Target: OpenBSD/m88k
336         gdb_target_obs="m88k-tdep.o"
337         ;;
338
339 mep-*-*)
340         # Target: Toshiba Media Processor (MEP)
341         gdb_target_obs="mep-tdep.o"
342         # No sim needed. Target uses SID.
343         ;;
344
345 microblaze*-linux-*|microblaze*-*-linux*)
346         # Target: Xilinx MicroBlaze running Linux
347         gdb_target_obs="microblaze-tdep.o microblaze-linux-tdep.o microblaze-rom.o \
348                         monitor.o dsrec.o solib-svr4.o symfile-mem.o linux-tdep.o"
349         gdb_sim=../sim/microblaze/libsim.a
350         ;;
351 microblaze*-*-*)
352         # Target: Xilinx MicroBlaze running standalone
353         gdb_target_obs="microblaze-tdep.o microblaze-rom.o monitor.o dsrec.o"
354         gdb_sim=../sim/microblaze/libsim.a
355         ;;
356
357 mips*-sgi-irix5*)
358         # Target: MIPS SGI running Irix 5
359         gdb_target_obs="mips-tdep.o mips-irix-tdep.o solib-irix.o"
360         ;;
361 mips*-sgi-irix6*)
362         # Target: MIPS SGI running Irix 6.x
363         gdb_target_obs="mips-tdep.o mips-irix-tdep.o solib-irix.o"
364         ;;
365 mips*-*-linux*)
366         # Target: Linux/MIPS
367         gdb_target_obs="mips-tdep.o mips-linux-tdep.o glibc-tdep.o \
368                         solib-svr4.o symfile-mem.o linux-tdep.o"
369         gdb_sim=../sim/mips/libsim.a
370         build_gdbserver=yes
371         ;;
372 mips*-*-netbsd* | mips*-*-knetbsd*-gnu)
373         # Target: MIPS running NetBSD
374         gdb_target_obs="mips-tdep.o mipsnbsd-tdep.o solib-svr4.o nbsd-tdep.o"
375         gdb_sim=../sim/mips/libsim.a
376         ;;
377 mips64*-*-openbsd*)
378         # Target: OpenBSD/mips64
379         gdb_target_obs="mips-tdep.o mips64obsd-tdep.o solib-svr4.o"
380         ;;
381 mips*-*-elf)
382         # Target: MIPS ELF
383         gdb_target_obs="mips-tdep.o remote-mips.o"
384         gdb_sim=../sim/mips/libsim.a
385         ;;
386 mips*-*-*)
387         # Target: MIPS
388         gdb_target_obs="mips-tdep.o"
389         gdb_sim=../sim/mips/libsim.a
390         ;;
391
392 mn10300-*-*)
393         # Target: Matsushita mn10300
394         gdb_target_obs="mn10300-tdep.o"
395         gdb_sim=../sim/mn10300/libsim.a
396         ;;
397
398 mt-*-*)
399         # Target: Morpho Technologies ms1 processor
400         gdb_target_obs="mt-tdep.o"
401         ;;
402
403 powerpc*-*-freebsd*)
404         # Target: FreeBSD/powerpc
405         gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppc64-tdep.o \
406                         ppcfbsd-tdep.o solib-svr4.o \
407                         ravenscar-thread.o ppc-ravenscar-thread.o"
408         ;;
409
410 powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu)
411         # Target: NetBSD/powerpc
412         gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppcnbsd-tdep.o \
413                         solib-svr4.o \
414                         ravenscar-thread.o ppc-ravenscar-thread.o"
415         gdb_sim=../sim/ppc/libsim.a
416         ;;
417 powerpc-*-openbsd*)
418         # Target: OpenBSD/powerpc
419         gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppcobsd-tdep.o \
420                         solib-svr4.o \
421                         ravenscar-thread.o ppc-ravenscar-thread.o"
422         ;;
423 powerpc-*-aix* | rs6000-*-*)
424         # Target: PowerPC running AIX
425         gdb_target_obs="rs6000-tdep.o rs6000-aix-tdep.o xcoffread.o \
426                         ppc-sysv-tdep.o solib-svr4.o \
427                         ravenscar-thread.o ppc-ravenscar-thread.o"
428         ;;
429 powerpc-*-linux* | powerpc64-*-linux*)
430         # Target: PowerPC running Linux
431         gdb_target_obs="rs6000-tdep.o ppc-linux-tdep.o ppc-sysv-tdep.o \
432                         ppc64-tdep.o solib-svr4.o solib-spu.o \
433                         spu-multiarch.o \
434                         glibc-tdep.o symfile-mem.o linux-tdep.o \
435                         ravenscar-thread.o ppc-ravenscar-thread.o"
436         gdb_sim=../sim/ppc/libsim.a
437         build_gdbserver=yes
438         ;;
439 powerpc-*-lynx*178)
440         # Target: PowerPC running Lynx178.
441         gdb_target_obs="rs6000-tdep.o rs6000-lynx178-tdep.o \
442                         xcoffread.o monitor.o dsrec.o ppc-sysv-tdep.o \
443                         ravenscar-thread.o ppc-ravenscar-thread.o"
444         ;;
445 powerpc*-*-*)
446         # Target: PowerPC running eabi
447         gdb_target_obs="rs6000-tdep.o monitor.o dsrec.o ppcbug-rom.o \
448                         dink32-rom.o ppc-sysv-tdep.o solib-svr4.o \
449                         ravenscar-thread.o ppc-ravenscar-thread.o"
450         if test -f ../sim/ppc/Makefile; then
451           gdb_sim=../sim/ppc/libsim.a
452         fi
453         ;;
454
455 s390*-*-*)
456         # Target: S390 running Linux
457         gdb_target_obs="s390-tdep.o solib-svr4.o linux-tdep.o"
458         build_gdbserver=yes
459         ;;
460
461 rl78-*-elf)
462         # Target: Renesas rl78
463         gdb_target_obs="rl78-tdep.o"
464         gdb_sim=../sim/rl78/libsim.a
465         ;;
466
467 rx-*-elf)
468         # Target: Renesas RX
469         gdb_target_obs="rx-tdep.o"
470         gdb_sim=../sim/rx/libsim.a
471         ;;
472
473 score-*-*)
474         # Target: S+core embedded system
475         gdb_target_obs="score-tdep.o"
476         if test -f ../sim/score/Makefile; then
477           gdb_sim=../sim/score/libsim.a
478         fi
479         build_gdbserver=yes
480         ;;
481
482 sh*-*-linux*)
483         # Target: GNU/Linux Super-H
484         gdb_target_obs="sh-tdep.o sh64-tdep.o sh-linux-tdep.o monitor.o \
485                         dsrec.o solib-svr4.o symfile-mem.o \
486                         glibc-tdep.o linux-tdep.o"
487         gdb_sim=../sim/sh/libsim.a
488         build_gdbserver=yes
489         ;;
490 sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu)
491         # Target: NetBSD/sh
492         gdb_target_obs="sh-tdep.o shnbsd-tdep.o solib-svr4.o"
493         gdb_sim=../sim/sh/libsim.a
494         ;;
495 sh*-*-openbsd*)
496         # Target: OpenBSD/sh
497         gdb_target_obs="sh-tdep.o sh64-tdep.o shnbsd-tdep.o solib-svr4.o"
498         ;;
499 sh64-*-elf*)
500         # Target: Renesas/Super-H 64 bit with simulator
501         gdb_target_obs="sh-tdep.o sh64-tdep.o"
502         gdb_sim=../sim/sh64/libsim.a
503         ;;
504 sh*)
505         # Target: Embedded Renesas Super-H with ICE and simulator
506         gdb_target_obs="sh-tdep.o sh64-tdep.o monitor.o dsrec.o"
507         gdb_sim=../sim/sh/libsim.a
508         ;;
509
510 sparc-*-linux*)
511         # Target: GNU/Linux SPARC
512         gdb_target_obs="sparc-tdep.o sparc-sol2-tdep.o sol2-tdep.o \
513                         sparc-linux-tdep.o solib-svr4.o symfile-mem.o \
514                         linux-tdep.o \
515                         ravenscar-thread.o sparc-ravenscar-thread.o"
516         if test "x$enable_64_bit_bfd" = "xyes"; then
517             # Target: GNU/Linux UltraSPARC
518             gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o \
519                             sparc64-linux-tdep.o ${gdb_target_obs}"
520         fi
521         build_gdbserver=yes
522         ;;
523 sparc64-*-linux*)
524         # Target: GNU/Linux UltraSPARC
525         gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o sol2-tdep.o \
526                         sparc64-linux-tdep.o sparc-tdep.o sparc-sol2-tdep.o \
527                         sparc-linux-tdep.o solib-svr4.o linux-tdep.o \
528                         ravenscar-thread.o sparc-ravenscar-thread.o"
529         build_gdbserver=yes
530         ;;
531 sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu)
532         # Target: FreeBSD/sparc64
533         gdb_target_obs="sparc-tdep.o sparc64-tdep.o sparc64fbsd-tdep.o \
534                         solib-svr4.o \
535                         ravenscar-thread.o sparc-ravenscar-thread.o"
536         ;;
537 sparc-*-netbsd* | sparc-*-knetbsd*-gnu)
538         # Target: NetBSD/sparc
539         gdb_target_obs="sparc-tdep.o sparcnbsd-tdep.o nbsd-tdep.o \
540                         solib-svr4.o \
541                         ravenscar-thread.o sparc-ravenscar-thread.o"
542         ;;
543 sparc64-*-netbsd* | sparc64-*-knetbsd*-gnu)
544         # Target: NetBSD/sparc64
545         gdb_target_obs="sparc64-tdep.o sparc64nbsd-tdep.o sparc-tdep.o \
546                         sparcnbsd-tdep.o nbsd-tdep.o solib-svr4.o \
547                         ravenscar-thread.o sparc-ravenscar-thread.o"
548         ;;
549 sparc-*-openbsd*)
550         # Target: OpenBSD/sparc
551         gdb_target_obs="sparc-tdep.o sparcnbsd-tdep.o sparcobsd-tdep.o \
552                         nbsd-tdep.o obsd-tdep.o bsd-uthread.o solib-svr4.o \
553                         ravenscar-thread.o sparc-ravenscar-thread.o"
554         ;;
555 sparc64-*-openbsd*)
556         # Target: OpenBSD/sparc64
557         gdb_target_obs="sparc64-tdep.o sparc64nbsd-tdep.o sparc64obsd-tdep.o \
558                         sparc-tdep.o sparcnbsd-tdep.o sparcobsd-tdep.o \
559                         nbsd-tdep.o obsd-tdep.o bsd-uthread.o solib-svr4.o \
560                         ravenscar-thread.o sparc-ravenscar-thread.o"
561         ;;
562 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
563         # Target: Solaris SPARC
564         gdb_target_obs="sparc-tdep.o sparc-sol2-tdep.o sol2-tdep.o \
565                         solib-svr4.o \
566                         ravenscar-thread.o sparc-ravenscar-thread.o"
567         ;;
568 sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*)
569         # Target: Solaris UltraSPARC
570         gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o sparc-tdep.o \
571                         sparc-sol2-tdep.o sol2-tdep.o solib-svr4.o \
572                         ravenscar-thread.o sparc-ravenscar-thread.o"
573         ;;
574 sparc-*-*)
575         # Target: SPARC
576         gdb_target_obs="sparc-tdep.o \
577                         ravenscar-thread.o sparc-ravenscar-thread.o"
578         gdb_sim=../sim/erc32/libsim.a
579         ;;
580 sparc64-*-*)
581         # Target: UltraSPARC
582         gdb_target_obs="sparc-tdep.o sparc64-tdep.o \
583                         ravenscar-thread.o sparc-ravenscar-thread.o"
584         ;;
585
586 spu*-*-*)
587         # Target: Cell BE SPU
588         gdb_target_obs="spu-tdep.o"
589         build_gdbserver=yes
590         ;;
591
592 tic6x-*-*linux)
593         # Target: GNU/Linux TI C6x
594         gdb_target_obs="tic6x-tdep.o tic6x-linux-tdep.o solib-dsbt.o \
595                         glibc-tdep.o linux-tdep.o"
596         ;;
597
598 tic6x-*-*)
599         # Target: TI C6X 
600         gdb_target_obs="tic6x-tdep.o"
601         ;;
602
603 tilegx-*-linux*)
604         # Target: TILE-Gx
605         gdb_target_obs="tilegx-tdep.o tilegx-linux-tdep.o solib-svr4.o \
606                         symfile-mem.o glibc-tdep.o linux-tdep.o"
607         build_gdbserver=yes
608         ;;
609
610 xstormy16-*-*)
611         # Target: Sanyo Xstormy16a processor
612         gdb_target_obs="xstormy16-tdep.o"
613         # No simulator libraries are needed -- target uses SID.
614         ;;
615
616 v850*-*-elf | v850*-*-rtems*)
617         # Target: NEC V850 processor
618         gdb_target_obs="v850-tdep.o"
619         gdb_sim=../sim/v850/libsim.a
620         ;;
621
622 vax-*-netbsd* | vax-*-knetbsd*-gnu)
623         # Target: NetBSD/vax
624         gdb_target_obs="vax-tdep.o vaxnbsd-tdep.o solib-svr4.o"
625         ;;
626 vax-*-openbsd*)
627         # Target: OpenBSD/vax
628         gdb_target_obs="vax-tdep.o vaxobsd-tdep.o"
629         ;;
630 vax-*-*)
631         # Target: VAX running 4.2BSD or Ultrix
632         gdb_target_obs="vax-tdep.o"
633         ;;
634
635 x86_64-*-darwin*)
636         # Target: Darwin/x86-64
637         gdb_target_obs="amd64-tdep.o i386-tdep.o i387-tdep.o \
638                         i386-darwin-tdep.o amd64-darwin-tdep.o \
639                         solib-darwin.o"
640         ;;
641
642 x86_64-*-dicos*)
643         # Target: DICOS/x86-64
644         gdb_target_obs="amd64-tdep.o i386-tdep.o i387-tdep.o \
645                         dicos-tdep.o i386-dicos-tdep.o amd64-dicos-tdep.o"
646         ;;
647 x86_64-*-linux*)
648         # Target: GNU/Linux x86-64
649         gdb_target_obs="amd64-tdep.o amd64-linux-tdep.o i386-tdep.o \
650                         i387-tdep.o i386-linux-tdep.o glibc-tdep.o \
651                         solib-svr4.o symfile-mem.o linux-tdep.o linux-record.o"
652         build_gdbserver=yes
653         ;;
654 x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
655         # Target: FreeBSD/amd64
656         gdb_target_obs="amd64-tdep.o amd64fbsd-tdep.o i386-tdep.o \
657                         i387-tdep.o i386bsd-tdep.o i386fbsd-tdep.o \
658                         bsd-uthread.o solib-svr4.o"
659         ;;
660 x86_64-*-mingw* | x86_64-*-cygwin*)
661         # Target: MingW/amd64
662         gdb_target_obs="amd64-tdep.o amd64-windows-tdep.o \
663                         i386-tdep.o i386-cygwin-tdep.o i387-tdep.o \
664                         windows-tdep.o"
665         build_gdbserver=yes
666         ;;
667 x86_64-*-netbsd* | x86_64-*-knetbsd*-gnu)
668         # Target: NetBSD/amd64
669         gdb_target_obs="amd64-tdep.o amd64nbsd-tdep.o i386-tdep.o i387-tdep.o \
670                         nbsd-tdep.o solib-svr4.o"
671         ;;
672 x86_64-*-openbsd*)
673         # Target: OpenBSD/amd64
674         gdb_target_obs="amd64-tdep.o amd64obsd-tdep.o i386-tdep.o \
675                         i387-tdep.o i386bsd-tdep.o i386obsd-tdep.o \
676                         bsd-uthread.o solib-svr4.o"
677         ;;
678 x86_64-*-dragonfly*)
679         # Target: DragonFly/amd64
680         gdb_target_obs="amd64-tdep.o amd64dfly-tdep.o i386-tdep.o \
681                         i387-tdep.o i386bsd-tdep.o i386fbsd-tdep.o i386dfly-tdep.o \
682                         i386dfly-tdep.o bsd-uthread.o corelow.o solib.o solib-svr4.o"
683         ;;
684 xtensa*-*-linux*)       gdb_target=linux
685         # Target: GNU/Linux Xtensa
686         gdb_target_obs="xtensa-tdep.o xtensa-config.o xtensa-linux-tdep.o \
687                         solib-svr4.o symfile-mem.o linux-tdep.o"
688         build_gdbserver=yes
689         ;;
690 xtensa*)
691         # Target: Tensilica Xtensa processors
692         gdb_target_obs="xtensa-tdep.o xtensa-config.o solib-svr4.o"
693         ;;
694
695 esac
696
697 # map target onto default OS ABI
698
699 case "${targ}" in
700 *-*-freebsd* | *-*-kfreebsd*-gnu)
701                 gdb_osabi=GDB_OSABI_FREEBSD_ELF ;;
702 *-*-linux* | *-*-uclinux*)
703                 gdb_osabi=GDB_OSABI_LINUX ;;
704 *-*-nto*)       gdb_osabi=GDB_OSABI_QNXNTO ;;
705 m68*-*-openbsd* | m88*-*-openbsd* | vax-*-openbsd*) ;;
706 *-*-openbsd*)   gdb_osabi=GDB_OSABI_OPENBSD_ELF ;;
707 *-*-dragonfly*) gdb_osabi=GDB_OSABI_DRAGONFLY ;;
708 *-*-solaris*)   gdb_osabi=GDB_OSABI_SOLARIS ;;
709 *-*-*-gnu*)     ;; # prevent non-GNU kernels to match the Hurd rule below
710 *-*-gnu*)       gdb_osabi=GDB_OSABI_HURD ;;
711 *-*-mingw32ce*) gdb_osabi=GDB_OSABI_WINCE ;;
712 *-*-mingw* | *-*-cygwin*)
713                 gdb_osabi=GDB_OSABI_CYGWIN ;;
714 *-*-dicos*)     gdb_osabi=GDB_OSABI_DICOS ;;
715 *-*-symbianelf*)
716                 gdb_osabi=GDB_OSABI_SYMBIAN ;;
717 esac