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