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