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