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