gdb/testsuite: make test names unique in gdb.python/py-format-string.exp
[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*-*-*)
fb8f3fc0 88 cpu_obs="riscv-tdep.o riscv-none-tdep.o arch/riscv.o \
db3ad2f0 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 ;;
4d393d60 187arm*-*-*)
a4ce5b0d 188 # Target: ARM embedded system
e1c3a373 189 gdb_target_obs="arm-pikeos-tdep.o"
9b624dbe 190 gdb_sim=../sim/arm/libsim.a
732cd360
UW
191 ;;
192
193avr-*-*)
a4ce5b0d
UW
194 # Target: AVR
195 gdb_target_obs="avr-tdep.o"
64c9be2e 196 gdb_sim=../sim/avr/libsim.a
732cd360
UW
197 ;;
198
91021223
MF
199bfin-*-*linux*)
200 # Target: Blackfin Linux
201 gdb_target_obs="bfin-tdep.o bfin-linux-tdep.o linux-tdep.o"
5387a0c6 202 gdb_sim=../sim/bfin/libsim.a
91021223
MF
203 ;;
204bfin-*-*)
205 # Target: Blackfin processor
206 gdb_target_obs="bfin-tdep.o"
5387a0c6 207 gdb_sim=../sim/bfin/libsim.a
91021223
MF
208 ;;
209
39791af2
JM
210bpf-*-*)
211 # Target: eBPF
212 gdb_target_obs="bpf-tdep.o"
b26e2ae7 213 gdb_sim=../sim/bpf/libsim.a
39791af2
JM
214 ;;
215
732cd360 216cris*)
a4ce5b0d 217 # Target: CRIS
749c8b38 218 gdb_target_obs="cris-tdep.o cris-linux-tdep.o linux-tdep.o solib-svr4.o"
732cd360
UW
219 ;;
220
9d24df82
HAQ
221csky*-*-linux*)
222 # Target: CSKY running GNU/Linux
223 gdb_target_obs="csky-tdep.o csky-linux-tdep.o glibc-tdep.o \
224 linux-tdep.o solib-svr4.o"
225 ;;
226
227csky*-*-*)
228 # Target: CSKY bare metal
229 gdb_target_obs="csky-tdep.o"
230 ;;
231
732cd360 232frv-*-*)
a4ce5b0d 233 # Target: Fujitsu FRV processor
06b9f45f 234 gdb_target_obs="frv-tdep.o frv-linux-tdep.o linux-tdep.o solib-frv.o"
9b624dbe 235 gdb_sim=../sim/frv/libsim.a
732cd360
UW
236 ;;
237
91529dc5 238moxie-*-elf | moxie-*-moxiebox | moxie-*-rtems*)
d7066cce 239 gdb_target_obs="moxie-tdep.o"
c7098c41 240 gdb_sim=../sim/moxie/libsim.a
d7066cce
AG
241 ;;
242
732cd360 243h8300-*-*)
40e0b271
PA
244 # Target: H8300 processor
245 gdb_target_obs="h8300-tdep.o"
9b624dbe 246 gdb_sim=../sim/h8300/libsim.a
732cd360
UW
247 ;;
248
732cd360 249hppa*-*-linux*)
a4ce5b0d 250 # Target: HP PA-RISC running Linux
d97987e2 251 gdb_target_obs="hppa-linux-tdep.o glibc-tdep.o \
8574e74b 252 linux-tdep.o solib-svr4.o symfile-mem.o"
732cd360 253 ;;
af5ca30d
NH
254hppa*-*-netbsd*)
255 # Target: NetBSD/hppa
1b71cfcf 256 gdb_target_obs="hppa-bsd-tdep.o hppa-netbsd-tdep.o solib-svr4.o"
af5ca30d 257 ;;
732cd360 258hppa*-*-openbsd*)
a4ce5b0d 259 # Target: OpenBSD/hppa
d97987e2 260 gdb_target_obs="hppa-bsd-tdep.o hppa-obsd-tdep.o solib-svr4.o"
732cd360 261 ;;
c906108c 262
5cd226f2 263i[34567]86-*-darwin*)
a80b95ba 264 # Target: Darwin/i386
d97987e2 265 gdb_target_obs="i386-darwin-tdep.o solib-darwin.o"
5cd226f2
TG
266 if test "x$enable_64_bit_bfd" = "xyes"; then
267 # Target: GNU/Linux x86-64
d97987e2 268 gdb_target_obs="amd64-darwin-tdep.o ${gdb_target_obs}"
5cd226f2 269 fi
a80b95ba 270 ;;
a15c5c83
PA
271i[34567]86-*-dicos*)
272 # Target: DICOS/i386
d97987e2 273 gdb_target_obs="dicos-tdep.o i386-dicos-tdep.o"
a15c5c83 274 ;;
fa987fc4 275i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
a4ce5b0d 276 # Target: FreeBSD/i386
d97987e2 277 gdb_target_obs="i386-bsd-tdep.o i386-fbsd-tdep.o "
fa987fc4 278 ;;
48184fd4 279i[34567]86-*-netbsd* | i[34567]86-*-knetbsd*-gnu)
a4ce5b0d 280 # Target: NetBSD/i386
1b71cfcf 281 gdb_target_obs="i386-bsd-tdep.o i386-netbsd-tdep.o "
732cd360
UW
282 ;;
283i[34567]86-*-openbsd*)
a4ce5b0d 284 # Target: OpenBSD/i386
d97987e2 285 gdb_target_obs="i386-bsd-tdep.o i386-obsd-tdep.o bsd-uthread.o"
732cd360
UW
286 ;;
287i[34567]86-*-nto*)
a4ce5b0d 288 # Target: Intel 386 running qnx6.
d97987e2 289 gdb_target_obs="solib-svr4.o \
a4ce5b0d 290 i386-nto-tdep.o nto-tdep.o"
732cd360 291 ;;
281c4447 292i[34567]86-*-solaris2* | x86_64-*-solaris2*)
a4ce5b0d 293 # Target: Solaris x86_64
d97987e2 294 gdb_target_obs="${i386_tobjs} ${amd64_tobjs} \
22916b07
YQ
295 amd64-sol2-tdep.o i386-sol2-tdep.o sol2-tdep.o \
296 solib-svr4.o"
732cd360 297 ;;
732cd360 298i[34567]86-*-linux*)
a4ce5b0d 299 # Target: Intel 386 running GNU/Linux
d97987e2
YQ
300 gdb_target_obs="i386-linux-tdep.o \
301 glibc-tdep.o \
06b9f45f 302 solib-svr4.o symfile-mem.o \
b7f6bf22 303 linux-tdep.o linux-record.o"
0ca8834f
JM
304 if test "x$enable_64_bit_bfd" = "xyes"; then
305 # Target: GNU/Linux x86-64
d97987e2 306 gdb_target_obs="amd64-linux-tdep.o ${gdb_target_obs}"
0ca8834f 307 fi
732cd360
UW
308 ;;
309i[34567]86-*-gnu*)
a4ce5b0d 310 # Target: Intel 386 running the GNU Hurd
d97987e2 311 gdb_target_obs="i386-gnu-tdep.o solib-svr4.o"
732cd360
UW
312 ;;
313i[34567]86-*-cygwin*)
a4ce5b0d 314 # Target: Intel 386 running win32
7a1998df 315 gdb_target_obs="i386-windows-tdep.o windows-tdep.o"
732cd360
UW
316 ;;
317i[34567]86-*-mingw32*)
a4ce5b0d 318 # Target: Intel 386 running win32
7a1998df 319 gdb_target_obs="i386-windows-tdep.o windows-tdep.o"
732cd360 320 ;;
8f10c932
PA
321i[34567]86-*-go32* | i[34567]86-*-msdosdjgpp*)
322 # Target: i386 running DJGPP/go32.
d97987e2 323 gdb_target_obs="i386-go32-tdep.o"
732cd360
UW
324 ;;
325
326ia64-*-linux*)
a4ce5b0d 327 # Target: Intel IA-64 running GNU/Linux
d97987e2 328 gdb_target_obs="ia64-linux-tdep.o linux-tdep.o \
8574e74b 329 solib-svr4.o symfile-mem.o"
732cd360 330 ;;
696759ad
TG
331ia64-*-*vms*)
332 # Target: Intel IA-64 running OpenVMS
d97987e2 333 gdb_target_obs="ia64-vms-tdep.o"
732cd360
UW
334 ;;
335
336iq2000-*-*)
a4ce5b0d 337 gdb_target_obs="iq2000-tdep.o"
9b624dbe 338 gdb_sim=../sim/iq2000/libsim.a
732cd360
UW
339 ;;
340
c28c63d8
JB
341lm32-*-*)
342 gdb_target_obs="lm32-tdep.o"
343 gdb_sim=../sim/lm32/libsim.a
344 ;;
345
732cd360 346m32c-*-*)
a4ce5b0d 347 # Target: Renesas M32C family
57295b0b 348 gdb_target_obs="m32c-tdep.o"
9b624dbe
UW
349 # There may also be a SID / CGEN simulator for this,
350 # but we do have DJ Delorie's mini-sim.
351 gdb_sim=../sim/m32c/libsim.a
732cd360
UW
352 ;;
353
354m32r*-*-linux*)
a4ce5b0d 355 # Target: Renesas M32R running GNU/Linux
f7c38292 356 gdb_target_obs="m32r-tdep.o m32r-linux-tdep.o \
8574e74b 357 glibc-tdep.o solib-svr4.o symfile-mem.o \
a3217aa0 358 linux-tdep.o"
9b624dbe 359 gdb_sim=../sim/m32r/libsim.a
732cd360
UW
360 ;;
361m32r*-*-*)
a4ce5b0d 362 # Target: Renesas m32r processor
f7c38292 363 gdb_target_obs="m32r-tdep.o"
9b624dbe 364 gdb_sim=../sim/m32r/libsim.a
732cd360
UW
365 ;;
366
367m68hc11*-*-*|m6811*-*-*)
a4ce5b0d
UW
368 # Target: Motorola 68HC11 processor
369 gdb_target_obs="m68hc11-tdep.o"
9b624dbe 370 gdb_sim=../sim/m68hc11/libsim.a
732cd360
UW
371 ;;
372
fa987fc4
UW
373m68*-*-aout* | m68*-*-coff* | m68*-*-elf* | m68*-*-rtems* | m68*-*-uclinux* | \
374fido-*-elf*)
40e0b271
PA
375 # Target: Motorola m68k embedded
376 gdb_target_obs="m68k-tdep.o"
732cd360
UW
377 ;;
378m68*-*-linux*)
a4ce5b0d 379 # Target: Motorola m68k with a.out and ELF
03b62bbb 380 gdb_target_obs="m68k-tdep.o m68k-linux-tdep.o solib-svr4.o \
a3217aa0 381 linux-tdep.o glibc-tdep.o symfile-mem.o"
732cd360 382 ;;
69489883 383m68*-*-netbsd* | m68*-*-knetbsd*-gnu)
a4ce5b0d 384 # Target: NetBSD/m68k
d97987e2 385 gdb_target_obs="m68k-tdep.o m68k-bsd-tdep.o"
732cd360
UW
386 ;;
387m68*-*-openbsd*)
a4ce5b0d 388 # Target: OpenBSD/m68k
d97987e2 389 gdb_target_obs="m68k-tdep.o m68k-bsd-tdep.o"
732cd360 390 ;;
732cd360 391
732cd360 392mep-*-*)
a4ce5b0d 393 # Target: Toshiba Media Processor (MEP)
57295b0b 394 gdb_target_obs="mep-tdep.o"
a4ce5b0d 395 # No sim needed. Target uses SID.
732cd360
UW
396 ;;
397
97fc68fe 398microblaze*-linux-*|microblaze*-*-linux*)
2d1c1221 399 # Target: Xilinx MicroBlaze running Linux
40e0b271
PA
400 gdb_target_obs="microblaze-tdep.o microblaze-linux-tdep.o solib-svr4.o \
401 symfile-mem.o linux-tdep.o"
2d1c1221
ME
402 gdb_sim=../sim/microblaze/libsim.a
403 ;;
97fc68fe 404microblaze*-*-*)
2d1c1221 405 # Target: Xilinx MicroBlaze running standalone
40e0b271 406 gdb_target_obs="microblaze-tdep.o"
2d1c1221
ME
407 gdb_sim=../sim/microblaze/libsim.a
408 ;;
409
732cd360 410mips*-*-linux*)
a4ce5b0d 411 # Target: Linux/MIPS
db5f024e 412 gdb_target_obs="mips-tdep.o mips-linux-tdep.o glibc-tdep.o \
06b9f45f 413 solib-svr4.o symfile-mem.o linux-tdep.o"
9b624dbe 414 gdb_sim=../sim/mips/libsim.a
732cd360 415 ;;
69489883 416mips*-*-netbsd* | mips*-*-knetbsd*-gnu)
a4ce5b0d 417 # Target: MIPS running NetBSD
1b71cfcf 418 gdb_target_obs="mips-tdep.o mips-netbsd-tdep.o"
9b624dbe 419 gdb_sim=../sim/mips/libsim.a
732cd360 420 ;;
387360da
JB
421mips*-*-freebsd*)
422 # Target: MIPS running FreeBSD
d97987e2 423 gdb_target_obs="mips-tdep.o mips-fbsd-tdep.o"
387360da
JB
424 gdb_sim=../sim/mips/libsim.a
425 ;;
732cd360 426mips64*-*-openbsd*)
a4ce5b0d 427 # Target: OpenBSD/mips64
d97987e2 428 gdb_target_obs="mips-tdep.o mips64-obsd-tdep.o"
732cd360 429 ;;
bb7e3f4d
YQ
430mips*-sde*-elf*)
431 # Target: MIPS SDE
f7c38292 432 gdb_target_obs="mips-tdep.o mips-sde-tdep.o"
bb7e3f4d
YQ
433 gdb_sim=../sim/mips/libsim.a
434 ;;
314d366a
KB
435mips*-*-elf)
436 # Target: MIPS ELF
f7c38292 437 gdb_target_obs="mips-tdep.o"
314d366a
KB
438 gdb_sim=../sim/mips/libsim.a
439 ;;
732cd360 440mips*-*-*)
a4ce5b0d
UW
441 # Target: MIPS
442 gdb_target_obs="mips-tdep.o"
9b624dbe 443 gdb_sim=../sim/mips/libsim.a
732cd360
UW
444 ;;
445
446mn10300-*-*)
a4ce5b0d
UW
447 # Target: Matsushita mn10300
448 gdb_target_obs="mn10300-tdep.o"
9b624dbe 449 gdb_sim=../sim/mn10300/libsim.a
732cd360
UW
450 ;;
451
b3f4b80f 452msp430-*-elf*)
586cf749
KB
453 gdb_target_obs="msp430-tdep.o"
454 gdb_sim=../sim/msp430/libsim.a
455 ;;
456
a28d8e50
YTL
457nds32*-*-elf)
458 # Target: AndesTech NDS32 core
459 gdb_target_obs="nds32-tdep.o"
460 ;;
461
a1217d97
SL
462nios2*-*-linux*)
463 # Target: Altera Nios II running Linux
464 gdb_target_obs="nios2-tdep.o nios2-linux-tdep.o solib-svr4.o \
465 symfile-mem.o glibc-tdep.o linux-tdep.o"
466 ;;
467
468nios2*-*-*)
469 # Target: Altera Nios II bare-metal
470 gdb_target_obs="nios2-tdep.o"
471 ;;
472
42e151bf
SH
473or1k*-*-linux*)
474 # Target: OpenCores OpenRISC 1000 32-bit running Linux
475 gdb_target_obs="or1k-tdep.o or1k-linux-tdep.o solib-svr4.o \
476 symfile-mem.o glibc-tdep.o linux-tdep.o"
477 gdb_sim=../sim/or1k/libsim.a
42e151bf
SH
478 ;;
479
a994fec4
FJ
480or1k-*-* | or1knd-*-*)
481 # Target: OpenCores OpenRISC 1000 32-bit implementation bare metal
482 gdb_target_obs="or1k-tdep.o"
483 gdb_sim=../sim/or1k/libsim.a
484 ;;
485
dc18f110
AT
486powerpc*-*-freebsd*)
487 # Target: FreeBSD/powerpc
488 gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppc64-tdep.o \
d97987e2 489 ppc-fbsd-tdep.o \
dc18f110
AT
490 ravenscar-thread.o ppc-ravenscar-thread.o"
491 ;;
492
69489883 493powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu)
a4ce5b0d 494 # Target: NetBSD/powerpc
1b71cfcf 495 gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppc-netbsd-tdep.o \
debb1f09 496 ravenscar-thread.o ppc-ravenscar-thread.o"
9b624dbe 497 gdb_sim=../sim/ppc/libsim.a
732cd360
UW
498 ;;
499powerpc-*-openbsd*)
a4ce5b0d 500 # Target: OpenBSD/powerpc
03b62bbb 501 gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppc-obsd-tdep.o \
debb1f09 502 ravenscar-thread.o ppc-ravenscar-thread.o"
732cd360 503 ;;
49de1690 504powerpc-*-aix* | rs6000-*-* | powerpc64-*-aix*)
a4ce5b0d
UW
505 # Target: PowerPC running AIX
506 gdb_target_obs="rs6000-tdep.o rs6000-aix-tdep.o xcoffread.o \
4d1eb6b4 507 ppc-sysv-tdep.o solib-aix.o \
debb1f09 508 ravenscar-thread.o ppc-ravenscar-thread.o"
732cd360 509 ;;
bcbec14e 510powerpc*-*-linux*)
a4ce5b0d
UW
511 # Target: PowerPC running Linux
512 gdb_target_obs="rs6000-tdep.o ppc-linux-tdep.o ppc-sysv-tdep.o \
abf516c6 513 ppc64-tdep.o solib-svr4.o \
debb1f09 514 glibc-tdep.o symfile-mem.o linux-tdep.o \
b4cdae6f 515 ravenscar-thread.o ppc-ravenscar-thread.o \
bd64614e
PFC
516 linux-record.o \
517 arch/ppc-linux-common.o"
9b624dbe 518 gdb_sim=../sim/ppc/libsim.a
732cd360 519 ;;
d5367fe1
JB
520powerpc-*-lynx*178)
521 # Target: PowerPC running Lynx178.
522 gdb_target_obs="rs6000-tdep.o rs6000-lynx178-tdep.o \
40e0b271 523 xcoffread.o ppc-sysv-tdep.o \
d5367fe1
JB
524 ravenscar-thread.o ppc-ravenscar-thread.o"
525 ;;
732cd360 526powerpc*-*-*)
a4ce5b0d 527 # Target: PowerPC running eabi
40e0b271 528 gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o solib-svr4.o \
debb1f09 529 ravenscar-thread.o ppc-ravenscar-thread.o"
32273fe6 530 gdb_sim=../sim/ppc/libsim.a
732cd360
UW
531 ;;
532
0e5fae36 533s390*-*-linux*)
a4ce5b0d 534 # Target: S390 running Linux
d6e58945
PR
535 gdb_target_obs="s390-linux-tdep.o s390-tdep.o solib-svr4.o \
536 linux-tdep.o linux-record.o symfile-mem.o"
732cd360
UW
537 ;;
538
ed65e20b
JB
539riscv*-*-freebsd*)
540 # Target: FreeBSD/riscv
b5ffee31 541 gdb_target_obs="riscv-fbsd-tdep.o"
ed65e20b
JB
542 ;;
543
52a187f8
JW
544riscv*-*-linux*)
545 # Target: Linux/RISC-V
b5ffee31 546 gdb_target_obs="riscv-linux-tdep.o glibc-tdep.o \
52a187f8
JW
547 linux-tdep.o solib-svr4.o symfile-mem.o linux-record.o"
548 ;;
549
dbbb1059
AB
550riscv*-*-*)
551 # Target: RISC-V architecture
b5ffee31 552 gdb_target_obs=""
04b4939b 553 gdb_sim=../sim/riscv/libsim.a
dbbb1059
AB
554 ;;
555
9058f767
KB
556rl78-*-elf)
557 # Target: Renesas rl78
558 gdb_target_obs="rl78-tdep.o"
559 gdb_sim=../sim/rl78/libsim.a
560 ;;
561
baa835b4
KB
562rx-*-elf)
563 # Target: Renesas RX
564 gdb_target_obs="rx-tdep.o"
565 gdb_sim=../sim/rx/libsim.a
566 ;;
567
732cd360 568score-*-*)
a4ce5b0d 569 # Target: S+core embedded system
06b9f45f 570 gdb_target_obs="score-tdep.o"
732cd360
UW
571 ;;
572
e25c958c 573sh*-*-linux*)
a4ce5b0d 574 # Target: GNU/Linux Super-H
8a3de5e1 575 gdb_target_obs="sh-tdep.o sh-linux-tdep.o \
40e0b271 576 solib-svr4.o symfile-mem.o \
06b9f45f 577 glibc-tdep.o linux-tdep.o"
9b624dbe 578 gdb_sim=../sim/sh/libsim.a
732cd360 579 ;;
69489883 580sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu)
a4ce5b0d 581 # Target: NetBSD/sh
1b71cfcf 582 gdb_target_obs="sh-tdep.o sh-netbsd-tdep.o"
9b624dbe 583 gdb_sim=../sim/sh/libsim.a
732cd360
UW
584 ;;
585sh*-*-openbsd*)
a4ce5b0d 586 # Target: OpenBSD/sh
1b71cfcf 587 gdb_target_obs="sh-tdep.o sh-netbsd-tdep.o"
732cd360
UW
588 ;;
589sh*)
40e0b271 590 # Target: Embedded Renesas Super-H processor
8a3de5e1 591 gdb_target_obs="sh-tdep.o"
9b624dbe 592 gdb_sim=../sim/sh/libsim.a
732cd360
UW
593 ;;
594
595sparc-*-linux*)
a4ce5b0d 596 # Target: GNU/Linux SPARC
a7e6196b 597 gdb_target_obs="sparc-tdep.o \
8574e74b 598 sparc-linux-tdep.o solib-svr4.o symfile-mem.o \
7e35103a 599 linux-tdep.o \
e6f9c00b 600 ravenscar-thread.o sparc-ravenscar-thread.o"
0ca8834f
JM
601 if test "x$enable_64_bit_bfd" = "xyes"; then
602 # Target: GNU/Linux UltraSPARC
a7e6196b 603 gdb_target_obs="sparc64-tdep.o \
0ca8834f
JM
604 sparc64-linux-tdep.o ${gdb_target_obs}"
605 fi
732cd360
UW
606 ;;
607sparc64-*-linux*)
a4ce5b0d 608 # Target: GNU/Linux UltraSPARC
a7e6196b
RO
609 gdb_target_obs="sparc64-tdep.o \
610 sparc64-linux-tdep.o sparc-tdep.o \
7e35103a 611 sparc-linux-tdep.o solib-svr4.o linux-tdep.o \
e6f9c00b 612 ravenscar-thread.o sparc-ravenscar-thread.o"
732cd360 613 ;;
fa987fc4 614sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu)
a4ce5b0d 615 # Target: FreeBSD/sparc64
03b62bbb 616 gdb_target_obs="sparc-tdep.o sparc64-tdep.o sparc64-fbsd-tdep.o \
e6f9c00b 617 ravenscar-thread.o sparc-ravenscar-thread.o"
fa987fc4 618 ;;
69489883 619sparc-*-netbsd* | sparc-*-knetbsd*-gnu)
a4ce5b0d 620 # Target: NetBSD/sparc
1b71cfcf 621 gdb_target_obs="sparc-tdep.o sparc-netbsd-tdep.o \
e6f9c00b 622 ravenscar-thread.o sparc-ravenscar-thread.o"
732cd360 623 ;;
69489883 624sparc64-*-netbsd* | sparc64-*-knetbsd*-gnu)
a4ce5b0d 625 # Target: NetBSD/sparc64
1b71cfcf
KR
626 gdb_target_obs="sparc64-tdep.o sparc64-netbsd-tdep.o sparc-tdep.o \
627 sparc-netbsd-tdep.o \
e6f9c00b 628 ravenscar-thread.o sparc-ravenscar-thread.o"
732cd360
UW
629 ;;
630sparc-*-openbsd*)
a4ce5b0d 631 # Target: OpenBSD/sparc
1b71cfcf 632 gdb_target_obs="sparc-tdep.o sparc-netbsd-tdep.o sparc-obsd-tdep.o \
d97987e2 633 nbsd-tdep.o bsd-uthread.o \
e6f9c00b 634 ravenscar-thread.o sparc-ravenscar-thread.o"
732cd360
UW
635 ;;
636sparc64-*-openbsd*)
a4ce5b0d 637 # Target: OpenBSD/sparc64
1b71cfcf
KR
638 gdb_target_obs="sparc64-tdep.o sparc64-netbsd-tdep.o sparc64-obsd-tdep.o \
639 sparc-tdep.o sparc-netbsd-tdep.o sparc-obsd-tdep.o \
d97987e2 640 nbsd-tdep.o bsd-uthread.o \
e6f9c00b 641 ravenscar-thread.o sparc-ravenscar-thread.o"
732cd360 642 ;;
386c036b 643sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*)
a4ce5b0d
UW
644 # Target: Solaris UltraSPARC
645 gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o sparc-tdep.o \
7e35103a 646 sparc-sol2-tdep.o sol2-tdep.o solib-svr4.o \
e6f9c00b 647 ravenscar-thread.o sparc-ravenscar-thread.o"
732cd360 648 ;;
732cd360 649sparc-*-*)
a4ce5b0d 650 # Target: SPARC
5d214698 651 gdb_target_obs="sparc-tdep.o \
e6f9c00b 652 ravenscar-thread.o sparc-ravenscar-thread.o"
0ac7be25 653 gdb_sim=../sim/erc32/libsim.a
732cd360
UW
654 ;;
655sparc64-*-*)
a4ce5b0d 656 # Target: UltraSPARC
7e35103a 657 gdb_target_obs="sparc-tdep.o sparc64-tdep.o \
e6f9c00b 658 ravenscar-thread.o sparc-ravenscar-thread.o"
732cd360
UW
659 ;;
660
51d21d60
JD
661s12z-*-*)
662 # Target: Freescale S12z
663 gdb_target_obs="s12z-tdep.o"
664 ;;
665
8cd64e00
YQ
666tic6x-*-*linux)
667 # Target: GNU/Linux TI C6x
668 gdb_target_obs="tic6x-tdep.o tic6x-linux-tdep.o solib-dsbt.o \
06b9f45f 669 glibc-tdep.o linux-tdep.o"
8cd64e00
YQ
670 ;;
671
672tic6x-*-*)
673 # Target: TI C6X
674 gdb_target_obs="tic6x-tdep.o"
675 ;;
676
ade64f0e 677tilegx-*-linux*)
748d24e6
JW
678 # Target: TILE-Gx
679 gdb_target_obs="tilegx-tdep.o tilegx-linux-tdep.o solib-svr4.o \
ade64f0e 680 symfile-mem.o glibc-tdep.o linux-tdep.o"
748d24e6 681 ;;
ade64f0e 682
732cd360 683xstormy16-*-*)
a4ce5b0d
UW
684 # Target: Sanyo Xstormy16a processor
685 gdb_target_obs="xstormy16-tdep.o"
9b624dbe 686 # No simulator libraries are needed -- target uses SID.
732cd360
UW
687 ;;
688
49d45b20
JB
689ft32-*-elf)
690 gdb_target_obs="ft32-tdep.o"
691 gdb_sim=../sim/ft32/libsim.a
692 ;;
693
6e73ba20 694v850*-*-elf | v850*-*-rtems*)
a4ce5b0d
UW
695 # Target: NEC V850 processor
696 gdb_target_obs="v850-tdep.o"
9b624dbe 697 gdb_sim=../sim/v850/libsim.a
732cd360 698 ;;
181124bc 699
69489883 700vax-*-netbsd* | vax-*-knetbsd*-gnu)
a4ce5b0d 701 # Target: NetBSD/vax
1736a7bd 702 gdb_target_obs="vax-tdep.o solib-svr4.o"
732cd360
UW
703 ;;
704vax-*-openbsd*)
a4ce5b0d 705 # Target: OpenBSD/vax
1736a7bd 706 gdb_target_obs="vax-tdep.o"
732cd360
UW
707 ;;
708vax-*-*)
09dd9a69 709 # Target: VAX
a4ce5b0d 710 gdb_target_obs="vax-tdep.o"
732cd360
UW
711 ;;
712
5cd226f2
TG
713x86_64-*-darwin*)
714 # Target: Darwin/x86-64
d97987e2 715 gdb_target_obs="${i386_tobjs} \
5cd226f2 716 i386-darwin-tdep.o amd64-darwin-tdep.o \
8574e74b 717 solib-darwin.o"
5cd226f2
TG
718 ;;
719
a15c5c83
PA
720x86_64-*-dicos*)
721 # Target: DICOS/x86-64
d97987e2 722 gdb_target_obs="${i386_tobjs} \
06b9f45f 723 dicos-tdep.o i386-dicos-tdep.o amd64-dicos-tdep.o"
a15c5c83 724 ;;
a5716032 725x86_64-*-elf*)
d97987e2 726 gdb_target_obs="${i386_tobjs}"
a5716032 727 ;;
732cd360 728x86_64-*-linux*)
a4ce5b0d 729 # Target: GNU/Linux x86-64
d97987e2
YQ
730 gdb_target_obs="amd64-linux-tdep.o ${i386_tobjs} \
731 i386-linux-tdep.o glibc-tdep.o \
06b9f45f 732 solib-svr4.o symfile-mem.o linux-tdep.o linux-record.o"
732cd360 733 ;;
fa987fc4 734x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
a4ce5b0d 735 # Target: FreeBSD/amd64
d97987e2
YQ
736 gdb_target_obs="amd64-fbsd-tdep.o ${i386_tobjs} \
737 i386-bsd-tdep.o i386-fbsd-tdep.o"
fa987fc4 738 ;;
b5b0b0af 739x86_64-*-mingw* | x86_64-*-cygwin*)
d0761299 740 # Target: MingW/amd64
d97987e2 741 gdb_target_obs="amd64-windows-tdep.o \
7a1998df 742 ${i386_tobjs} i386-windows-tdep.o \
0cd09acb 743 windows-tdep.o"
d0761299 744 ;;
69489883 745x86_64-*-netbsd* | x86_64-*-knetbsd*-gnu)
a4ce5b0d 746 # Target: NetBSD/amd64
1b71cfcf 747 gdb_target_obs="amd64-netbsd-tdep.o ${i386_tobjs}"
732cd360
UW
748 ;;
749x86_64-*-openbsd*)
a4ce5b0d 750 # Target: OpenBSD/amd64
d97987e2
YQ
751 gdb_target_obs="amd64-obsd-tdep.o ${i386_tobjs} \
752 i386-bsd-tdep.o i386-obsd-tdep.o \
753 bsd-uthread.o"
732cd360 754 ;;
a5716032 755x86_64-*-rtems*)
d97987e2 756 gdb_target_obs="${amd64_tobjs} ${i386_tobjs} i386-bsd-tdep.o"
a5716032 757 ;;
f11acc5e 758xtensa*-*-*linux*)
94a0e877 759 # Target: GNU/Linux Xtensa
d97987e2 760 gdb_target_obs="xtensa-linux-tdep.o symfile-mem.o linux-tdep.o"
94a0e877 761 ;;
ca3bf3bd 762
c906108c 763esac
2acceee2 764
d97987e2
YQ
765# Put them together.
766
767gdb_target_obs="${cpu_obs} ${os_obs} ${gdb_target_obs}"
768
b00a8037
DJ
769# map target onto default OS ABI
770
d0c678e6 771case "${targ}" in
d5ae309f 772*-*-freebsd* | *-*-kfreebsd*-gnu)
1736a7bd 773 gdb_osabi=GDB_OSABI_FREEBSD ;;
4e18c053
MF
774*-*-linux* | *-*-uclinux*)
775 gdb_osabi=GDB_OSABI_LINUX ;;
1b883d35 776*-*-nto*) gdb_osabi=GDB_OSABI_QNXNTO ;;
663408c2 777m68*-*-openbsd* | m88*-*-openbsd* | vax-*-openbsd*) ;;
1736a7bd 778*-*-openbsd*) gdb_osabi=GDB_OSABI_OPENBSD ;;
5b729aa5 779*-*-solaris*) gdb_osabi=GDB_OSABI_SOLARIS ;;
69489883
NN
780*-*-*-gnu*) ;; # prevent non-GNU kernels to match the Hurd rule below
781*-*-gnu*) gdb_osabi=GDB_OSABI_HURD ;;
fd39ac05 782*-*-mingw32ce*) gdb_osabi=GDB_OSABI_WINCE ;;
053205cc
SM
783*-*-mingw*) gdb_osabi=GDB_OSABI_WINDOWS ;;
784*-*-cygwin*) gdb_osabi=GDB_OSABI_CYGWIN ;;
a15c5c83 785*-*-dicos*) gdb_osabi=GDB_OSABI_DICOS ;;
49de1690
UW
786powerpc-*-aix* | rs6000-*-* | powerpc64-*-aix*)
787 gdb_osabi=GDB_OSABI_AIX ;;
b00a8037 788esac
b292c783
JK
789
790# Check whether this target supports gcore.
791# Such target has to call set_gdbarch_find_memory_regions.
c96b3c4f
JK
792gdb_have_gcore=false
793for t in x ${gdb_target_obs}; do
794 if test "$t" = linux-tdep.o; then
b292c783 795 gdb_have_gcore=true
c96b3c4f
JK
796 fi
797done
This page took 1.509903 seconds and 4 git commands to generate.