gdb: include allocated/associated properties in 'maint print type'
[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 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* | \
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* | \
dc711524 32 mt-*-* | \
483367ee 33 null)
d0c678e6 34 echo "*** Configuration $targ is obsolete." >&2
483367ee
DJ
35 echo "*** Support has been REMOVED." >&2
36 exit 1
37 ;;
38esac
39
eda4efb1
SM
40x86_tobjs="x86-tdep.o"
41i386_tobjs="i386-tdep.o arch/i386.o i387-tdep.o ${x86_tobjs}"
257e02d8
TT
42amd64_tobjs="ravenscar-thread.o amd64-ravenscar-thread.o \
43 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
817a7585 63 cpu_obs="arc-tdep.o arch/arc.o"
d97987e2
YQ
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"
1ae3db19 132 ;;
c906108c 133
732cd360 134alpha*-*-linux*)
a4ce5b0d 135 # Target: Little-endian Alpha running Linux
d97987e2 136 gdb_target_obs="alpha-mdebug-tdep.o alpha-linux-tdep.o \
8574e74b 137 linux-tdep.o solib-svr4.o"
732cd360 138 ;;
69489883 139alpha*-*-netbsd* | alpha*-*-knetbsd*-gnu)
a4ce5b0d 140 # Target: NetBSD/alpha
d97987e2 141 gdb_target_obs="alpha-mdebug-tdep.o alpha-bsd-tdep.o \
1b71cfcf 142 alpha-netbsd-tdep.o"
732cd360
UW
143 ;;
144alpha*-*-openbsd*)
a4ce5b0d 145 # Target: OpenBSD/alpha
d97987e2 146 gdb_target_obs="alpha-mdebug-tdep.o alpha-bsd-tdep.o \
1b71cfcf 147 alpha-netbsd-tdep.o alpha-obsd-tdep.o nbsd-tdep.o"
732cd360 148 ;;
c906108c 149
732cd360 150am33_2.0*-*-linux*)
a4ce5b0d 151 # Target: Matsushita mn10300 (AM33) running Linux
a3217aa0 152 gdb_target_obs="mn10300-tdep.o mn10300-linux-tdep.o linux-tdep.o \
06b9f45f 153 solib-svr4.o"
732cd360 154 ;;
63a09be5 155
4a2f4826
AK
156arc*-*-elf32)
157 # Target: baremetal ARC elf32 (newlib) target
d97987e2 158 gdb_target_obs="arc-newlib-tdep.o"
ad0a504f
AK
159 ;;
160
8d7f0635
AK
161arc*-*-linux*)
162 # Target: ARC machine running Linux
163 gdb_target_obs="arc-linux-tdep.o linux-tdep.o solib-svr4.o"
164 ;;
165
68070c10 166arm*-wince-pe | arm*-*-mingw32ce*)
a4ce5b0d 167 # Target: ARM based machine running Windows CE (win32)
d97987e2 168 gdb_target_obs="arm-wince-tdep.o windows-tdep.o"
732cd360
UW
169 ;;
170arm*-*-linux*)
a4ce5b0d 171 # Target: ARM based machine running GNU/Linux
71917808 172 gdb_target_obs="arch/arm-linux.o arm-linux-tdep.o glibc-tdep.o \
97dfe206 173 solib-svr4.o symfile-mem.o linux-tdep.o linux-record.o"
732cd360 174 ;;
7176dfd2
JB
175arm*-*-freebsd*)
176 # Target: FreeBSD/arm
177 gdb_target_obs="arm-fbsd-tdep.o"
178 ;;
69489883 179arm*-*-netbsd* | arm*-*-knetbsd*-gnu)
a4ce5b0d 180 # Target: NetBSD/arm
1b71cfcf 181 gdb_target_obs="arm-netbsd-tdep.o"
732cd360
UW
182 ;;
183arm*-*-openbsd*)
a4ce5b0d 184 # Target: OpenBSD/arm
d97987e2 185 gdb_target_obs="arm-bsd-tdep.o arm-obsd-tdep.o"
732cd360 186 ;;
78664fa3
PA
187arm*-*-symbianelf*)
188 # Target: SymbianOS/arm
d97987e2 189 gdb_target_obs="arm-symbian-tdep.o"
78664fa3 190 ;;
4d393d60 191arm*-*-*)
a4ce5b0d 192 # Target: ARM embedded system
e1c3a373 193 gdb_target_obs="arm-pikeos-tdep.o"
9b624dbe 194 gdb_sim=../sim/arm/libsim.a
732cd360
UW
195 ;;
196
197avr-*-*)
a4ce5b0d
UW
198 # Target: AVR
199 gdb_target_obs="avr-tdep.o"
64c9be2e 200 gdb_sim=../sim/avr/libsim.a
732cd360
UW
201 ;;
202
91021223
MF
203bfin-*-*linux*)
204 # Target: Blackfin Linux
205 gdb_target_obs="bfin-tdep.o bfin-linux-tdep.o linux-tdep.o"
5387a0c6 206 gdb_sim=../sim/bfin/libsim.a
91021223
MF
207 ;;
208bfin-*-*)
209 # Target: Blackfin processor
210 gdb_target_obs="bfin-tdep.o"
5387a0c6 211 gdb_sim=../sim/bfin/libsim.a
91021223
MF
212 ;;
213
39791af2
JM
214bpf-*-*)
215 # Target: eBPF
216 gdb_target_obs="bpf-tdep.o"
b26e2ae7 217 gdb_sim=../sim/bpf/libsim.a
39791af2
JM
218 ;;
219
732cd360 220cris*)
a4ce5b0d 221 # Target: CRIS
749c8b38 222 gdb_target_obs="cris-tdep.o cris-linux-tdep.o linux-tdep.o solib-svr4.o"
732cd360
UW
223 ;;
224
9d24df82
HAQ
225csky*-*-linux*)
226 # Target: CSKY running GNU/Linux
227 gdb_target_obs="csky-tdep.o csky-linux-tdep.o glibc-tdep.o \
228 linux-tdep.o solib-svr4.o"
229 ;;
230
231csky*-*-*)
232 # Target: CSKY bare metal
233 gdb_target_obs="csky-tdep.o"
234 ;;
235
732cd360 236frv-*-*)
a4ce5b0d 237 # Target: Fujitsu FRV processor
06b9f45f 238 gdb_target_obs="frv-tdep.o frv-linux-tdep.o linux-tdep.o solib-frv.o"
9b624dbe 239 gdb_sim=../sim/frv/libsim.a
732cd360
UW
240 ;;
241
91529dc5 242moxie-*-elf | moxie-*-moxiebox | moxie-*-rtems*)
d7066cce 243 gdb_target_obs="moxie-tdep.o"
c7098c41 244 gdb_sim=../sim/moxie/libsim.a
d7066cce
AG
245 ;;
246
732cd360 247h8300-*-*)
40e0b271
PA
248 # Target: H8300 processor
249 gdb_target_obs="h8300-tdep.o"
9b624dbe 250 gdb_sim=../sim/h8300/libsim.a
732cd360
UW
251 ;;
252
732cd360 253hppa*-*-linux*)
a4ce5b0d 254 # Target: HP PA-RISC running Linux
d97987e2 255 gdb_target_obs="hppa-linux-tdep.o glibc-tdep.o \
8574e74b 256 linux-tdep.o solib-svr4.o symfile-mem.o"
732cd360 257 ;;
af5ca30d
NH
258hppa*-*-netbsd*)
259 # Target: NetBSD/hppa
1b71cfcf 260 gdb_target_obs="hppa-bsd-tdep.o hppa-netbsd-tdep.o solib-svr4.o"
af5ca30d 261 ;;
732cd360 262hppa*-*-openbsd*)
a4ce5b0d 263 # Target: OpenBSD/hppa
d97987e2 264 gdb_target_obs="hppa-bsd-tdep.o hppa-obsd-tdep.o solib-svr4.o"
732cd360 265 ;;
c906108c 266
5cd226f2 267i[34567]86-*-darwin*)
a80b95ba 268 # Target: Darwin/i386
d97987e2 269 gdb_target_obs="i386-darwin-tdep.o solib-darwin.o"
5cd226f2
TG
270 if test "x$enable_64_bit_bfd" = "xyes"; then
271 # Target: GNU/Linux x86-64
d97987e2 272 gdb_target_obs="amd64-darwin-tdep.o ${gdb_target_obs}"
5cd226f2 273 fi
a80b95ba 274 ;;
a15c5c83
PA
275i[34567]86-*-dicos*)
276 # Target: DICOS/i386
d97987e2 277 gdb_target_obs="dicos-tdep.o i386-dicos-tdep.o"
a15c5c83 278 ;;
fa987fc4 279i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
a4ce5b0d 280 # Target: FreeBSD/i386
d97987e2 281 gdb_target_obs="i386-bsd-tdep.o i386-fbsd-tdep.o "
fa987fc4 282 ;;
48184fd4 283i[34567]86-*-netbsd* | i[34567]86-*-knetbsd*-gnu)
a4ce5b0d 284 # Target: NetBSD/i386
1b71cfcf 285 gdb_target_obs="i386-bsd-tdep.o i386-netbsd-tdep.o "
732cd360
UW
286 ;;
287i[34567]86-*-openbsd*)
a4ce5b0d 288 # Target: OpenBSD/i386
d97987e2 289 gdb_target_obs="i386-bsd-tdep.o i386-obsd-tdep.o bsd-uthread.o"
732cd360
UW
290 ;;
291i[34567]86-*-nto*)
a4ce5b0d 292 # Target: Intel 386 running qnx6.
d97987e2 293 gdb_target_obs="solib-svr4.o \
a4ce5b0d 294 i386-nto-tdep.o nto-tdep.o"
732cd360 295 ;;
281c4447 296i[34567]86-*-solaris2* | x86_64-*-solaris2*)
a4ce5b0d 297 # Target: Solaris x86_64
d97987e2 298 gdb_target_obs="${i386_tobjs} ${amd64_tobjs} \
22916b07
YQ
299 amd64-sol2-tdep.o i386-sol2-tdep.o sol2-tdep.o \
300 solib-svr4.o"
732cd360 301 ;;
732cd360 302i[34567]86-*-linux*)
a4ce5b0d 303 # Target: Intel 386 running GNU/Linux
d97987e2
YQ
304 gdb_target_obs="i386-linux-tdep.o \
305 glibc-tdep.o \
06b9f45f 306 solib-svr4.o symfile-mem.o \
b7f6bf22 307 linux-tdep.o linux-record.o"
0ca8834f
JM
308 if test "x$enable_64_bit_bfd" = "xyes"; then
309 # Target: GNU/Linux x86-64
d97987e2 310 gdb_target_obs="amd64-linux-tdep.o ${gdb_target_obs}"
0ca8834f 311 fi
732cd360
UW
312 ;;
313i[34567]86-*-gnu*)
a4ce5b0d 314 # Target: Intel 386 running the GNU Hurd
d97987e2 315 gdb_target_obs="i386-gnu-tdep.o solib-svr4.o"
732cd360
UW
316 ;;
317i[34567]86-*-cygwin*)
a4ce5b0d 318 # Target: Intel 386 running win32
7a1998df 319 gdb_target_obs="i386-windows-tdep.o windows-tdep.o"
732cd360
UW
320 ;;
321i[34567]86-*-mingw32*)
a4ce5b0d 322 # Target: Intel 386 running win32
7a1998df 323 gdb_target_obs="i386-windows-tdep.o windows-tdep.o"
732cd360 324 ;;
8f10c932
PA
325i[34567]86-*-go32* | i[34567]86-*-msdosdjgpp*)
326 # Target: i386 running DJGPP/go32.
d97987e2 327 gdb_target_obs="i386-go32-tdep.o"
732cd360
UW
328 ;;
329
330ia64-*-linux*)
a4ce5b0d 331 # Target: Intel IA-64 running GNU/Linux
d97987e2 332 gdb_target_obs="ia64-linux-tdep.o linux-tdep.o \
8574e74b 333 solib-svr4.o symfile-mem.o"
732cd360 334 ;;
696759ad
TG
335ia64-*-*vms*)
336 # Target: Intel IA-64 running OpenVMS
d97987e2 337 gdb_target_obs="ia64-vms-tdep.o"
732cd360
UW
338 ;;
339
340iq2000-*-*)
a4ce5b0d 341 gdb_target_obs="iq2000-tdep.o"
9b624dbe 342 gdb_sim=../sim/iq2000/libsim.a
732cd360
UW
343 ;;
344
c28c63d8
JB
345lm32-*-*)
346 gdb_target_obs="lm32-tdep.o"
347 gdb_sim=../sim/lm32/libsim.a
348 ;;
349
732cd360 350m32c-*-*)
a4ce5b0d 351 # Target: Renesas M32C family
57295b0b 352 gdb_target_obs="m32c-tdep.o"
9b624dbe
UW
353 # There may also be a SID / CGEN simulator for this,
354 # but we do have DJ Delorie's mini-sim.
355 gdb_sim=../sim/m32c/libsim.a
732cd360
UW
356 ;;
357
358m32r*-*-linux*)
a4ce5b0d 359 # Target: Renesas M32R running GNU/Linux
f7c38292 360 gdb_target_obs="m32r-tdep.o m32r-linux-tdep.o \
8574e74b 361 glibc-tdep.o solib-svr4.o symfile-mem.o \
a3217aa0 362 linux-tdep.o"
9b624dbe 363 gdb_sim=../sim/m32r/libsim.a
732cd360
UW
364 ;;
365m32r*-*-*)
a4ce5b0d 366 # Target: Renesas m32r processor
f7c38292 367 gdb_target_obs="m32r-tdep.o"
9b624dbe 368 gdb_sim=../sim/m32r/libsim.a
732cd360
UW
369 ;;
370
371m68hc11*-*-*|m6811*-*-*)
a4ce5b0d
UW
372 # Target: Motorola 68HC11 processor
373 gdb_target_obs="m68hc11-tdep.o"
9b624dbe 374 gdb_sim=../sim/m68hc11/libsim.a
732cd360
UW
375 ;;
376
fa987fc4
UW
377m68*-*-aout* | m68*-*-coff* | m68*-*-elf* | m68*-*-rtems* | m68*-*-uclinux* | \
378fido-*-elf*)
40e0b271
PA
379 # Target: Motorola m68k embedded
380 gdb_target_obs="m68k-tdep.o"
732cd360
UW
381 ;;
382m68*-*-linux*)
a4ce5b0d 383 # Target: Motorola m68k with a.out and ELF
03b62bbb 384 gdb_target_obs="m68k-tdep.o m68k-linux-tdep.o solib-svr4.o \
a3217aa0 385 linux-tdep.o glibc-tdep.o symfile-mem.o"
732cd360 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 419 ;;
69489883 420mips*-*-netbsd* | mips*-*-knetbsd*-gnu)
a4ce5b0d 421 # Target: MIPS running NetBSD
1b71cfcf 422 gdb_target_obs="mips-tdep.o mips-netbsd-tdep.o"
9b624dbe 423 gdb_sim=../sim/mips/libsim.a
732cd360 424 ;;
387360da
JB
425mips*-*-freebsd*)
426 # Target: MIPS running FreeBSD
d97987e2 427 gdb_target_obs="mips-tdep.o mips-fbsd-tdep.o"
387360da
JB
428 gdb_sim=../sim/mips/libsim.a
429 ;;
732cd360 430mips64*-*-openbsd*)
a4ce5b0d 431 # Target: OpenBSD/mips64
d97987e2 432 gdb_target_obs="mips-tdep.o mips64-obsd-tdep.o"
732cd360 433 ;;
bb7e3f4d
YQ
434mips*-sde*-elf*)
435 # Target: MIPS SDE
f7c38292 436 gdb_target_obs="mips-tdep.o mips-sde-tdep.o"
bb7e3f4d
YQ
437 gdb_sim=../sim/mips/libsim.a
438 ;;
314d366a
KB
439mips*-*-elf)
440 # Target: MIPS ELF
f7c38292 441 gdb_target_obs="mips-tdep.o"
314d366a
KB
442 gdb_sim=../sim/mips/libsim.a
443 ;;
732cd360 444mips*-*-*)
a4ce5b0d
UW
445 # Target: MIPS
446 gdb_target_obs="mips-tdep.o"
9b624dbe 447 gdb_sim=../sim/mips/libsim.a
732cd360
UW
448 ;;
449
450mn10300-*-*)
a4ce5b0d
UW
451 # Target: Matsushita mn10300
452 gdb_target_obs="mn10300-tdep.o"
9b624dbe 453 gdb_sim=../sim/mn10300/libsim.a
732cd360
UW
454 ;;
455
b3f4b80f 456msp430-*-elf*)
586cf749
KB
457 gdb_target_obs="msp430-tdep.o"
458 gdb_sim=../sim/msp430/libsim.a
459 ;;
460
a28d8e50
YTL
461nds32*-*-elf)
462 # Target: AndesTech NDS32 core
463 gdb_target_obs="nds32-tdep.o"
464 ;;
465
a1217d97
SL
466nios2*-*-linux*)
467 # Target: Altera Nios II running Linux
468 gdb_target_obs="nios2-tdep.o nios2-linux-tdep.o solib-svr4.o \
469 symfile-mem.o glibc-tdep.o linux-tdep.o"
470 ;;
471
472nios2*-*-*)
473 # Target: Altera Nios II bare-metal
474 gdb_target_obs="nios2-tdep.o"
475 ;;
476
42e151bf
SH
477or1k*-*-linux*)
478 # Target: OpenCores OpenRISC 1000 32-bit running Linux
479 gdb_target_obs="or1k-tdep.o or1k-linux-tdep.o solib-svr4.o \
480 symfile-mem.o glibc-tdep.o linux-tdep.o"
481 gdb_sim=../sim/or1k/libsim.a
42e151bf
SH
482 ;;
483
a994fec4
FJ
484or1k-*-* | or1knd-*-*)
485 # Target: OpenCores OpenRISC 1000 32-bit implementation bare metal
486 gdb_target_obs="or1k-tdep.o"
487 gdb_sim=../sim/or1k/libsim.a
488 ;;
489
dc18f110
AT
490powerpc*-*-freebsd*)
491 # Target: FreeBSD/powerpc
492 gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppc64-tdep.o \
d97987e2 493 ppc-fbsd-tdep.o \
dc18f110
AT
494 ravenscar-thread.o ppc-ravenscar-thread.o"
495 ;;
496
69489883 497powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu)
a4ce5b0d 498 # Target: NetBSD/powerpc
1b71cfcf 499 gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppc-netbsd-tdep.o \
debb1f09 500 ravenscar-thread.o ppc-ravenscar-thread.o"
9b624dbe 501 gdb_sim=../sim/ppc/libsim.a
732cd360
UW
502 ;;
503powerpc-*-openbsd*)
a4ce5b0d 504 # Target: OpenBSD/powerpc
03b62bbb 505 gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppc-obsd-tdep.o \
debb1f09 506 ravenscar-thread.o ppc-ravenscar-thread.o"
732cd360 507 ;;
49de1690 508powerpc-*-aix* | rs6000-*-* | powerpc64-*-aix*)
a4ce5b0d
UW
509 # Target: PowerPC running AIX
510 gdb_target_obs="rs6000-tdep.o rs6000-aix-tdep.o xcoffread.o \
4d1eb6b4 511 ppc-sysv-tdep.o solib-aix.o \
debb1f09 512 ravenscar-thread.o ppc-ravenscar-thread.o"
732cd360 513 ;;
bcbec14e 514powerpc*-*-linux*)
a4ce5b0d
UW
515 # Target: PowerPC running Linux
516 gdb_target_obs="rs6000-tdep.o ppc-linux-tdep.o ppc-sysv-tdep.o \
abf516c6 517 ppc64-tdep.o solib-svr4.o \
debb1f09 518 glibc-tdep.o symfile-mem.o linux-tdep.o \
b4cdae6f 519 ravenscar-thread.o ppc-ravenscar-thread.o \
bd64614e
PFC
520 linux-record.o \
521 arch/ppc-linux-common.o"
9b624dbe 522 gdb_sim=../sim/ppc/libsim.a
732cd360 523 ;;
d5367fe1
JB
524powerpc-*-lynx*178)
525 # Target: PowerPC running Lynx178.
526 gdb_target_obs="rs6000-tdep.o rs6000-lynx178-tdep.o \
40e0b271 527 xcoffread.o ppc-sysv-tdep.o \
d5367fe1
JB
528 ravenscar-thread.o ppc-ravenscar-thread.o"
529 ;;
732cd360 530powerpc*-*-*)
a4ce5b0d 531 # Target: PowerPC running eabi
40e0b271 532 gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o solib-svr4.o \
debb1f09 533 ravenscar-thread.o ppc-ravenscar-thread.o"
32273fe6 534 gdb_sim=../sim/ppc/libsim.a
732cd360
UW
535 ;;
536
0e5fae36 537s390*-*-linux*)
a4ce5b0d 538 # Target: S390 running Linux
d6e58945
PR
539 gdb_target_obs="s390-linux-tdep.o s390-tdep.o solib-svr4.o \
540 linux-tdep.o linux-record.o symfile-mem.o"
732cd360
UW
541 ;;
542
ed65e20b
JB
543riscv*-*-freebsd*)
544 # Target: FreeBSD/riscv
b5ffee31 545 gdb_target_obs="riscv-fbsd-tdep.o"
ed65e20b
JB
546 ;;
547
52a187f8
JW
548riscv*-*-linux*)
549 # Target: Linux/RISC-V
b5ffee31 550 gdb_target_obs="riscv-linux-tdep.o glibc-tdep.o \
52a187f8
JW
551 linux-tdep.o solib-svr4.o symfile-mem.o linux-record.o"
552 ;;
553
dbbb1059
AB
554riscv*-*-*)
555 # Target: RISC-V architecture
b5ffee31 556 gdb_target_obs=""
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 ;;
69489883 583sh*-*-netbsdelf* | 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 \
d97987e2 636 nbsd-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 \
d97987e2 643 nbsd-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 ;;
ca3bf3bd 765
c906108c 766esac
2acceee2 767
d97987e2
YQ
768# Put them together.
769
770gdb_target_obs="${cpu_obs} ${os_obs} ${gdb_target_obs}"
771
b00a8037
DJ
772# map target onto default OS ABI
773
d0c678e6 774case "${targ}" in
d5ae309f 775*-*-freebsd* | *-*-kfreebsd*-gnu)
1736a7bd 776 gdb_osabi=GDB_OSABI_FREEBSD ;;
4e18c053
MF
777*-*-linux* | *-*-uclinux*)
778 gdb_osabi=GDB_OSABI_LINUX ;;
1b883d35 779*-*-nto*) gdb_osabi=GDB_OSABI_QNXNTO ;;
663408c2 780m68*-*-openbsd* | m88*-*-openbsd* | vax-*-openbsd*) ;;
1736a7bd 781*-*-openbsd*) gdb_osabi=GDB_OSABI_OPENBSD ;;
5b729aa5 782*-*-solaris*) gdb_osabi=GDB_OSABI_SOLARIS ;;
69489883
NN
783*-*-*-gnu*) ;; # prevent non-GNU kernels to match the Hurd rule below
784*-*-gnu*) gdb_osabi=GDB_OSABI_HURD ;;
fd39ac05 785*-*-mingw32ce*) gdb_osabi=GDB_OSABI_WINCE ;;
053205cc
SM
786*-*-mingw*) gdb_osabi=GDB_OSABI_WINDOWS ;;
787*-*-cygwin*) gdb_osabi=GDB_OSABI_CYGWIN ;;
a15c5c83 788*-*-dicos*) gdb_osabi=GDB_OSABI_DICOS ;;
78664fa3
PA
789*-*-symbianelf*)
790 gdb_osabi=GDB_OSABI_SYMBIAN ;;
49de1690
UW
791powerpc-*-aix* | rs6000-*-* | powerpc64-*-aix*)
792 gdb_osabi=GDB_OSABI_AIX ;;
b00a8037 793esac
b292c783
JK
794
795# Check whether this target supports gcore.
796# Such target has to call set_gdbarch_find_memory_regions.
c96b3c4f
JK
797gdb_have_gcore=false
798for t in x ${gdb_target_obs}; do
799 if test "$t" = linux-tdep.o; then
b292c783 800 gdb_have_gcore=true
c96b3c4f
JK
801 fi
802done
This page took 1.444984 seconds and 4 git commands to generate.