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