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