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