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