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