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